/* ============================
   THEME VARIABLES
============================ */
:root {
  --twlo-black: #0b0d0f;
  --twlo-silver: #d7dbe0;
  --twlo-white: #ffffff;
  --twlo-gold: #d4af37;
  --twlo-charcoal: rgba(11, 13, 15, 0.85);
  --twlo-link: #17324d;
}

/* ============================
   BASE STYLES
============================ */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--twlo-black);
  background-color: var(--twlo-silver);
  min-height: 100%;
  padding-top: 80px; /* space for floating navbar */
}

/* ============================
   FLOATING NAVIGATION
============================ */
#navbar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5000;
  pointer-events: none; /* avoids invisible layer blocking clicks */
}

.navbar {
  position: relative;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 0 1.5rem;

  pointer-events: auto;
  background: rgba(23, 50, 77, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease;

  opacity: 0;
  transform: translateY(-20px);
  animation: navFade 0.8s ease forwards;
}

.navbar.scrolled {
  background: rgba(23, 50, 77, 0.98);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
}

.navbar a {
  color: var(--twlo-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02rem;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--twlo-gold);
  transition: width 0.3s ease;
}

.navbar a:hover {
  color: var(--twlo-gold);
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a.active {
  color: var(--twlo-gold);
}

.navbar a.nav-link-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.navbar a.nav-link-disabled::after,
.navbar a.nav-link-disabled:hover::after {
  width: 0;
}

.navbar-logo {
  display: inline-block;
  margin-right: 15px;
}

.navbar-logo-img {
  height: 50px;
  width: auto;
  vertical-align: middle;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.75;
}

.navbar-logo-img:hover {
  opacity: 1;
  transform: scale(1.05);
}

@keyframes navFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   HERO HEADER
============================ */
.hero {
  background: linear-gradient(rgba(11, 13, 15, 0.6), rgba(11, 13, 15, 0.8)),
    url("../fuzzy_logo_on_building.jpeg") center/cover no-repeat;
  color: var(--twlo-white);
  text-align: center;
  padding: 3.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
}

.hero-logo {
  width: 100px;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.45));
}

.hero h1 {
  font-size: 2rem;
  margin: 0.5rem 0 0;
}

/* ============================
   CONTACT BUTTONS
============================ */
.contact-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-btn {
  background-color: var(--twlo-gold);
  color: var(--twlo-black);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.contact-btn:hover {
  background-color: var(--twlo-white);
  color: var(--twlo-black);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
}

/* ============================
   VIDEO PLAYER SECTION
============================ */
.focused-video {
  text-align: center;
  padding: 3rem 1rem;
  background-color: var(--twlo-white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.video-player {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity 0.6s ease;
  opacity: 1;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
}

.video-placeholder .overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* ============================
   PRACTICE AREA CONTENT
============================ */
.practice-area {
  margin: 3rem auto;
  max-width: 960px;
  background: var(--twlo-white);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.5rem;
}

.practice-area h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--twlo-link);
}

.video-block {
  margin: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 1.5rem;
}

.video-intro p,
.video-conclusion p {
  color: rgba(11, 13, 15, 0.85);
  line-height: 1.7;
  font-size: 1.1rem;
  text-align: justify;
  margin-bottom: 1rem;
}

.video-conclusion {
  margin-top: 1rem;
  border-left: 3px solid var(--twlo-gold);
  padding-left: 1rem;
}

.video-error {
  text-align: center;
  font-size: 1.05rem;
  color: #8a1f1f;
  margin: 0;
}

/* ============================
   WATCH BUTTON
============================ */
.watch-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  gap: 12px;

  background: linear-gradient(to bottom right, #f6e27a, var(--twlo-gold));
  color: var(--twlo-black);
  padding: 0.9rem 2.2rem 0.9rem 2.8rem; /* extra left padding for logo */
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.03rem;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
  transition: all 0.25s ease;
}

.watch-btn:hover {
  background: linear-gradient(to bottom right, var(--twlo-gold), #c9a430);
  color: var(--twlo-white);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

.watch-btn-icon {
  position: absolute;
  left: .1rem !important;
  top: 50%;
  height:50px !important;
  width:50px !important;
  transform: translateY(-50%);
  object-fit: contain;
  opacity: 0.5;
  filter: brightness(1.5) contrast(1.2);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.watch-btn-icon:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.5);
}

.watch-btn-text {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ============================
   FOOTER
============================ */
.footer {
  background-color: var(--twlo-charcoal);
  color: var(--twlo-white);
  padding: 2rem 1rem;
  text-align: center;
}

.footer a {
  color: var(--twlo-gold);
  text-decoration: none;
}

.footer a:hover {
  color: var(--twlo-white);
  text-decoration: underline;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ============================
   RESPONSIVE DESIGN
============================ */
@media (max-width: 768px) {
  body {
    padding-top: 100px;
  }

  .navbar {
    flex-wrap: wrap;
    gap: 1.25rem;
    height: auto;
    padding: 0.75rem;
  }

  .hero-inner {
    flex-direction: column;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .practice-area {
    padding: 1.25rem;
  }

  .watch-btn {
    width: 90%;
    font-size: 0.95rem;
    padding: 0.8rem 1.4rem 0.8rem 2.2rem;
  }

  .watch-btn-icon {
    left: 1rem;
    width: 20px;
    height: 20px;
  }
}
