:root {
  --bg: #0f111a;
  --card: #141a2c;
  --muted: #9aa4b2;
  --accent1: #ff0000; /* subtle YouTube red */
  --accent2: #ff4747;
  --glass: rgba(255, 255, 255, 0.05);
  --radius: 16px;
  --container: 1200px;
  --gap: 20px;
  --text: #e6eef8;
  --muted-2: #9aa4b2;
  --success: #10b981;
}

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

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), #0c0e1c);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

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

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(15,17,26,0.85), rgba(15,17,26,0.5));
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-text .brand-name {
  font-weight: 800;
  font-size: 18px;
}

.brand-text .brand-sub {
  font-size: 12px;
  color: var(--muted-2);
}

/* NAVIGATION */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.nav-list {
  display: flex;
  gap: 16px;
  list-style: none;
}

.nav-list a {
  color: var(--muted-2);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-list a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: white;
  border: none;
  box-shadow: 0 6px 18px rgba(255, 71, 71, 0.2);
}

.btn-primary:hover {
  opacity: 0.95;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted-2);
}

.btn-outline:hover {
  color: var(--text);
  border-color: var(--accent1);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text);
}

/* HERO */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
}

.hero-card {
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  flex-wrap: wrap;
}

.hero-card .avatar img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius);
  object-fit: cover;
}

.hero-body {
  flex: 1;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
}

.accent {
  color: var(--accent2);
}

.hero-sub {
  color: var(--muted-2);
  margin-top: 8px;
  line-height: 1.5;
}

.meta-pills {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  background: rgba(255,255,255,0.05);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}

.hero-ctas {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.social-links img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-top: 18px;
}

.stat {
  background: rgba(255,255,255,0.02);
  padding: 12px;
  border-radius: 12px;
  text-align: center;
}

.stat-num {
  font-weight: 800;
  font-size: 18px;
}

.stat-label {
  color: var(--muted-2);
  font-size: 13px;
  margin-top: 6px;
}

/* =========================================
   VIDEO SECTION ENHANCED WITH POPUP
========================================= */
.block {
  padding: 64px 0;
}

.content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.lead {
  color: var(--muted-2);
  margin-bottom: 24px;
  line-height: 1.6;
  font-size: 16px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.video-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img {
  transform: scale(1.05);
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  padding: 14px;
  border-radius: 50%;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.3s ease;
}

.video-card:hover .play {
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-meta {
  padding: 16px;
}

.video-meta h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.views {
  font-size: 14px;
  color: var(--accent2);
  font-weight: 600;
  margin-top: 4px;
}

/* ==========================
   VIDEO POPUP
========================== */
.video-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-popup.active {
  display: flex;
  opacity: 1;
}

.video-popup-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-popup.active .video-popup-content {
  transform: scale(1);
  opacity: 1;
}

.video-popup iframe {
  width: 100%;
  height: 450px;
  display: block;
}

.video-popup .close {
  position: absolute;
  top: 10px;
  right: 18px;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.video-popup .close:hover {
  transform: scale(1.1);
  color: var(--accent2);
}

/* ==========================
   RESPONSIVENESS
========================== */
@media (max-width: 992px) {
  .videos-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .videos-grid {
    grid-template-columns: 1fr;
  }

  .video-thumb img {
    height: 180px;
  }

  .play {
    font-size: 20px;
    padding: 12px;
  }

  .video-meta h3 {
    font-size: 16px;
  }

  .views {
    font-size: 13px;
  }
}


/* TESTIMONIALS */
.testi-frame {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
}

.testi {
  background: rgba(255,255,255,0.03);
  padding: 18px;
  border-radius: 14px;
}

.testi blockquote {
  font-style: italic;
  color: var(--muted-2);
  margin: 0 0 8px;
}

.testi cite {
  display: block;
  font-weight: 700;
  color: var(--text);
}

/* CONTACT */
/* ===========================
   CONTACT SECTION
=========================== */
.contact {
  padding: 80px 0;
}

.contact h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.contact .lead {
  text-align: center;
  color: var(--muted-2);
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  background: rgba(255,255,255,0.02);
  padding: 24px;
  border-radius: var(--radius);
}

.contact-info h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--text);
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}

.contact-list li {
  margin-bottom: 10px;
  color: var(--muted-2);
  font-size: 15px;
}

#copyEmailBtn {
  margin-top: 10px;
}

.form-card {
  background: rgba(255,255,255,0.02);
  padding: 24px;
  border-radius: var(--radius);
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  background: transparent;
  color: var(--text);
}

/* ===========================
   RESPONSIVENESS
=========================== */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-info,
  .form-card {
    padding: 20px;
  }
}

label {
  display: block;
  color: var(--muted-2);
  margin-bottom: 6px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  background: transparent;
  color: var(--text);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* FOOTER */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.02);
  margin-top: 30px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner .copy {
  color: var(--muted-2);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .videos-grid { grid-template-columns: repeat(2,1fr); }
  .testi-frame { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-card { flex-direction: column; align-items: center; text-align: center; }
  .hero-body { flex: unset; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .nav-list { display: none; }
  .nav-toggle { display: inline-block; }
}

@media (max-width: 480px) {
  .videos-grid { grid-template-columns: 1fr; }
  .hero-card .avatar img { width: 120px; height: 120px; }
  .stat { font-size: 13px; }
  .hero-title { font-size: 24px; }
  .btn { padding: 8px 14px; font-size: 14px; }
}


@media (max-width: 768px) {
  .logo img {
    max-width: 40px; /* scale down slightly for mobile */
  }

  .brand-text .brand-name {
    font-size: 16px; /* reduce text size */
  }

  .brand-text .brand-sub {
    font-size: 10px;
  }
}
