/* ==========================================================================
   ByteAbyss Core Stylesheet
   ========================================================================== */

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #050505;
  --bg-secondary: #0D0D0D;
  --bg-card: #131313;
  --color-border: rgba(167, 243, 194, 0.10);
  --color-border-hover: rgba(167, 243, 194, 0.25);
  
  --color-primary: #A7F3C2;
  --color-hover: #84F0BE;
  --color-secondary: #6EE7B7;
  
  --text-primary: #FFFFFF;
  --text-secondary: #F1F5F9;
  --text-muted: #CBD5E1;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Glows */
  --glow-primary: 0 0 20px rgba(167, 243, 194, 0.15);
  --glow-strong: 0 0 35px rgba(167, 243, 194, 0.35);
  --glow-card-hover: 0 10px 30px rgba(167, 243, 194, 0.08);
}

/* Global Text Utility Overrides to bypass Bootstrap vendor styles */
.text-secondary {
  color: var(--text-secondary) !important;
}
.text-muted {
  color: var(--text-muted) !important;
}

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

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-hover);
}

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

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(167, 243, 194, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}



/* Tech Grid Background System */
.tech-grid-bg {
  position: relative;
  background-color: var(--bg-primary);
  overflow: hidden;
}

.tech-grid-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(167, 243, 194, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 243, 194, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
  pointer-events: none;
  z-index: 1;
}

/* Glassmorphism Styling */
.glass-panel {
  background: rgba(19, 19, 19, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.glass-panel:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--glow-card-hover);
}

/* Section Spacing */
.section-padding {
  padding: 100px 0;
}

