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

html,
body {
  height: 100%;
  font-family: "Inter", sans-serif;
  background: #ffffff;
  color: #111;
}

/* =========================
   OVERFLOW PREVENTION
========================= */
/* Prevent horizontal scrolling */
html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

/* Ensure all containers respect viewport width */
* {
  max-width: 100%;
}

/* Allow specific elements to be wider */
html, body, .full-width {
  max-width: none;
}

/* =========================
   ACCENT VARIABLES
========================= */
:root {
  --accent: #7a3cff; /* Signauto purple */
  --soft-gray: #f4f5f7;
  --text-muted: #666;
  --border-radius: 18px;
}

/* =========================
   TOP NAVIGATION (LOCKED)
========================= */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
}

.nav-inner {
  max-width: 100%;
  width: 100%;
  height: 96px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-sub {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 20px;
}

.nav-right a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #111;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  transition: all 0.25s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-right a:hover {
  background: rgba(122, 60, 255, 0.12);
  color: var(--accent);
}

.user-menu {
  position: relative;
}
.user-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  transition: color 0.2s;
}
.user-btn:hover {
  color: #667eea;
}
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 0;
  min-width: 150px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  margin-top: 8px;
}
.user-dropdown a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.user-dropdown a:hover {
  background-color: #f5f5f5;
  color: #667eea;
}

/* =========================
   WELCOME PAGE LAYOUT
========================= */
.welcome-container {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

/* =========================
   WELCOME CARD
========================= */
.welcome-card {
  max-width: 520px;
  background: #ffffff;
  padding: 48px 40px;
  border-radius: var(--border-radius);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(0, 0, 0, 0.04);
  text-align: center;
  z-index: 2;
}

.welcome-card h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 18px;
}

.welcome-card .accent {
  color: var(--accent);
}

.welcome-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* =========================
   ACTION BUTTONS
========================= */
.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-primary,
.btn-secondary {
  display: block;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(45deg, #f95bf6, #532cf9, #03f7eb);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(83, 44, 249, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 36px rgba(83, 44, 249, 0.45);
}

.btn-secondary {
  background: var(--soft-gray);
  color: #111;
}

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

/* =========================
   AI ORB (FUTURISTIC TOUCH)
========================= */
.ai-orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(122, 60, 255, 0.45),
    rgba(122, 60, 255, 0.15),
    transparent 60%
  );
  filter: blur(8px);
  top: 10%;
  right: -80px;
  animation: floatOrb 8s ease-in-out infinite;
  z-index: 1;
}

