/* ================================================================
   EFYS — Custom Styles
   Dark Premium Tech · Navy + Silver palette
================================================================ */

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

html { scroll-behavior: smooth; }

body {
  background-color: #0D0D1A;
  color: #E0E0E0;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #1A237E;
  color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0D0D1A; }
::-webkit-scrollbar-thumb { background: #1A237E; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3949AB; }

/* ---------- Grid background pattern ---------- */
.grid-bg {
  background-image:
    linear-gradient(rgba(26, 35, 126, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 35, 126, 0.15) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---------- Text gradient ---------- */
.text-gradient {
  background: linear-gradient(135deg, #3949AB 0%, #7986CB 50%, #5C6BC0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Navbar ---------- */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(13, 13, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: linear-gradient(135deg, #1A237E, #3949AB);
  color: #fff;
  border: 1px solid rgba(92, 107, 192, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #283593, #5C6BC0);
  box-shadow: 0 0 24px rgba(57, 73, 171, 0.5);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: #E0E0E0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  border-color: rgba(92, 107, 192, 0.6);
  color: #fff;
  background: rgba(26, 35, 126, 0.15);
  transform: translateY(-1px);
}

/* ---------- Section helpers ---------- */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7986CB;
  background: rgba(26, 35, 126, 0.2);
  border: 1px solid rgba(57, 73, 171, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
}

.section-subtitle {
  color: #9E9E9E;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Terminal card ---------- */
.terminal-card {
  background: #0A0A14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.terminal-header {
  background: #111120;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green  { background: #28C840; }

.terminal-body {
  padding: 24px;
  line-height: 1.7;
}

.terminal-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.cursor-blink {
  color: #7986CB;
  animation: blink 1s step-end infinite;
}

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

/* ---------- Badge floats ---------- */
.badge-float {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 13, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 8px 14px;
  backdrop-filter: blur(8px);
}

/* ---------- Service cards ---------- */
.service-card {
  background: rgba(13, 13, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  border-color: rgba(57, 73, 171, 0.4);
  box-shadow: 0 8px 32px rgba(26, 35, 126, 0.2);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-highlight {
  background: rgba(26, 35, 126, 0.12);
  border-color: rgba(57, 73, 171, 0.3);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 20px;
}

/* ---------- Portfolio cards ---------- */
.portfolio-card {
  background: rgba(13, 13, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  cursor: default;
}

.portfolio-card:hover {
  border-color: rgba(57, 73, 171, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid currentColor;
  opacity: 0.9;
}

.portfolio-metrics {
  display: flex;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric .value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

.metric .label {
  font-size: 0.7rem;
  color: #757575;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Filter buttons ---------- */
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9E9E9E;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: rgba(92, 107, 192, 0.5);
  color: #fff;
}

.filter-btn.active {
  background: linear-gradient(135deg, #1A237E, #3949AB);
  border-color: transparent;
  color: #fff;
}

/* ---------- Stack visual ---------- */
.stack-visual {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stack-layer {
  background: rgba(13, 13, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 24px;
  transition: all 0.3s ease;
}

.stack-layer:hover {
  border-color: rgba(57, 73, 171, 0.4);
  background: rgba(26, 35, 126, 0.12);
}

.layer-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5C6BC0;
  display: block;
  margin-bottom: 10px;
}

.layer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #BDBDBD;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.stack-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, rgba(57, 73, 171, 0.5), rgba(57, 73, 171, 0.1));
  margin: 0 auto;
}

/* ---------- Diferenciais ---------- */
.diff-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.diff-icon {
  width: 42px;
  height: 42px;
  background: rgba(26, 35, 126, 0.2);
  border: 1px solid rgba(57, 73, 171, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Sobre / About ---------- */
.about-stat {
  background: rgba(13, 13, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
}

.about-stat:hover {
  border-color: rgba(57, 73, 171, 0.3);
}

.values-card {
  background: rgba(13, 13, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 36px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #3949AB;
  background: rgba(26, 35, 126, 0.2);
  border: 1px solid rgba(57, 73, 171, 0.3);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Contact ---------- */
.contact-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(13, 13, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.contact-option:hover {
  border-color: rgba(57, 73, 171, 0.4);
  background: rgba(26, 35, 126, 0.1);
  transform: translateY(-2px);
}

.contact-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Form ---------- */
.contact-form {
  background: rgba(13, 13, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #BDBDBD;
  letter-spacing: 0.02em;
}

.form-input {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  color: #fff !important;
  padding: 12px 16px !important;
  font-size: 0.9rem !important;
  transition: all 0.2s ease !important;
  width: 100%;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.form-input::placeholder {
  color: #424242 !important;
}

.form-input:focus {
  border-color: rgba(57, 73, 171, 0.6) !important;
  background: rgba(26, 35, 126, 0.08) !important;
  box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.12) !important;
}

.form-input option {
  background: #1A1A2E;
  color: #E0E0E0;
}

.form-input.error {
  border-color: rgba(239, 68, 68, 0.5) !important;
}

.form-error {
  font-size: 0.75rem;
  color: #EF4444;
  min-height: 1rem;
  display: block;
}

/* ---------- WhatsApp Float ---------- */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.2s ease;
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* ---------- Social buttons ---------- */
.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9E9E9E;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: rgba(26, 35, 126, 0.3);
  border-color: rgba(57, 73, 171, 0.5);
  color: #fff;
}

/* ---------- Scroll reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.reveal-delay-1 { transition-delay: 0.1s; }
.reveal.reveal-delay-2 { transition-delay: 0.2s; }
.reveal.reveal-delay-3 { transition-delay: 0.3s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .contact-form {
    padding: 24px;
  }
  .values-card {
    padding: 24px;
  }
  .wa-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
}

/* ---------- UltraWide support ---------- */
@media (min-width: 2200px) {
  .max-w-7xl { max-width: 1800px; }
}
