* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

nav {
    /* background-color: #2c3e50; */
    background-color: #334155;
    padding: 1rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;           /* Flexbox for layout */
    justify-content: space-between; /* Space main and auth links */
    align-items: center;     /* Vertically center items */
}

.main-nav {
    display: flex;           /* Flex for main links */
    gap: 1rem;              /* Consistent spacing between main links */
}

.auth-nav {
    display: flex;           /* Flex for auth links */
    gap: 1rem;              /* Consistent spacing between auth links */
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1, h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* responsive columns */
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-card {
    background: white;
    padding: 0; /* No padding since link wraps everything */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden; /* Keep content within rounded corners */
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block; /* Make entire card clickable */
}

.project-card img {
    width: 100%;           /* Full width of the card */
    height: auto;          /* Maintain aspect ratio */
    max-height: 200px;     /* Cap height */
    object-fit: cover;     /* Crop to fit */
    border-radius: 4px 4px 0 0; /* Rounded top corners */
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Agents use a taller crop so heads aren't cut off */
.project-card .agent-image {
    max-height: 420px;    /* Taller display for agent images (less zoomed) */
    object-fit: cover;
    object-position: 50% 5%; /* show more of the top */
}

.project-info {
    padding: 1rem;
}

/* Agent-specific info panel color to match site */
/* agent info panels: match site color for cards using agent images */
.project-info.agent-info,
.project-card img.agent-image + .project-info {
    padding: 1rem;
    background: linear-gradient(180deg, rgba(51,65,85,0.06), rgba(51,65,85,0.02));
    background-color: #334155; /* main site color */
    color: #ffffff;
}
.project-info.agent-info h3,
.project-card img.agent-image + .project-info h3 {
    color: #ffffff;
}
.project-info.agent-info p,
.project-card img.agent-image + .project-info p {
    color: #dbe9f8;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.project-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.project-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s ease;
}

/* NAV: hover highlight similar to top menu preference */
.main-nav a, .auth-nav a {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background-color 0.18s ease, color 0.18s ease;
}
.main-nav a:hover, .auth-nav a:hover, .login-link:hover {
    background-color: rgba(255,255,255,0.06);
    color: #ffffff;
}

/* AGENTS: subtle zoom and darker info panel on hover */
.project-card:hover img.agent-image {
    transform: scale(1.04);
}
.project-card:hover .project-info.agent-info,
.project-card:hover img.agent-image + .project-info {
    background-color: #24323f; /* slightly darker than normal */
    color: #ffffff;
}
.project-card .project-info {
    transition: background-color 0.22s ease, color 0.22s ease;
}

.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-content img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea, select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 0.75rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #2980b9;
}

.social-links {
    margin-top: 1rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #334155;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 64px;          /* set an explicit height */
    line-height: 64px;     
}

.greeting-content {
    position: relative;
    text-align: center;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.greeting-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%; /* Show more from top */
    z-index: -1;
    opacity: 0.7;
}

.greeting-text {
    position: relative;
    z-index: 1;
}

.greeting h1 {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.greeting p {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto;
}

.login-form, .admin-form {
    max-width: 400px;
    margin: 0 auto;
}

.error {
    color: #e74c3c;
    margin-top: 0.5rem;
}

.success {
    color: #2ecc71;
    margin-bottom: 1rem;
}

.error {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.admin-controls {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.edit-btn, .delete-btn {
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    border-radius: 4px;
}

.edit-btn {
    background-color: #2ecc71;
    color: white;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
}

.edit-btn:hover {
    background-color: #27ae60;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.login-link {
    font-size: 0.8rem; /* Smaller text */
    opacity: 0.7;      /* Slightly faded */
    margin-left: 1rem; /* Spacing */
}

.login-link:hover {
    opacity: 1;        /* Full opacity on hover */
    color: #3498db;    /* Hover color */
}

/* ============================= */
/* MILO FRIENDLY AGENT BACKGROUND */
/* ============================= */

.milo-background {
    position: relative;
    min-height: 100vh;
    background: #334155;
    overflow: hidden;
    padding-bottom: 80px; /* avoid footer overlap */
}

/* Soft glow 1 (top right cyan) */
.milo-background::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56,189,248,0.25), transparent 60%);
    top: -150px;
    right: -150px;
    filter: blur(120px);
    z-index: 0;
}

/* Soft glow 2 (bottom left coral) */
.milo-background::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251,113,133,0.2), transparent 60%);
    bottom: -150px;
    left: -150px;
    filter: blur(140px);
    z-index: 0;
}

