/* ==========================================================================
   TechTV Custom Styles
   Built on Bootstrap 5.3
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Brand Variables)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --techtv-dark-blue: #1a2744;
  --techtv-cream: #f5f1e8;
  --techtv-black: #000000;
  --techtv-orange: #ff9500;
  --techtv-red: #ff3b30;

  /* Gradient */
  --techtv-gradient: linear-gradient(135deg, var(--techtv-orange), var(--techtv-red));

  /* Bootstrap Overrides */
  --bs-body-bg: var(--techtv-black);
  --bs-body-color: var(--techtv-cream);
  --bs-primary: var(--techtv-orange);
  --bs-secondary: var(--techtv-dark-blue);
  --bs-danger: var(--techtv-red);
  --bs-danger-rgb: 255, 59, 48;
  --bs-warning: var(--techtv-orange);
  --bs-warning-rgb: 255, 149, 0;
  --bs-link-color: var(--techtv-orange);
  --bs-link-hover-color: var(--techtv-red);

  /* Typography */
  --techtv-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --techtv-font-mono: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace;

  /* Spacing */
  --techtv-section-padding: 5rem;
  --techtv-section-padding-mobile: 3rem;
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--techtv-black);
  color: var(--techtv-cream);
  font-family: var(--techtv-font-body);
  line-height: 1.6;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--techtv-cream);
}

/* Links */
a {
  color: var(--techtv-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Code/Technical Text */
code, pre, .font-mono {
  font-family: var(--techtv-font-mono);
}

code {
  background-color: rgba(26, 39, 68, 0.5);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

pre {
  background-color: var(--techtv-dark-blue);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}

/* --------------------------------------------------------------------------
   Layout Components
   -------------------------------------------------------------------------- */

/* Sections */
.section {
  padding: var(--techtv-section-padding) 0;
}

@media (max-width: 767.98px) {
  .section {
    padding: var(--techtv-section-padding-mobile) 0;
  }
}

/* Hero Section (generic) */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* Hero Section (home page) */
.hero-home {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image: url('../images/bg_hero.png');
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
}

.hero-home-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  max-width: 70%;
  height: auto;
}

@media (max-width: 991.98px) {
  .hero-home {
    /* Allow slightly taller on smaller screens if needed */
    min-height: 50vh;
  }
}

@media (max-width: 575.98px) {
  .hero-logo {
    max-width: 85%;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

/* Gradient CTA Button */
.btn-gradient {
  background: var(--techtv-gradient);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 149, 0, 0.4);
  color: white;
}

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

/* Outline Button (Secondary) */
.btn-outline-cream {
  border: 2px solid var(--techtv-cream);
  color: var(--techtv-cream);
  background: transparent;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline-cream:hover {
  background-color: var(--techtv-cream);
  color: var(--techtv-black);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.navbar-techtv {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 39, 68, 0.5);
}

.navbar-techtv .nav-link {
  color: var(--techtv-cream);
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-techtv .nav-link:hover,
.navbar-techtv .nav-link.active {
  color: var(--techtv-orange);
}

/* --------------------------------------------------------------------------
   Cards & Feature Boxes
   -------------------------------------------------------------------------- */
.feature-card {
  background-color: var(--techtv-dark-blue);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
  color: var(--techtv-orange);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Retro TV Styling Elements
   -------------------------------------------------------------------------- */
.retro-tv-frame {
  border: 8px solid var(--techtv-cream);
  border-radius: 1.5rem;
  padding: 1rem;
  background-color: var(--techtv-dark-blue);
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.5),
    0 10px 40px rgba(0, 0, 0, 0.5);
}

.retro-tv-screen {
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--techtv-black);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--techtv-dark-blue);
  padding: 3rem 0 2rem;
}

.footer a {
  color: var(--techtv-cream);
  opacity: 0.8;
}

.footer a:hover {
  opacity: 1;
  color: var(--techtv-orange);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */

/* Text Colors */
.text-cream { color: var(--techtv-cream) !important; }
.text-orange { color: var(--techtv-orange) !important; }
.text-dark-blue { color: var(--techtv-dark-blue) !important; }

/* Background Colors */
.bg-dark-blue { background-color: var(--techtv-dark-blue) !important; }
.bg-techtv-black { background-color: var(--techtv-black) !important; }

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

/* Muted cream text */
.text-cream-muted {
  color: var(--techtv-cream);
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Stagger delays for sequential animations */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding: 6rem 0 4rem;
  }
}

@media (max-width: 767.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .btn-gradient,
  .btn-outline-cream {
    padding: 0.625rem 1.5rem;
    width: 100%;
  }
}