.section-title-wrapper {
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--color-primary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Glowing text and badges */
.text-glow {
  text-shadow: 0 0 10px rgba(167, 243, 194, 0.4);
}

.green-gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons Styling */
.btn-premium {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-premium-primary {
  background-color: var(--color-primary);
  color: #000000 !important;
  border: 1px solid var(--color-primary);
}

.btn-premium-primary:hover {
  background-color: var(--color-hover);
  border-color: var(--color-hover);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

.btn-premium-secondary {
  background-color: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.btn-premium-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary) !important;
  box-shadow: 0 0 15px rgba(167, 243, 194, 0.08);
  transform: translateY(-2px);
}

/* Client & Framework Grayscale bands */
.grayscale-item {
  filter: grayscale(100%) opacity(40%);
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.grayscale-item:hover {
  filter: grayscale(0%) opacity(90%);
}

/* Header/Navbar Overrides */
.navbar-premium {
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
  z-index: 1000;
  padding: 20px 0;
}

.navbar-premium.scrolled {
  background-color: rgba(5, 5, 5, 0.95) !important;
  border-bottom-color: var(--color-border);
  padding: 12px 0;
  backdrop-filter: blur(10px);
}

.nav-link-premium {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-secondary) !important;
  font-size: 0.95rem;
  margin: 0 15px;
  position: relative;
  transition: color 0.3s ease;
  padding: 6px 0;
}

.nav-link-premium:hover,
.nav-link-premium.active {
  color: var(--color-primary) !important;
}

.nav-link-premium::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link-premium:hover::after,
.nav-link-premium.active::after {
  width: 100%;
}

/* Services Grid & Cards */
.service-card {
  height: 100%;
  padding: 40px 30px;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(167, 243, 194, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
  pointer-events: none;
}

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

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 243, 194, 0.3);
  box-shadow: 0 15px 40px rgba(167, 243, 194, 0.06), 0 0 25px rgba(167, 243, 194, 0.04);
}

.service-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: rgba(167, 243, 194, 0.05);
  border: 1px solid rgba(167, 243, 194, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
  background: var(--color-primary);
  color: #000000;
  box-shadow: 0 0 15px rgba(167, 243, 194, 0.3);
  transform: scale(1.05);
}

.service-card-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.service-card-desc {
  font-size: 0.925rem;
  margin-bottom: 20px;
}

.service-learn-more {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-learn-more i {
  transition: transform 0.3s ease;
}

.service-card:hover .service-learn-more i {
  transform: translateX(4px);
}

/* Diferenciais Timeline & Process Section */
.process-timeline {
  position: relative;
  margin-top: 50px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(167, 243, 194, 0.02) 0%, rgba(167, 243, 194, 0.2) 50%, rgba(167, 243, 194, 0.02) 100%);
  z-index: 1;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.process-number-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.process-step:hover .process-number-wrapper {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--glow-primary);
  transform: scale(1.05);
}

.process-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* Statistics Counters Block */
.stats-block {
  background: var(--bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 80px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.stat-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Accordion FAQs Overrides */
.accordion-premium .accordion-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--color-border) !important;
  margin-bottom: 16px;
  border-radius: 8px !important;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.accordion-premium .accordion-item:hover {
  border-color: rgba(167, 243, 194, 0.25);
}

.accordion-premium .accordion-button {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 20px 24px;
  box-shadow: none !important;
  border: none !important;
}

.accordion-premium .accordion-button:not(.collapsed) {
  color: var(--color-primary) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

.accordion-premium .accordion-button::after {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(90deg); /* Style default icon to green */
}

.accordion-premium .accordion-body {
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 24px;
  font-size: 0.95rem;
}

/* Form Styles */
.form-group-premium {
  position: relative;
  margin-bottom: 24px;
}

.form-control-premium {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  padding: 14px 16px !important;
  font-size: 0.95rem !important;
  transition: all 0.3s ease !important;
}

.form-control-premium:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 10px rgba(167, 243, 194, 0.1) !important;
}

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

.form-label-premium {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 8px;
  display: block;
}

/* CTA Glowing Section */
.cta-premium-block {
  position: relative;
  background: radial-gradient(circle at top right, rgba(167, 243, 194, 0.08), transparent 50%), var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 80px 60px;
  overflow: hidden;
}

.cta-premium-block::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 300px;
  height: 300px;
  background: rgba(167, 243, 194, 0.05);
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}

/* Page Hero Details (About, Services, Blog, etc.) */
.page-hero {
  padding: 160px 0 80px;
  background: radial-gradient(ellipse at bottom, rgba(167, 243, 194, 0.05) 0%, transparent 70%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

/* Breadcrumb customization */
.breadcrumb-premium .breadcrumb-item {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
}

.breadcrumb-premium .breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
  content: "/";
}

.breadcrumb-premium .breadcrumb-item a {
  color: var(--text-secondary);
}

.breadcrumb-premium .breadcrumb-item.active {
  color: var(--color-primary);
}

/* Footer Section */
.footer-premium {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 80px 0 30px;
  font-size: 0.925rem;
}

.footer-logo {
  margin-bottom: 24px;
}

.footer-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-btn:hover {
  color: #000000;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

.footer-copyright {
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Custom Alert / Toast styling for Ajax Form response */
.form-feedback {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  display: none;
}

.form-feedback.success {
  background-color: rgba(167, 243, 194, 0.1);
  border: 1px solid rgba(167, 243, 194, 0.3);
  color: var(--color-primary);
  display: block;
}

.form-feedback.error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #EF4444;
  display: block;
}

/* ==========================================================================
   Infinite Scrolling Tech Ticker
   ========================================================================== */
.tech-ticker-container {
  overflow: hidden;
  width: 100%;
  padding: 30px 0;
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Gradient fade effects at the edges */
.tech-ticker-container::before,
.tech-ticker-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.tech-ticker-container::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-secondary) 0%, transparent 100%);
}

.tech-ticker-container::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-secondary) 0%, transparent 100%);
}

.tech-ticker-wrapper {
  display: flex;
  width: max-content;
  animation: ticker-slide 35s linear infinite;
}

/* Pause scroll animation on hover */
.tech-ticker-wrapper:hover {
  animation-play-state: paused;
}

.tech-ticker-slide {
  display: flex;
  align-items: center;
  gap: 60px; /* spacing between logos */
  padding-right: 60px; /* match gap for seamless wrapping */
}

/* Ticker item styling */
.tech-ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.tech-ticker-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@keyframes ticker-slide {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

