/* ===================================================
   BVTechLabs Dark Theme — Bootstrap 5 Overrides
   =================================================== */

:root {
  /* BVTechLabs brand tokens */
  --bvt-bg: #0b132b;
  --bvt-card: #111a3a;
  --bvt-card-border: #1e293b;
  --bvt-text: #f8fafc;
  --bvt-text-secondary: #94a3b8;
  --bvt-text-muted: #64748b;
  --bvt-primary: #52b6fa;
  /* Secondary accent — gold / amber */
  --bvt-accent: #ffb800;
  --bvt-accent-light: #ffc933;
  --bvt-accent-dark: #cc9300;
}

/* --- Global --- */
html,
body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bvt-bg);
  color: var(--bvt-text);
}

a {
  color: var(--bvt-primary);
  text-decoration: none;
}
a:hover {
  color: #8bd0fc;
}

/* --- Primary color utilities --- */
.gradient-text {
  color: var(--bvt-primary);
  display: inline-block;
}

.gradient-bg {
  background: var(--bvt-primary);
}

/* Keep .btn-bvt-gradient alias for backwards compatibility */
.btn-bvt-primary,
.btn-bvt-gradient {
  background-color: var(--bvt-primary);
  color: #0b132b;
  border: none;
  transition: opacity 0.2s ease;
}
.btn-bvt-primary:hover,
.btn-bvt-gradient:hover {
  opacity: 0.9;
  color: #0b132b;
}

.btn-bvt-outline {
  background: transparent;
  color: var(--bvt-text);
  border: 1px solid var(--bvt-primary);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.btn-bvt-outline:hover {
  background: rgba(82, 182, 250, 0.1);
  color: var(--bvt-text);
}

.btn-bvt-accent {
  background: var(--bvt-accent);
  color: #0b132b;
  border: none;
  transition: opacity 0.2s ease;
}
.btn-bvt-accent:hover {
  background: var(--bvt-accent-light);
  color: #0b132b;
  opacity: 0.95;
}

/* --- Dark card --- */
.dark-card {
  background-color: var(--bvt-card);
  border: 1px solid var(--bvt-card-border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.dark-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* --- Section backgrounds --- */
.bg-bvt-dark {
  background-color: var(--bvt-bg);
}
.bg-bvt-card {
  background-color: var(--bvt-card);
}
.bg-bvt-darker {
  background-color: #080f24;
}

/* --- Text helpers --- */
.text-bvt-secondary {
  color: var(--bvt-text-secondary) !important;
}

/* --- Navbar --- */
.navbar-bvt {
  background-color: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bvt-card-border);
}
.navbar-bvt .nav-link {
  color: var(--bvt-text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}
.navbar-bvt .nav-link:hover,
.navbar-bvt .nav-link:focus,
.navbar-bvt .nav-link.active {
  color: var(--bvt-text);
}
.navbar-bvt .nav-link.active {
  color: var(--bvt-primary) !important;
}

/* --- Icon circle --- */
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Skill badge --- */
.skill-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background-color: var(--bvt-card);
  border: 1px solid var(--bvt-card-border);
  color: var(--bvt-text);
}

/* --- Testimonial card top border --- */
.testimonial-card {
  border-top: 2px solid var(--bvt-primary);
}

/* --- Avatar circle --- */
.avatar-gradient {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  flex-shrink: 0;
}

/* --- Star rating --- */
.star-rating i {
  color: var(--bvt-primary);
}

/* --- Footer --- */
.footer-bvt {
  background-color: #080f24;
  border-top: 1px solid var(--bvt-card-border);
}

/* --- Decorative line --- */
.gradient-line {
  height: 2px;
  background: var(--bvt-primary);
  opacity: 0.3;
}

/* --- Form overrides for dark theme --- */
.form-control,
.form-select {
  background-color: var(--bvt-card);
  border-color: var(--bvt-card-border);
  color: var(--bvt-text);
}
.form-control:focus,
.form-select:focus {
  background-color: var(--bvt-card);
  border-color: var(--bvt-primary);
  color: var(--bvt-text);
  box-shadow: 0 0 0 0.2rem rgba(82, 182, 250, 0.25);
}
.form-control::placeholder {
  color: var(--bvt-text-secondary);
}

/* --- Hero typography enhancements --- */
.hero-headline {
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid rgba(82, 182, 250, 0.35);
  background: rgba(82, 182, 250, 0.1);
  color: var(--bvt-primary);
  margin-bottom: 1.25rem;
}

/* --- Smooth scrolling --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

/* --- Section spacing --- */
.section-padding {
  padding: 5rem 0;
}

/* --- Responsive adjustments --- */
@media (max-width: 767.98px) {
  .section-padding {
    padding: 3rem 0;
  }

  .display-4 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .dark-card {
    border-radius: 0.5rem;
  }

  .dark-card:hover {
    transform: none;
    box-shadow: none;
  }

  .navbar-bvt .navbar-collapse {
    background-color: rgba(11, 19, 43, 0.95);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 2.5rem 0;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1,
  .h1,
  .h2,
  h2 {
    word-break: break-word;
  }
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

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

/* --- Cookie consent banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  background-color: rgba(11, 19, 43, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--bvt-card-border);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* --- Skip to content (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--bvt-primary);
  color: #0b132b;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}

/* --- Focus visible for keyboard navigation --- */
*:focus-visible {
  outline: 2px solid var(--bvt-primary);
  outline-offset: 2px;
}

/* --- Touch targets for mobile (minimum 44x44px) --- */
@media (pointer: coarse) {
  .nav-link,
  .btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* --- Print styles --- */
@media print {
  .navbar-bvt,
  .cookie-banner,
  .btn,
  #recaptcha-container {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .dark-card {
    border: 1px solid #ccc;
    background: #fff;
  }

  .gradient-text {
    color: #000;
  }
}
