/* ==========================================================================
   TECHNOVATE — Main Stylesheet
   Structure: Variables > Base > Typography > Buttons > Header/Nav > Hero >
              Sections > Cards > Testimonials > Forms > Footer > Utilities >
              Animations > Responsive
   All colors are defined as CSS variables below so the theme (including
   dark mode) can be edited from one place.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES / COLOR PALETTE
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette (from brief) */
  --tv-navy-950: #012a4a;
  --tv-navy-900: #013a63;
  --tv-navy-800: #01497c;
  --tv-sky-300: #a9d6e5;
  --tv-white: #ffffff;

  /* Extended palette (added to support UI states, tints & dark mode) */
  --tv-sky-100: #eaf5fa;      /* very light tint for section backgrounds */
  --tv-sky-200: #cfe8f2;      /* light tint for borders / hovers */
  --tv-navy-1000: #011f38;    /* deepest navy, used in dark mode */
  --tv-gray-600: #5b7182;     /* muted body text on light backgrounds */
  --tv-gray-100: #f5f8fa;     /* neutral alternating section background */
  --tv-accent: #17c3b2;       /* teal accent — highlights, icons, focus states */
  --tv-accent-dark: #0ea99a;  /* accent hover/active */
  --tv-warn: #f5a623;         /* rating stars / badges */

  /* Semantic tokens (light mode = default) */
  --bg-body: var(--tv-white);
  --bg-alt: var(--tv-gray-100);
  --bg-surface: var(--tv-white);
  --bg-header: rgba(255, 255, 255, 0);
  --bg-header-scrolled: rgba(255, 255, 255, 0.97);
  --bg-dark-section: var(--tv-navy-950);
  --text-primary: var(--tv-navy-950);
  --text-secondary: var(--tv-gray-600);
  --text-on-dark: var(--tv-sky-100);
  --text-on-dark-muted: var(--tv-sky-300);
  --border-color: #e3edf2;
  --card-shadow: 0 10px 30px rgba(1, 42, 74, 0.08);
  --card-shadow-hover: 0 18px 40px rgba(1, 42, 74, 0.16);

  /* Typography */
  --font-heading: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Layout */
  --header-height: 84px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode overrides — toggled via [data-theme="dark"] on <html> */
[data-theme="dark"] {
  --bg-body: var(--tv-navy-1000);
  --bg-alt: #022a45;
  --bg-surface: #023253;
  --bg-header: rgba(1, 31, 56, 0);
  --bg-header-scrolled: rgba(1, 31, 56, 0.96);
  --bg-dark-section: #011524;
  --text-primary: var(--tv-white);
  --text-secondary: var(--tv-sky-300);
  --text-on-dark: var(--tv-sky-100);
  --text-on-dark-muted: var(--tv-sky-300);
  --border-color: #0a4266;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   2. BASE / RESET
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-body);
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

