/* =====================================================
   FONT IMPORTS (DISPLAY + BODY FRIENDLY)
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Poppins:wght@400;500;600&display=swap');

/* =====================================================
   GLOBAL RESET & SCALING
   ===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* 🔑 Core scaling logic for TVs & 4K */
  font-size: clamp(16px, 1vw, 22px);
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100%;
  overflow-x: hidden;
  color: #ffffff;
  line-height: 1.6;
}

/* Headings optimized for distance viewing */
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.03em;
}

/* =====================================================
   BACKGROUND VIDEO
   ===================================================== */
#bgVideo {
  position: fixed;
  inset: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(50%);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: min(90%, 1100px);
  padding: clamp(24px, 3vw, 60px);
  animation: fadeIn 2s ease-in-out;
}

.hero-content h1 {
  font-weight: 800;
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  margin-bottom: 1rem;
}

.hero-content p {
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  letter-spacing: 0.02em;
  margin-bottom: 2.2rem;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-block;
  padding: clamp(14px, 1.2vw, 22px) clamp(30px, 2vw, 45px);
  font-size: clamp(1rem, 1.3vw, 1.5rem);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: #00b894;
  color: #ffffff;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #019870;
  transform: scale(1.05);
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */
.features {
  background: rgba(0, 0, 0, 0.7);
  padding: clamp(60px, 6vw, 120px) clamp(20px, 5vw, 100px);
  text-align: center;
}

.features h2 {
  font-weight: 700;
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  margin-bottom: clamp(30px, 4vw, 60px);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(25px, 3vw, 50px);
  max-width: 1600px;
  margin: auto;
}

.card {
  background: rgba(255, 255, 255, 0.12);
  padding: clamp(25px, 2vw, 45px);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card img {
  width: clamp(60px, 5vw, 100px);
  height: auto;
  margin-bottom: 20px;
}

.card h3 {
  font-weight: 700;
  font-size: clamp(1.3rem, 1.8vw, 2rem);
  margin-bottom: 10px;
}

.card p {
  font-weight: 500;
  font-size: clamp(1rem, 1.3vw, 1.4rem);
  letter-spacing: 0.02em;
}

/* =====================================================
   LOGIN SECTION
   ===================================================== */
.login-section {
  background: rgba(0, 0, 0, 0.85);
  padding: clamp(60px, 6vw, 120px) clamp(20px, 5vw, 100px);
  text-align: center;
}

.login-section h2 {
  font-weight: 700;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  margin-top: 30px;
}

.login-form input {
  width: min(90%, 420px);
  padding: clamp(14px, 1.2vw, 20px);
  font-size: clamp(1rem, 1.2vw, 1.4rem);
  font-weight: 500;
  border-radius: 40px;
  border: none;
  outline: none;
}

.login-form button {
  width: min(90%, 420px);
  padding: clamp(14px, 1.2vw, 22px);
  font-size: clamp(1rem, 1.3vw, 1.5rem);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 40px;
  border: none;
  background: #00b894;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-form button:hover {
  background: #019870;
  transform: scale(1.05);
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: rgba(0, 0, 0, 0.9);
  padding: clamp(20px, 3vw, 40px);
  text-align: center;
  font-size: clamp(0.9rem, 1.1vw, 1.3rem);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   MOBILE ADJUSTMENTS
   ===================================================== */
@media (max-width: 768px) {
  .hero-content {
    padding: 20px;
  }
}

/* =====================================================
   LARGE SCREENS / TVs
   ===================================================== */
@media (min-width: 1600px) {
  body {
    line-height: 1.7;
    text-rendering: optimizeLegibility;
  }
}

/* =====================================================
   ULTRA-WIDE / 4K SCREENS
   ===================================================== */
@media (min-width: 2500px) {
  html {
    font-size: 24px;
  }
}
