/* ==============================================================================
   Innovative Dream Solutions — Premium Digital Agency Design System
   Color Palette: Deep Navy, Slate Charcoal, Electric Blue, Violet Accents
============================================================================== */

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

:root {
  /* Color System */
  --ids-bg-base: #070b14;
  --ids-bg-surface: #0b1120;
  --ids-bg-card: #0f172a;
  --ids-bg-card-hover: #152238;
  --ids-bg-glass: rgba(15, 23, 42, 0.82);
  
  --ids-text-main: #f8fafc;
  --ids-text-muted: #94a3b8;
  --ids-text-subtle: #64748b;
  
  --ids-primary: #3b82f6;
  --ids-primary-light: #60a5fa;
  --ids-primary-dark: #1d4ed8;
  --ids-accent: #8b5cf6;
  --ids-accent-cyan: #38bdf8;
  --ids-accent-emerald: #10b981;
  
  --ids-border: rgba(255, 255, 255, 0.08);
  --ids-border-glow: rgba(99, 102, 241, 0.35);
  
  --ids-grad-text: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  --ids-grad-accent: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #8b5cf6 100%);
  --ids-grad-btn: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --ids-grad-btn-hover: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
  --ids-grad-card: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.85) 100%);
  
  --ids-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --ids-shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --ids-shadow-glow: 0 0 25px rgba(59, 130, 246, 0.25);
  
  --ids-radius-sm: 8px;
  --ids-radius-md: 14px;
  --ids-radius-lg: 20px;
  --ids-radius-xl: 28px;
  
  --ids-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --ids-font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--ids-bg-base);
  color: var(--ids-text-main);
  font-family: var(--ids-font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .heading-font {
  font-family: var(--ids-font-heading);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.text-gradient {
  background: var(--ids-grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-muted-custom {
  color: var(--ids-text-muted) !important;
}

/* Navbar */
.ids-navbar {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ids-border);
  transition: all 0.3s ease;
  padding: 0.85rem 0;
  z-index: 1030;
}

.ids-navbar.scrolled {
  background: rgba(7, 11, 20, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 0.6rem 0;
}

.navbar-brand img {
  height: 42px;
  width: auto;
}

.ids-navbar .nav-link {
  color: var(--ids-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s ease;
  position: relative;
}

.ids-navbar .nav-link:hover,
.ids-navbar .nav-link.active {
  color: #ffffff;
}

.ids-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: var(--ids-grad-accent);
  border-radius: 2px;
}

.navbar-toggler {
  border: 1px solid var(--ids-border);
  color: #ffffff;
  padding: 0.4rem 0.65rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px var(--ids-primary);
}

/* Custom Buttons */
.btn-ids-primary {
  background: var(--ids-grad-btn);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-ids-primary:hover {
  background: var(--ids-grad-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  color: #ffffff;
}

.btn-ids-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid var(--ids-border);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-ids-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-ids-whatsapp {
  background: #25D366;
  color: #0b1120 !important;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-ids-whatsapp:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Badges */
.badge-tech {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-concept {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.35);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-demo {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 8rem 0 5rem 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 40%);
}

.hero-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-headline {
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.4rem;
}

.hero-subtext {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ids-text-muted);
  max-width: 680px;
  margin-bottom: 2.2rem;
  line-height: 1.6;
}

/* Cards & Surface Elements */
.ids-card {
  background: var(--ids-grad-card);
  border: 1px solid var(--ids-border);
  border-radius: var(--ids-radius-lg);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ids-card:hover {
  border-color: var(--ids-border-glow);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), var(--ids-shadow-glow);
}

.ids-card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--ids-radius-md);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--ids-primary-light);
  margin-bottom: 1.4rem;
  transition: all 0.25s ease;
}

.ids-card:hover .ids-card-icon {
  background: var(--ids-grad-btn);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.05);
}

/* Process Timeline (7 Stages) */
.process-step-card {
  background: var(--ids-bg-card);
  border: 1px solid var(--ids-border);
  border-radius: var(--ids-radius-md);
  padding: 1.5rem;
  position: relative;
  transition: all 0.25s ease;
  height: 100%;
}

.process-step-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
}

.process-step-num {
  font-family: var(--ids-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--ids-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Calculator Component */
.calc-container {
  background: var(--ids-bg-surface);
  border: 1px solid var(--ids-border);
  border-radius: var(--ids-radius-xl);
  padding: 2.5rem;
  box-shadow: var(--ids-shadow-md);
}

.calc-option-btn {
  background: var(--ids-bg-card);
  border: 1px solid var(--ids-border);
  border-radius: var(--ids-radius-md);
  padding: 1rem 1.2rem;
  color: var(--ids-text-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  display: block;
}

.calc-option-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--ids-bg-card-hover);
}

.calc-option-btn.active {
  border-color: var(--ids-primary);
  background: rgba(37, 99, 235, 0.12);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
}

.calc-summary-card {
  background: var(--ids-bg-card);
  border: 1px solid var(--ids-border-glow);
  border-radius: var(--ids-radius-lg);
  padding: 2rem;
  position: sticky;
  top: 90px;
}

.calc-price-display {
  font-family: var(--ids-font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1;
}

/* Contact Form */
.ids-form-control {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--ids-border);
  color: #ffffff;
  border-radius: var(--ids-radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.ids-form-control:focus {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--ids-primary);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  outline: none;
}

.ids-form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}

/* Floating Actions */
.floating-actions-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.floating-whatsapp-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.25s ease;
  text-decoration: none;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.floating-chat-trigger {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--ids-grad-btn);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.floating-chat-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.6);
}