main {
  padding-top: var(--header-height); /* offset for fixed header */
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

::selection {
  background: var(--tv-accent);
  color: var(--tv-white);
}

/* Visible keyboard focus for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--tv-accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-weight: 800; }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tv-accent-dark);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 0.9rem;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 680px;
  font-size: 1.05rem;
}

.text-muted-tv {
  color: var(--text-secondary) !important;
}

.text-accent {
  color: var(--tv-accent) !important;
}

.bg-brand-dark {
  background-color: var(--bg-dark-section) !important;
  color: var(--text-on-dark);
}

.bg-brand-dark .text-muted-tv {
  color: var(--text-on-dark-muted) !important;
}

.bg-alt-section {
  background-color: var(--bg-alt);
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn-tv-primary {
  background-color: var(--tv-accent);
  border: 2px solid var(--tv-accent);
  color: var(--tv-navy-950);
  font-weight: 700;
  padding: 0.75rem 1.7rem;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}
.btn-tv-primary:hover,
.btn-tv-primary:focus {
  background-color: var(--tv-accent-dark);
  border-color: var(--tv-accent-dark);
  color: var(--tv-navy-950);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(23, 195, 178, 0.35);
}

.btn-tv-outline {
  background-color: transparent;
  border: 2px solid currentColor;
  color: inherit;
  font-weight: 700;
  padding: 0.75rem 1.7rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}
.btn-tv-outline:hover {
  background-color: var(--tv-white);
  color: var(--tv-navy-950);
  transform: translateY(-3px);
}

.btn-tv-light {
  background-color: var(--tv-white);
  border: 2px solid var(--tv-white);
  color: var(--tv-navy-950);
  font-weight: 700;
  padding: 0.75rem 1.7rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}
.btn-tv-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.btn-sm-link {
  font-weight: 700;
  color: var(--tv-accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-base);
}
.btn-sm-link:hover {
  gap: 0.7rem;
  color: var(--tv-accent);
}

/* --------------------------------------------------------------------------
   5. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.tv-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1050;
  background-color: var(--bg-header);
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.tv-header.is-scrolled {
  background-color: var(--bg-header-scrolled);
  box-shadow: 0 6px 24px rgba(1, 42, 74, 0.1);
  backdrop-filter: blur(10px);
}

.tv-header .navbar {
  height: var(--header-height);
}

.tv-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--tv-header-text, var(--tv-navy-950));
  transition: color var(--transition-base);
}
.tv-header.is-scrolled .tv-logo,
[data-theme="dark"] .tv-header .tv-logo {
  color: var(--text-primary);
}
[data-theme="dark"] .tv-header:not(.is-scrolled) .tv-logo {
  color: var(--tv-white);
}

.tv-logo img {
  height: 38px;
  width: auto;
}

.tv-header .nav-link {
  font-weight: 600;
  color: var(--tv-header-text, var(--tv-navy-950));
  margin: 0 0.65rem;
  position: relative;
  padding-bottom: 4px !important;
  transition: color var(--transition-base);
}
.tv-header.is-scrolled .nav-link,
[data-theme="dark"] .tv-header .nav-link {
  color: var(--text-primary);
}
[data-theme="dark"] .tv-header:not(.is-scrolled) .nav-link {
  color: var(--tv-white);
}

.tv-header .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--tv-accent);
  transition: width var(--transition-base);
}
.tv-header .nav-link:hover::after,
.tv-header .nav-link.active::after {
  width: 100%;
}

.tv-header .nav-link.active {
  color: var(--tv-accent) !important;
}

/* Theme toggle button */
.theme-toggle-btn {
  border: none;
  background: transparent;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tv-header-text, var(--tv-white));
  transition: background var(--transition-base), color var(--transition-base);
}
.tv-header.is-scrolled .theme-toggle-btn,
[data-theme="dark"] .tv-header .theme-toggle-btn {
  color: var(--text-primary);
}
[data-theme="dark"] .tv-header:not(.is-scrolled) .theme-toggle-btn {
  color: var(--tv-white);
}
.theme-toggle-btn:hover {
  background: rgba(23, 195, 178, 0.15);
}
.theme-toggle-btn .bi-sun-fill { display: none; }
[data-theme="dark"] .theme-toggle-btn .bi-moon-stars-fill { display: none; }
[data-theme="dark"] .theme-toggle-btn .bi-sun-fill { display: inline-block; }

/* Mobile nav toggler */
.tv-header .navbar-toggler {
  border: none;
  color: var(--tv-header-text, var(--tv-white));
  font-size: 1.4rem;
}
.tv-header.is-scrolled .navbar-toggler,
[data-theme="dark"] .tv-header .navbar-toggler { color: var(--text-primary); }
[data-theme="dark"] .tv-header:not(.is-scrolled) .navbar-toggler { color: var(--tv-white); }

@media (max-width: 991.98px) {
  .tv-header .navbar-collapse {
    background: var(--bg-surface);
    margin-top: 1rem;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
  }
  .tv-header .nav-link,
  .tv-header.is-scrolled .nav-link {
    color: var(--text-primary) !important;
  }
  .tv-header .navbar-toggler,
  .tv-header .theme-toggle-btn { color: var(--text-primary) !important; }
}

/* Page header (non-home hero) for interior pages */
.tv-page-header {
  background: linear-gradient(135deg, var(--tv-navy-950), var(--tv-navy-800));
  color: var(--tv-white);
  padding: 170px 0 90px;
  position: relative;
  overflow: hidden;
}
.tv-page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(169, 214, 229, 0.18), transparent 45%);
}
.tv-page-header .breadcrumb-tv a { color: var(--tv-sky-300); }
.tv-page-header .breadcrumb-tv span { color: var(--tv-white); }

