/* ==============================
   RESET & BASE
============================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background-color: #060b18;
  color: #ffffff;
  overflow-x: hidden;
}

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

/* ==============================
   NAVBAR
============================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 60px;
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.logo-img {
  height: 100px;
  width: auto;
  max-width: 240px;
  display: block;
}

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #ffffff;
}

.arrow {
  font-size: 0.7rem;
  margin-left: 4px;
  opacity: 0.6;
}

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

.btn-login {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-login:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
}

/* Request Demo button */
.btn-demo {
  background: linear-gradient(135deg, #1a6dff, #0e4fcb);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 0 18px rgba(26, 109, 255, 0.4);
}

.btn-demo:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ==============================
   HERO SECTION
============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 60px 60px;
  overflow: hidden;
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dot grid background */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
}

/* Dark overlay to keep text readable */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 24, 0.45);
  z-index: 0;
}

/* ---- LEFT CONTENT ---- */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 44%;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, #2979ff, #1251e0);
  color: #fff;
  padding: 14px 36px;
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid rgba(100, 160, 255, 0.4);
  box-shadow:
    0 0 20px rgba(26, 109, 255, 0.5),
    0 4px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s;
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 30px rgba(26, 109, 255, 0.7),
    0 6px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  padding: 14px 36px;
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(255,255,255,0.1), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* ---- RIGHT SIDE CONTAINER ---- */
.hero-image {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  overflow: hidden;
}

/* Both panels sit inside and slide */
.right-panel {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.65s ease;
}

/* DASHBOARD panel — default visible */
.dashboard-panel {
  transform: translateX(0);
  opacity: 1;
}

.dashboard-panel img {
  width: 95%;
  border-radius: 14px;
  transform: perspective(1400px) rotateY(-10deg) rotateX(5deg);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.7),
    0 0 80px rgba(26,109,255,0.25),
    0 0 200px rgba(26,109,255,0.1);
  transition: transform 0.5s ease;
}

.dashboard-panel img:hover {
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
}

/* LOGIN panel — default hidden to the right */
.login-panel {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

/* ACTIVE STATE — show login, hide dashboard */
.hero-image.show-login .dashboard-panel {
  transform: translateX(-60%) scale(0.9);
  opacity: 0;
  pointer-events: none;
}

.hero-image.show-login .login-panel {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

/* ---- LOGIN CARD (inside hero) ---- */
.login-card {
  width: 100%;
  max-width: 380px;
  background: rgba(10, 18, 40, 0.88);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px 36px 28px;
  backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(26,109,255,0.08),
    0 0 60px rgba(26,109,255,0.15),
    0 24px 80px rgba(0,0,0,0.6);
  position: relative;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  font-family: inherit;
  transition: color 0.2s;
}

.back-btn:hover { color: #fff; }

.card-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.card-logo img {
  height: 32px;
  width: auto;
}

.login-card h2 {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 13px;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.input-group input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.input-group input::placeholder { color: rgba(255,255,255,0.3); }
.input-group input:focus {
  border-color: rgba(41,121,255,0.6);
  background: rgba(41,121,255,0.06);
}

.btn-signin {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #2979ff, #1251e0);
  color: #fff;
  border: 1px solid rgba(100,160,255,0.3);
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 0 22px rgba(26,109,255,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 4px;
}

.btn-signin:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 34px rgba(26,109,255,0.7), inset 0 1px 0 rgba(255,255,255,0.15);
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.btn-google {
  width: 100%;
  padding: 12px;
  background: #fff;
  color: #222;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  transition: background 0.2s, transform 0.2s;
}

.btn-google:hover { background: #f0f4ff; transform: translateY(-1px); }

.card-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.card-footer a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.card-footer a:hover { color: #fff; text-decoration: underline; }
.sep { opacity: 0.4; }

.invite-note {
  text-align: center;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.18);
  margin-top: 10px;
}

/* Bright light beam above the dashboard (like in the reference) */
.hero-image::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -20px;
  width: 300px;
  height: 400px;
  background: radial-gradient(ellipse at top, rgba(100, 180, 255, 0.55) 0%, rgba(26, 109, 255, 0.15) 40%, transparent 70%);
  filter: blur(30px);
  z-index: 1;
  pointer-events: none;
}

/* Glow behind image */
.image-glow {
  position: absolute;
  width: 650px;
  height: 500px;
  top: 10%;
  background: radial-gradient(ellipse, rgba(26, 109, 255, 0.25) 0%, transparent 65%);
  z-index: 1;
  filter: blur(50px);
  pointer-events: none;
}


/* ---- DECORATIVE LINES & DOTS ---- */
.line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 109, 255, 0.5), transparent);
  z-index: 1;
}

.line-left {
  width: 220px;
  top: 52%;
  left: 40%;
}

.line-right {
  width: 160px;
  top: 60%;
  right: 8%;
}

.dot {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}

.dot-1 {
  width: 8px;
  height: 8px;
  background: #1a6dff;
  top: 52%;
  left: 40%;
  box-shadow: 0 0 12px #1a6dff;
}

.dot-2 {
  width: 6px;
  height: 6px;
  background: #a855f7;
  top: 68%;
  left: 28%;
  box-shadow: 0 0 10px #a855f7;
}

.dot-3 {
  width: 6px;
  height: 6px;
  background: #1a6dff;
  top: 60%;
  right: 8%;
  box-shadow: 0 0 10px #1a6dff;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding: 120px 30px 60px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    margin-left: 0;
    margin-top: 50px;
    width: 100%;
  }

  .navbar {
    padding: 18px 30px;
  }

  .nav-links {
    display: none;
  }
}