@keyframes floatOrb {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(30px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* =========================
   MOBILE TUNING
========================= */
@media (max-width: 600px) {
  .welcome-card {
    padding: 32px 24px;
  }

  .welcome-card h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .welcome-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 16px 24px;
    font-size: 16px;
    min-height: 52px;
  }

  .ai-orb {
    width: 160px;
    height: 160px;
    right: -50px;
  }
}

@media (max-width: 375px) {
  .welcome-card {
    padding: 28px 20px;
  }

  .welcome-card h1 {
    font-size: 24px;
  }

  .welcome-subtitle {
    font-size: 14px;
  }
}
/* =========================
   COURSES PAGE
========================= */
.courses-container {
  padding: 40px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.courses-header {
  margin-bottom: 32px;
}

.courses-header h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.courses-header p {
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
}

/* =========================
   COURSE GRID
========================= */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

@media (max-width: 600px) {
  .course-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 375px) {
  .course-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* =========================
   COURSE CARD
========================= */
.course-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: #111;
  overflow: hidden;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(0, 0, 0, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.1),
    0 2px 0 rgba(0, 0, 0, 0.06);
}

/* =========================
   COURSE THUMBNAIL
========================= */
.course-thumb {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
}

/* =========================
   COURSE INFO
========================= */
.course-info {
  padding: 20px 18px 22px;
}

.course-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.course-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================
   MOBILE TWEAKS
========================= */
@media (max-width: 600px) {
  .courses-container {
    padding: 24px 16px 60px;
  }

  .courses-header h1 {
    font-size: 24px;
  }

  .courses-header p {
    font-size: 15px;
    line-height: 1.6;
  }

  .course-thumb {
    height: 180px;
  }

  .course-info h3 {
    font-size: 17px;
  }

  .course-info p {
    font-size: 14px;
  }
}
/* =========================
   PATH PAGE
========================= */
.path-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.path-hero {
  margin-bottom: 48px;
}

.path-hero h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.path-hero p {
  max-width: 620px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================
   PATH SECTIONS
========================= */
.path-section {
  margin-bottom: 56px;
}

.path-section h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

/* =========================
   MODULE CARD
========================= */
.module-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 28px 26px 30px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(0, 0, 0, 0.04);
}

/* =========================
   LESSON LIST
========================= */
.lesson-list {
  list-style: none;
  margin-bottom: 28px;
}

.lesson-list li {
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid #eee;
  line-height: 1.4;
}

.lesson-list li:last-child {
  border-bottom: none;
}

/* =========================
   SMALL BUTTON VARIANT
========================= */
.btn-primary.small {
  display: inline-block;
  padding: 12px 18px;
  font-size: 14px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(122, 60, 255, 0.35);
}

.btn-primary.small:hover {
  box-shadow: 0 14px 30px rgba(122, 60, 255, 0.45);
}

/* =========================
   MOBILE TUNING
========================= */
@media (max-width: 600px) {
  .path-container {
    padding: 28px 16px 60px;
  }

  .path-hero h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  .path-hero p {
    font-size: 15px;
    line-height: 1.6;
  }

  .path-section h2 {
    font-size: 19px;
  }

  .module-card {
    padding: 20px 18px 22px;
  }

  .lesson-list li {
    font-size: 14px;
    padding: 12px 0;
  }

  .btn-primary.small {
    padding: 14px 20px;
    font-size: 15px;
    min-height: 48px;
    display: block;
    text-align: center;
  }
}
/* =========================
   COURSE PAGE
========================= */
.course-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* =========================
   VIDEO SECTION
========================= */
.video-section {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.video-section video {
  width: 100%;
  max-width: 900px; /* ← controls visual size */
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--border-radius);
  background: #000;
  object-fit: contain;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.1),
    0 2px 0 rgba(0, 0, 0, 0.06);
}

/* =========================
   COURSE CONTENT LAYOUT
========================= */
.course-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
}

/* =========================
   LESSON SIDEBAR
========================= */
.lesson-sidebar {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 22px 20px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(0, 0, 0, 0.04);
}

.lesson-sidebar h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

.lesson-sidebar ul {
  list-style: none;
}

.lesson-sidebar li {
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 6px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.lesson-sidebar li:hover {
  background: var(--soft-gray);
}

.lesson-sidebar li.active {
  background: rgba(122, 60, 255, 0.12);
  color: var(--accent);
  font-weight: 600;
}

/* =========================
   LESSON MAIN CONTENT
========================= */
.lesson-main {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 30px 28px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(0, 0, 0, 0.04);
}

.lesson-main h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.lesson-main p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
}

/* =========================
   MOBILE LAYOUT
========================= */
@media (max-width: 800px) {
  .course-content {
    grid-template-columns: 1fr;
  }

  .lesson-sidebar {
    order: 2;
  }

  .lesson-main {
    order: 1;
  }
}
/* =========================
   NAV LOGO
========================= */
.nav-logo {
  height: 80px; /* ← bigger, more presence */
  width: auto;
  display: block;
}