/* Force headings/eyebrow text to stay white on dark hero/page-header and
   bg-brand-dark sections — otherwise the global h1-h6 rule (color:
   var(--text-primary)) would win over the section's inherited color. */
.tv-page-header h1,
.tv-page-header h2,
.tv-page-header h3,
.tv-page-header .section-title,
.bg-brand-dark h1,
.bg-brand-dark h2,
.bg-brand-dark h3,
.bg-brand-dark .section-title {
  color: var(--tv-white);
}
.tv-page-header p,
.bg-brand-dark .section-subtitle {
  color: var(--tv-sky-300);
}

/* --------------------------------------------------------------------------
   6. HERO (HOME) + SLIDER
   -------------------------------------------------------------------------- */
.tv-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--tv-navy-950);
  padding-bottom: 50px;
}

.tv-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.tv-hero-slide.active { opacity: 1; }
.tv-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(1,42,74,0.92) 30%, rgba(1,73,124,0.75));
}

.tv-hero-content {
  position: relative;
  z-index: 3;
  color: var(--tv-white);
  padding-top: var(--header-height);
}

.tv-hero-content h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  color: var(--tv-white);
}

.tv-hero-content p {
  color: var(--tv-sky-300);
  font-size: 1.15rem;
  max-width: 600px;
}

.tv-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(169, 214, 229, 0.12);
  border: 1px solid rgba(169, 214, 229, 0.35);
  color: var(--tv-sky-300);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.3rem;
}

.tv-hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
}
.tv-hero-dots button {
  width: 34px;
  height: 4px;
  border: none;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  transition: background var(--transition-base);
}
.tv-hero-dots button.active { background: var(--tv-accent); }

.tv-hero-stats {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 3rem;
  padding-top: 1.8rem;
}
.tv-hero-stats .stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--tv-white);
}
.tv-hero-stats .stat-label {
  color: var(--tv-sky-300);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   7. CLIENT LOGO MARQUEE
   -------------------------------------------------------------------------- */
.tv-marquee {
  background: var(--bg-alt);
  padding: 2.6rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}
.tv-marquee-track {
  display: flex;
  width: max-content;
  animation: tv-scroll 28s linear infinite;
  gap: 4.5rem;
  align-items: center;
}
.tv-marquee:hover .tv-marquee-track { animation-play-state: paused; }
.tv-marquee-track img {
  height: 34px;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity var(--transition-base), filter var(--transition-base);
}
.tv-marquee-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}
@keyframes tv-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   8. SECTIONS / GENERIC SPACING
   -------------------------------------------------------------------------- */
.tv-section {
  padding: 5.5rem 0;
}
@media (max-width: 767.98px) {
  .tv-section { padding: 3.5rem 0; }
}

/* --------------------------------------------------------------------------
   9. CARDS — services, portfolio, blog, tech, pricing, team
   -------------------------------------------------------------------------- */
.tv-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  height: 100%;
}
.tv-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

/* Service card */
.service-card {
  padding: 2.2rem 1.8rem;
}
.service-card .service-icon {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--tv-navy-900), var(--tv-accent));
  color: var(--tv-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.3rem;
  transition: transform var(--transition-base);
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }

/* Portfolio card */
.portfolio-card { overflow: hidden; }
.portfolio-card .portfolio-img-wrap {
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: relative;
}
.portfolio-card .portfolio-img-wrap img {
  transition: transform 0.6s ease;
  width: 100%;
  display: block;
}
.portfolio-card:hover .portfolio-img-wrap img { transform: scale(1.08); }
.portfolio-card .portfolio-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--tv-accent);
  color: var(--tv-navy-950);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}
.portfolio-card .portfolio-body { padding: 1.5rem; }
.tech-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--text-secondary);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  margin: 0 0.3rem 0.3rem 0;
}

/* Blog card */
.blog-card .blog-img-wrap { overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.blog-card .blog-img-wrap img { transition: transform 0.6s ease; width:100%; display:block; }
.blog-card:hover .blog-img-wrap img { transform: scale(1.08); }
.blog-card .blog-body { padding: 1.6rem; }
.blog-meta { font-size: 0.85rem; color: var(--text-secondary); }
.blog-meta i { color: var(--tv-accent-dark); }
.blog-cat-badge {
  display: inline-block;
  background: var(--tv-sky-100);
  color: var(--tv-navy-900);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}
[data-theme="dark"] .blog-cat-badge { background: rgba(169,214,229,0.15); color: var(--tv-sky-300); }

/* Technology card */
.tech-group-card { padding: 2rem; }
.tech-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border-color);
  font-weight: 600;
}
.tech-item:last-child { border-bottom: none; }
.tech-item i { color: var(--tv-accent-dark); font-size: 1.25rem; width: 26px; text-align: center; }