/* Make chat container float above glow */
.milo-background .container {
    position: relative;
    z-index: 1;
}

/* Improve readability for Milo page */
.milo-background h1,
.milo-background p {
    color: #ffffff;
}

.milo-background .muted {
    color: #cbd5e1;
}

/* Optional: glass effect for chat box */
.milo-background #chatMessages {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ffffff;
}

.milo-background {
    padding-top: 40px;
}

.chat-msg {
    margin-bottom: 12px;
    line-height: 1.5;
}

.chat-msg.bot {
    background: rgba(255,255,255,0.08);
    padding: 10px;
    border-radius: 8px;
    white-space: pre-line; /* keeps line breaks */
}
/* ===================== */
/* CHAT UI SCROLL FIXES  */
/* ===================== */

.chat-messages{
  height: 60vh;           /* big chat window */
  max-height: 320px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  white-space: pre-line;  /* keeps line breaks */
}

/* Keeps input visible when chat scrolls */
.chat-input-row{
  position: sticky;
  bottom: 0;
  padding-top: 10px;
}

.seats-overlay{
  position: absolute;
  top: 0;
  left: 0;

 /* RESPONSIVE SIZE: Use viewport width (vw) or % */
  width: 50vw;           /* Image takes up 30% of the screen width */
  max-width: 350px;      /* But never gets bigger than 400px */
  min-width: 150px;      /* And never smaller than 150px */
  height: 80vh;          /* Height is 50% of the screen height */
  max-height: 550px;

  background-image: url("/static/images/friendly-agent.png"); /* <- change path */
  background-repeat: no-repeat;
  background-position: top left;
  background-size: contain;


  opacity: 0.5;
  pointer-events: none;
  z-index: 0;

  /* Feather the edges (fade to ~98% transparent at the end) */
  /* Soft fade on right + bottom edges */
  -webkit-mask-image:
    linear-gradient(to left, rgba(0,0,0,0.90) 0%, rgba(0,0,0,1) 99%),
    linear-gradient(to top,  rgba(0,0,0,0.02) 0%, rgba(0,0,0,1) 52%);
  -webkit-mask-composite: source-in; /* Safari */
  mask-image:
    linear-gradient(to left, rgba(0,0,0,0.10) 0%, rgba(0,0,0,1) 99%),
    linear-gradient(to top,  rgba(0,0,0,0.02) 0%, rgba(0,0,0,1) 52%);
  mask-composite: intersect;         /* Chromium/Firefox */
}

.seats-overlay2{
  position: absolute;
  top: 0;
  left: 0;

 /* RESPONSIVE SIZE: Use viewport width (vw) or % */
  width: 50vw;           /* Image takes up 30% of the screen width */
  max-width: 350px;      /* But never gets bigger than 400px */
  min-width: 150px;      /* And never smaller than 150px */
  height: 80vh;          /* Height is 50% of the screen height */
  max-height: 550px;

  background-image: url("/static/images/agent3.png"); /* <- change path */
  background-repeat: no-repeat;
  background-position: top left;
  background-size: contain;


  opacity: 0.5;
  pointer-events: none;
  z-index: 0;

  /* Feather the edges (fade to ~98% transparent at the end) */
  /* Soft fade on right + bottom edges */
  -webkit-mask-image:
    linear-gradient(to left, rgba(0,0,0,0.90) 0%, rgba(0,0,0,1) 99%),
    linear-gradient(to top,  rgba(0,0,0,0.02) 0%, rgba(0,0,0,1) 52%);
  -webkit-mask-composite: source-in; /* Safari */
  mask-image:
    linear-gradient(to left, rgba(0,0,0,0.10) 0%, rgba(0,0,0,1) 99%),
    linear-gradient(to top,  rgba(0,0,0,0.02) 0%, rgba(0,0,0,1) 52%);
  mask-composite: intersect;         /* Chromium/Firefox */
}

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* ensure content stays above overlays */
.milo-background .container{
  position: relative;
  z-index: 1;
}
.agent-nena .agent-overlay{
  background-image: url("/static/images/agent3.png");
}
.milo-background{
  padding-bottom: 64px;  /* match footer height */
}

.about-text h2 {
    margin-bottom: 5px;
}

.about-text h3:first-of-type {
    margin-top: 0;
    margin-bottom: 5px;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.about-text {
    flex: 1;
}

.about-content img {
    object-fit: cover;
}