/* Javas — Custom Styles (Dark Tech Theme) */

:root {
  --bg-dark: #060d18;
  --bg-card: #0c1525;
  --bg-elevated: #111c30;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 212, 255, 0.35);
  --text: #e8eef7;
  --text-muted: #8b9cb3;
  --accent-cyan: #00d4ff;
  --accent-purple: #a855f7;
  --accent-green: #22c55e;
  --gradient: linear-gradient(135deg, #00d4ff, #a855f7, #22c55e);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Gradient text */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient button */
.btn-gradient {
  background: var(--gradient);
  color: #060d18;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 212, 255, 0.4);
  filter: brightness(1.08);
}

.btn-outline {
  border: 1.5px solid rgba(0, 212, 255, 0.4);
  color: var(--accent-cyan);
  background: transparent;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-cyan);
}

/* Cards */
.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.card-dark:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 212, 255, 0.08);
}

/* Navbar */
.navbar {
  background: rgba(6, 13, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Hero glow */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

/* Section label */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: all 0.25s ease;
  color: white;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

/* Assistant button */
.assistant-btn {
  position: fixed;
  bottom: 28px;
  right: 100px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 50px;
  color: var(--accent-cyan);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
}

.assistant-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Typebot side panel */
.typebot-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 95vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 10000;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.typebot-panel.open {
  right: 0;
}

.typebot-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.typebot-panel iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #0c1525;
}

.typebot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.typebot-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Service category */
.service-category {
  border-left: 3px solid transparent;
  border-image: var(--gradient) 1;
}

/* Form inputs dark */
.form-input {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 16px;
  width: 100%;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* Portfolio image placeholder */
.portfolio-img {
  height: 180px;
  background: linear-gradient(135deg, #0c1525 0%, #1a2744 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-dark:hover .portfolio-img::after {
  opacity: 1;
}

/* Stats */
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open {
  display: flex;
}

/* Fade in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1a2744;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #243556;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .assistant-btn span {
    display: none;
  }
  .assistant-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    right: 90px;
  }
  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 24px;
    right: 24px;
  }
  .typebot-panel {
    width: 100%;
    right: -100%;
  }
}