/* Team / Why choose us icon boxes */
.icon-box {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.icon-box .icon-box-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--tv-sky-100);
  color: var(--tv-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
[data-theme="dark"] .icon-box .icon-box-icon { background: rgba(169,214,229,0.14); color: var(--tv-sky-300); }

/* Process steps */
.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}
.process-step .process-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--tv-accent);
  color: var(--tv-accent-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  background: var(--bg-surface);
  position: relative;
  z-index: 2;
}
.process-line {
  position: absolute;
  top: 32px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

/* Testimonials */
.testimonial-card {
  padding: 2rem;
}
.testimonial-card .stars { color: var(--tv-warn); margin-bottom: 1rem; }
.testimonial-card .client-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.4rem;
}
.testimonial-card .client-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* Pricing cards (hosting) */
.pricing-card {
  padding: 2.4rem 2rem;
  text-align: center;
  position: relative;
}
.pricing-card.popular {
  border: 2px solid var(--tv-accent);
  transform: scale(1.04);
}
.pricing-card .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tv-accent);
  color: var(--tv-navy-950);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 50px;
}
.pricing-card .price {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-primary);
}
.pricing-card .price span { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.pricing-card ul { list-style: none; padding: 0; margin: 1.6rem 0; text-align: left; }
.pricing-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li i { color: var(--tv-accent-dark); }
.pricing-card ul li.unavailable { color: var(--text-secondary); text-decoration: line-through; opacity: 0.6; }
.pricing-card ul li.unavailable i { color: var(--text-secondary); }

/* FAQ Accordion tweaks */
.accordion-tv .accordion-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) !important;
  margin-bottom: 1rem;
  overflow: hidden;
}
.accordion-tv .accordion-button {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 700;
  font-family: var(--font-heading);
}
.accordion-tv .accordion-button:not(.collapsed) {
  color: var(--tv-accent-dark);
  background: var(--bg-alt);
  box-shadow: none;
}
.accordion-tv .accordion-button:focus { box-shadow: none; }
.accordion-tv .accordion-body { color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   10. FORMS
   -------------------------------------------------------------------------- */
.form-control-tv,
.form-select-tv {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.form-control-tv:focus,
.form-select-tv:focus {
  border-color: var(--tv-accent);
  box-shadow: 0 0 0 4px rgba(23, 195, 178, 0.15);
  background: var(--bg-surface);
  color: var(--text-primary);
}
.form-control-tv::placeholder { color: var(--text-secondary); opacity: 0.8; }
label.form-label-tv { font-weight: 600; margin-bottom: 0.4rem; }

/* Contact info card */
.contact-info-card {
  padding: 2rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item .icon-box-icon { width: 46px; height: 46px; font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.tv-footer {
  background: var(--tv-navy-1000, #011524);
  color: var(--tv-sky-100);
  padding-top: 4.5rem;
}
[data-theme="dark"] .tv-footer { background: #010e1a; }
.tv-footer h5 {
  color: var(--tv-white);
  font-size: 1.05rem;
  margin-bottom: 1.3rem;
}
.tv-footer p, .tv-footer li { color: var(--tv-sky-300); }
.tv-footer a.footer-link {
  color: var(--tv-sky-300);
  display: inline-block;
  margin-bottom: 0.65rem;
  transition: color var(--transition-base), transform var(--transition-base);
}
.tv-footer a.footer-link:hover {
  color: var(--tv-accent);
  transform: translateX(4px);
}
.footer-newsletter .form-control {
  border-radius: 50px 0 0 50px;
  border: none;
  padding: 0.7rem 1.2rem;
}
.footer-newsletter .btn {
  border-radius: 0 50px 50px 0;
  background: var(--tv-accent);
  color: var(--tv-navy-950);
  font-weight: 700;
  padding: 0.7rem 1.3rem;
  border: none;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--tv-white);
  margin-right: 0.6rem;
  transition: all var(--transition-base);
}
.footer-social a:hover {
  background: var(--tv-accent);
  color: var(--tv-navy-950);
  transform: translateY(-4px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding: 1.4rem 0;
  font-size: 0.9rem;
}
.footer-bottom a { color: var(--tv-sky-300); }
.footer-bottom a:hover { color: var(--tv-accent); }

/* --------------------------------------------------------------------------
   12. FLOATING WHATSAPP BUTTON
   -------------------------------------------------------------------------- */
.tv-whatsapp-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--tv-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
  z-index: 1040;
  animation: tv-pulse 2.4s infinite;
}
.tv-whatsapp-btn:hover { transform: scale(1.08); color: var(--tv-white); }
@keyframes tv-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Back to top */
.tv-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tv-navy-900);
  color: var(--tv-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
}
.tv-back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.tv-back-to-top:hover { background: var(--tv-accent); color: var(--tv-navy-950); }

/* --------------------------------------------------------------------------
   13. FINAL CTA BANNER
   -------------------------------------------------------------------------- */
.tv-cta-banner {
  background: linear-gradient(120deg, var(--tv-navy-950), var(--tv-navy-800));
  color: var(--tv-white);
  border-radius: var(--radius-lg);
  padding: 3.2rem;
  position: relative;
  overflow: hidden;
}
.tv-cta-banner::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(23,195,178,0.35), transparent 70%);
  right: -80px;
  top: -80px;
}
.tv-cta-banner p { color: var(--tv-sky-300); }

/* --------------------------------------------------------------------------
   14. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-fade { transform: none; }
.reveal-left { transform: translateX(-40px); }
.reveal-left.reveal-visible { transform: translateX(0); }
.reveal-right { transform: translateX(40px); }
.reveal-right.reveal-visible { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tv-marquee-track { animation: none !important; }
  .tv-whatsapp-btn { animation: none !important; }
}

/* --------------------------------------------------------------------------
   15. SINGLE BLOG PAGE
   -------------------------------------------------------------------------- */
.blog-single-content h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.blog-single-content h3 { margin-top: 1.8rem; font-size: 1.3rem; }
.blog-single-content p { color: var(--text-secondary); line-height: 1.9; margin-bottom: 1.1rem; }
.blog-single-content blockquote {
  border-left: 4px solid var(--tv-accent);
  padding: 1rem 1.5rem;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  margin: 1.8rem 0;
}
.blog-single-content ul { color: var(--text-secondary); line-height: 1.9; }
.blog-tags .tech-pill { cursor: pointer; }
.author-box {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 1.6rem;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  margin-top: 2.5rem;
}
.author-box img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; }
.sidebar-widget { padding: 1.7rem; margin-bottom: 1.8rem; }
.sidebar-widget h5 { font-family: var(--font-heading); margin-bottom: 1.2rem; }
.recent-post-mini {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
  align-items: center;
}
.recent-post-mini img { width: 62px; height: 62px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink:0; }
.recent-post-mini a { font-weight: 600; font-size: 0.92rem; line-height: 1.35; }
.category-list-widget li { border-bottom: 1px dashed var(--border-color); padding: 0.6rem 0; display:flex; justify-content: space-between; }
.category-list-widget li:last-child { border-bottom: none; }

/* --------------------------------------------------------------------------
   16. MISC UTILITIES
   -------------------------------------------------------------------------- */
.divider-accent {
  width: 60px;
  height: 4px;
  background: var(--tv-accent);
  border-radius: 4px;
  margin-bottom: 1.2rem;
}
.rounded-tv { border-radius: var(--radius-md) !important; }
.shadow-tv { box-shadow: var(--card-shadow); }
.avatar-stack img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--bg-body);
  object-fit: cover;
  margin-left: -14px;
}
.avatar-stack img:first-child { margin-left: 0; }

/* Carousel controls override */
.tv-hero .carousel-control-prev,
.tv-hero .carousel-control-next {
  width: 5%;
  opacity: 0.6;
}
.tv-hero .carousel-control-prev:hover,
.tv-hero .carousel-control-next:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   17. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .pricing-card.popular { transform: none; }
}
@media (max-width: 767.98px) {
  .tv-hero { min-height: 92vh; }
  .tv-cta-banner { padding: 2.2rem 1.5rem; text-align: center; }
  .process-line { display: none; }
}