.chat-pulse-indicator {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #070b14;
}

/* Floating Chatbot Window */
.ids-chat-widget {
  position: fixed;
  bottom: 95px;
  right: 24px;
  width: min(390px, calc(100vw - 32px));
  height: 580px;
  max-height: calc(100vh - 120px);
  background: #0b1120;
  border: 1px solid var(--ids-border);
  border-radius: var(--ids-radius-xl);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(59, 130, 246, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1050;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.ids-chat-widget.hidden {
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  pointer-events: none;
}

.chat-header {
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--ids-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ids-grad-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-bubble {
  max-width: 84%;
  padding: 0.75rem 1rem;
  border-radius: var(--ids-radius-md);
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
}

.chat-bubble.bot {
  background: #1e293b;
  color: #f1f5f9;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--ids-border);
}

.chat-bubble.user {
  background: var(--ids-grad-btn);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-disclosure-banner {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--ids-border);
}

.chat-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.chat-pill-btn {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-pill-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #ffffff;
}

.chat-input-area {
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--ids-border);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chat-input {
  flex: 1;
  background: #070b14;
  border: 1px solid var(--ids-border);
  color: #ffffff;
  border-radius: 9999px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.chat-input:focus {
  outline: none;
  border-color: var(--ids-primary);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ids-grad-btn);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.chat-send-btn:hover {
  transform: scale(1.05);
}

/* Typing indicator */
.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 6px 12px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Footer */
.ids-footer {
  background: #04070e;
  border-top: 1px solid var(--ids-border);
  padding: 4.5rem 0 2rem 0;
  margin-top: 5rem;
}

.ids-footer-link {
  color: var(--ids-text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  margin-bottom: 0.55rem;
}

.ids-footer-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* Accordion FAQ */
.ids-accordion .accordion-item {
  background: var(--ids-bg-card);
  border: 1px solid var(--ids-border);
  border-radius: var(--ids-radius-md) !important;
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.ids-accordion .accordion-button {
  background: var(--ids-bg-card);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.25rem 1.5rem;
  box-shadow: none;
}

.ids-accordion .accordion-button:not(.collapsed) {
  background: rgba(37, 99, 235, 0.08);
  color: #38bdf8;
  border-bottom: 1px solid var(--ids-border);
}

.ids-accordion .accordion-body {
  color: var(--ids-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 1.25rem 1.5rem;
}

/* Respect 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;
  }
}
