/* ===== Custom Styles from globals.css ===== */

/* DaisyUI theme override */
[data-theme="inspired"] {
  --p: 232 98% 66%;
  --pf: 235 86% 57%;
  --pc: 0 0% 100%;
  --s: 250 89% 67%;
  --sf: 245 75% 58%;
  --sc: 0 0% 100%;
  --a: 199 89% 48%;
  --af: 199 89% 42%;
  --ac: 0 0% 100%;
  --n: 0 0% 39%;
  --nf: 0 0% 14%;
  --nc: 0 0% 100%;
  --b1: 0 0% 4%;
  --b2: 0 0% 7%;
  --b3: 0 0% 10%;
  --bc: 0 0% 91%;
  --in: 217 91% 60%;
  --inc: 217 91% 60%;
  --su: 142 71% 45%;
  --suc: 142 71% 45%;
  --wa: 38 92% 50%;
  --wac: 38 92% 50%;
  --er: 0 84% 60%;
  --erc: 0 84% 60%;
}

/* ===== Root ===== */
html { scroll-behavior: smooth; }

body {
  background-color: #000000;
  color: #e8e8e8;
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  margin: 0;
  padding: 0;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Figtree', sans-serif;
  color: #e8e8e8;
  margin: 0;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: clamp(1.125rem, 1.5vw, 1.25rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }

p { line-height: 1.6; letter-spacing: 0.005em; color: #9a9a9a; font-size: 1rem; margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #6366f1; }

/* ===== Selection ===== */
::selection { background-color: rgba(99, 102, 241, 0.3); color: #ffffff; }

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

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

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(99, 102, 241, 0.15); }
  50% { box-shadow: 0 0 32px rgba(99, 102, 241, 0.3); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-marquee { animation: marquee 30s linear infinite; }
.animate-marquee-fast { animation: marquee-fast 25s linear infinite; }
.animate-glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-gradient { background-size: 200% 200%; animation: gradient-shift 3s ease infinite; }
.animate-fade-in-up { animation: fade-in-up 0.6s cubic-bezier(0.32, 0.72, 0, 1) forwards; }
.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(135deg, #6366f1, #d0d1fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

.gradient-text-hero {
  background: linear-gradient(90deg, #ffffff 0%, #9b9b9b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-light {
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Glass Card ===== */
.glass-card {
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(42, 42, 42, 0.8);
}

/* ===== Card Surfaces ===== */
.card-surface-1 { background: #121212; border: 1px solid #2a2a2a; }
.card-surface-2 { background: #1a1a1a; border: 1px solid #2a2a2a; }

/* ===== Hover Effects ===== */
.hover-glow {
  transition: all 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}
.hover-glow:hover {
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.card-lift {
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}
.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5), 0 0 12px rgba(99, 102, 241, 0.05);
}

/* ===== Background Patterns ===== */
.bg-grid {
  background-image:
    linear-gradient(rgba(42, 42, 42, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 42, 42, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-dot {
  background-image: radial-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ===== Focus States ===== */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: #6366f1;
  color: #ffffff;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.22s cubic-bezier(0.32, 0.72, 0, 1);
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

*:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Button States ===== */
.btn-primary {
  background: #6366f1;
  color: #ffffff;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  background: #5558e6;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.3);
}
.btn-primary:active { transform: scale(0.98) translateY(1px); }

.btn-secondary {
  border: 1px solid #2a2a2a;
  color: #e8e8e8;
  border-radius: 50px;
  transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-secondary:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.05);
}

/* ===== Line Clamp ===== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Section Divider ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #2a2a2a 50%, transparent);
}

/* ===== Light Section Styles ===== */
.section-light {
  background-color: #ffffff;
  color: #0d0d0d;
}
.section-light-gray {
  background-color: #f8f9fa;
  color: #0d0d0d;
}
.section-light h1, .section-light h2, .section-light h3,
.section-light h4, .section-light h5, .section-light h6 { color: #0d0d0d; }
.section-light-gray h1, .section-light-gray h2, .section-light-gray h3,
.section-light-gray h4, .section-light-gray h5, .section-light-gray h6 { color: #0d0d0d; }
.section-light p, .section-light-gray p { color: #6b7280; }

/* Light card */
.card-light {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}
.card-light:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

/* Light card on gray bg */
.card-light-on-gray {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: all 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}
.card-light-on-gray:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

/* Section separator gradients */
.section-separator-dark-to-light { height: 3px; background: linear-gradient(90deg, #6366f1 0%, transparent 100%); }
.section-separator-light-to-dark { height: 3px; background: linear-gradient(90deg, transparent 0%, #6366f1 100%); }

/* Light mode accent badge */
.badge-light {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #4f46e5;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Client logo card */
.client-logo-card {
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  transition: all 0.22s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.client-logo-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* ===== DaisyUI-like button overrides ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
  line-height: 1.5;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: #6366f1; color: #fff; }
.btn-primary:hover { background: #5558e6; box-shadow: 0 0 24px rgba(99, 102, 241, 0.3); }

.btn-outline { background: transparent; border: 1px solid #2a2a2a; color: #e8e8e8; }
.btn-outline:hover { border-color: #6366f1; background: rgba(99, 102, 241, 0.05); }

.btn-ghost { background: transparent; color: #9a9a9a; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.05); }

.btn-success { background: #10b981; color: #fff; }
.btn-success:hover { background: #059669; }

.btn-circle { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 0.875rem; }

/* ===== Form Styles ===== */
.form-control { display: flex; flex-direction: column; gap: 0.375rem; }
.label { display: block; }
.label-text { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #374151; }

.input, .select, .textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #0d0d0d;
  font-size: 0.875rem;
  transition: all 0.2s;
  outline: none;
  box-sizing: border-box;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.input::placeholder, .textarea::placeholder { color: #9ca3af; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.textarea { resize: none; min-height: 120px; }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
  :root {
    --color-text-secondary: #c0c0c0;
    --color-text-muted: #999999;
    --color-dark-border: #555555;
  }
}

/* ===== Mobile Menu ===== */
#mobile-menu {
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
#mobile-menu.open {
  transform: translateX(0);
}

/* Mobile services accordion */
#mobile-services-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-services-sub.open {
  max-height: 300px;
}

/* ===== Desktop Services Dropdown ===== */
#services-dropdown-menu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}
#services-dropdown-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ===== Arrow Rotation ===== */
.dropdown-arrow, .mobile-arrow {
  transition: transform 0.2s ease, color 0.2s ease;
}
.dropdown-arrow.rotated, .mobile-arrow.rotated {
  transform: rotate(180deg);
  color: #ffffff;
}

/* ===== Header Scrolled State ===== */
.header-scrolled {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.header-scrolled.scrolled {
  background: rgba(0,0,0,0.9) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom-color: rgba(42,42,42,0.6) !important;
  box-shadow: 0 1px 24px rgba(0,0,0,0.5) !important;
}

/* ===== Print Styles ===== */
@media print {
  .no-print { display: none !important; }
  body { background: white; color: black; }
}