/* Mobile adjustment */
@media (max-width: 600px) {
  .nav-inner {
    height: 76px;
    padding: 0 20px;
  }

  .nav-right a {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* =========================
   COURSE FILTERS
========================= */
.course-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter {
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  background: var(--soft-gray);
  color: #111;
  transition: all 0.25s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.filter:hover {
  transform: translateY(-1px);
}

.filter.active {
  background: linear-gradient(45deg, #f95bf6, #532cf9, #03f7eb);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(83, 44, 249, 0.35);
}

@media (max-width: 600px) {
  .course-filters {
    gap: 8px;
    margin-bottom: 24px;
  }

  .filter {
    padding: 12px 18px;
    font-size: 14px;
    min-height: 44px;
  }
}

@media (max-width: 375px) {
  .filter {
    padding: 10px 16px;
    font-size: 13px;
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* =========================
   FLOATING AI ROBOT ASSISTANT
========================= */
.assistant-robot {
  position: fixed;
  bottom: 24px;
  right: 24px;

  width: 90px;
  height: 90px;

  cursor: pointer;
  z-index: 999;
  animation: floatRobot 6s ease-in-out infinite;
}

/* Robot image */
.assistant-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  border-radius: 50%;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

/* Floating motion */
@keyframes floatRobot {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-14px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* =========================
   SPEECH BUBBLE
========================= */
.assistant-bubble {
  position: absolute;
  bottom: 100%;
  right: auto;
  left: 50%;
  transform: translateX(-95%);
  margin-bottom: 10px;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  color: #333;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  white-space: normal;
  display: none;
  max-width: 160px;
  width: max-content;
}

/* Bubble pop animation */
.assistant-robot:hover .assistant-bubble {
  display: block;
  animation: bubblePop 0.25s ease-out;
}

/* Auto-show bubble on page load (mobile-friendly) */
.assistant-robot.show-bubble .assistant-bubble {
  display: block;
  animation: bubbleIntro 0.5s ease-out, bubbleFadeOut 0.5s ease-out 3.5s forwards;
}

@keyframes bubbleIntro {
  0% {
    transform: translateX(-95%) translateY(6px) scale(0.96);
    opacity: 0;
  }
  100% {
    transform: translateX(-95%) translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes bubbleFadeOut {
  0% {
    opacity: 1;
    transform: translateX(-95%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-95%) translateY(-4px) scale(0.98);
  }
}

@keyframes bubblePop {
  0% {
    transform: translateX(-95%) translateY(6px) scale(0.96);
    opacity: 0;
  }
  100% {
    transform: translateX(-95%) translateY(0) scale(1);
    opacity: 1;
  }
}

/* =========================
   ROBOT INTRO ANIMATION
========================= */
.assistant-robot.intro {
  animation:
    robotIntro 1.8s ease-out forwards,
    floatRobot 6s ease-in-out infinite 2s;
}

@keyframes robotIntro {
  0% {
    transform: translate(-40vw, -30vh) scale(0.6);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

/* =========================
   MOBILE TUNING
========================= */
@media (max-width: 600px) {
  .assistant-robot {
    width: 65px;
    height: 65px;
    bottom: 20px;
    right: 20px;
    animation: floatRobot 6s ease-in-out infinite;
    z-index: 999;
  }

  .assistant-bubble {
    font-size: 11px;
    padding: 8px 10px;
    max-width: 180px;
  }
}

@media (max-width: 375px) {
  .assistant-robot {
    width: 55px;
    height: 55px;
    bottom: 16px;
    right: 16px;
  }

  .assistant-bubble {
    max-width: 150px;
  }
}

/* =========================
   MOBILE NAV (STACKED & CENTERED)
========================= */
@media (max-width: 600px) {
  .top-nav {
    height: auto;
    padding: 10px 0;
  }

  .nav-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: auto;
    padding: 0 16px;
  }

  .nav-left {
    justify-content: center;
    width: 100%;
  }

  .nav-logo {
    height: 60px;
    width: auto;
    display: block;
    transform: none;
    pointer-events: auto;
  }

  .nav-right {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }

  .nav-right a {
    font-size: 14px;
    padding: 10px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .user-dropdown a {
    font-size: 15px;
    padding: 14px 18px;
  }
}

@media (max-width: 375px) {
  .nav-logo {
    height: 50px;
  }

  .nav-inner {
    padding: 0 12px;
  }

  .nav-right a {
    font-size: 13px;
    padding: 8px 14px;
    min-height: 44px;
  }
}
