@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #0b0d17;
  --surface-color: rgba(255, 255, 255, 0.05);
  --primary: #00f0ff;
  --secondary: #7000ff;
  --text-main: #ffffff;
  --text-muted: #a0a5b2;
  --glass-border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
body { background: transparent; color: var(--text-main); overflow-x: hidden; line-height: 1.6; }

/* VIDEO BACKGROUND */
#bg-video {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; object-fit: cover; z-index: -2;
}
#bg-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
  background: rgba(11, 13, 23, 0.5); /* Semi-transparent so the video is visible but doesn't distract */
}

/* NAVBAR */
header {
  position: fixed; width: 100%; top: 0; z-index: 1000;
  background: rgba(11, 13, 23, 0.8); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border); padding: 1.5rem 5%;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.8rem; font-weight: 800; color: var(--text-main); text-decoration: none; letter-spacing: 2px; }
.logo span { color: var(--primary); }
nav ul { display: flex; list-style: none; gap: 2rem; }
nav ul li a { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: color 0.3s; }
nav ul li a:hover, nav ul li a.active { color: var(--primary); }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 5%; background: radial-gradient(circle at top right, rgba(27, 22, 51, 0.5), rgba(11, 13, 23, 0.2));
  position: relative;
}
.hero::before {
  content: ''; position: absolute; top: -20%; left: -10%; width: 50vw; height: 50vw;
  background: var(--secondary); filter: blur(150px); opacity: 0.3; z-index: -1; border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -10%; right: -10%; width: 40vw; height: 40vw;
  background: var(--primary); filter: blur(150px); opacity: 0.2; z-index: -1; border-radius: 50%;
}
.hero h1 { font-size: 4rem; margin-bottom: 1rem; line-height: 1.2; }
.hero h1 span { background: linear-gradient(90deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; }
.btn {
  display: inline-block; padding: 1rem 2.5rem; border-radius: 30px; text-decoration: none; font-weight: 600;
  background: linear-gradient(90deg, var(--primary), var(--secondary)); color: #fff; border: none; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(112, 0, 255, 0.4); }

/* SECTIONS & GRIDS */
.section { padding: 6rem 5%; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--primary); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card {
  background: var(--surface-color); border: 1px solid var(--glass-border); border-radius: 20px;
  padding: 2.5rem; backdrop-filter: blur(10px); transition: transform 0.3s, border-color 0.3s; cursor: pointer;
  text-decoration: none; color: inherit; display: block;
}
.card:hover { transform: translateY(-10px); border-color: var(--primary); }
.card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary); }
.card p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* CHATBOT */
#chatbot-container {
  position: fixed; bottom: 20px; right: 20px; z-index: 10000;
}
#chat-btn {
  width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none; color: #fff; font-size: 1.5rem; cursor: pointer; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); transition: transform 0.3s;
}
#chat-btn:hover { transform: scale(1.1); }
#chat-window {
  display: none; width: 320px; height: 450px; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border); border-radius: 15px; flex-direction: column; overflow: hidden;
  position: absolute; bottom: 80px; right: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
#chat-window.active { display: flex; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
#chat-header { background: rgba(255, 255, 255, 0.05); padding: 15px; border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; }
#chat-header h3 { font-size: 1rem; color: var(--primary); margin: 0; }
#chat-close { background: none; border: none; color: #fff; cursor: pointer; font-size: 1.2rem; }
#chat-body { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 15px; border-radius: 15px; max-width: 85%; font-size: 0.9rem; }
.msg.bot { background: rgba(255, 255, 255, 0.1); align-self: flex-start; border-bottom-left-radius: 2px; }
.msg.user { background: var(--primary); color: #000; align-self: flex-end; border-bottom-right-radius: 2px; font-weight: 600; }
#chat-input-area { display: flex; padding: 10px; background: rgba(0, 0, 0, 0.2); border-top: 1px solid var(--glass-border); }
#chat-input { flex: 1; background: none; border: none; color: #fff; padding: 8px; outline: none; }
#chat-send { background: var(--primary); color: #000; border: none; padding: 8px 15px; border-radius: 20px; cursor: pointer; font-weight: bold; }

/* PAGE HEADER */
.page-header {
  padding: 10rem 5% 4rem; text-align: center; background: linear-gradient(to bottom, rgba(11, 13, 23, 0.6), rgba(27, 22, 51, 0.2));
  border-bottom: 1px solid var(--glass-border);
}
.page-header h1 { font-size: 3rem; margin-bottom: 1rem; color: var(--primary); }
.page-content { max-width: 800px; margin: 0 auto; padding: 3rem 5%; }

/* FORMS */
form { display: flex; flex-direction: column; gap: 1.5rem; max-width: 600px; margin: 0 auto; }
input, textarea {
  width: 100%; padding: 1rem; border-radius: 10px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border); color: #fff; outline: none; transition: border-color 0.3s;
}
input:focus, textarea:focus { border-color: var(--primary); }

/* CONTENT BLOCKS */
.content-block { background: var(--surface-color); padding: 2.5rem; border-radius: 20px; border: 1px solid var(--glass-border); margin-bottom: 2rem;}
.content-block h2 { color: var(--secondary); margin-bottom: 1rem; }
.content-block ul { list-style: none; margin-left: 1rem; }
.content-block ul li { margin-bottom: 0.5rem; position: relative; padding-left: 1.5rem; }
.content-block ul li::before { content: '✓'; color: var(--primary); position: absolute; left: 0; }

/* FOOTER */
footer { padding: 3rem 5%; text-align: center; border-top: 1px solid var(--glass-border); margin-top: 4rem; background: #07090f; }
footer p { color: var(--text-muted); }

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  header { flex-direction: column; padding: 1rem 5%; gap: 1rem; }
  nav ul { flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
  .logo { font-size: 1.5rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1rem; margin-bottom: 1.5rem; }
  .section { padding: 4rem 5%; }
  .section-title { font-size: 2rem; margin-bottom: 2rem; }
  .page-header { padding: 8rem 5% 3rem; }
  .page-header h1 { font-size: 2.2rem; }
  .content-block { padding: 1.5rem; }
  .btn { padding: 0.8rem 2rem; }
  #chat-window { width: calc(100vw - 40px); max-width: 320px; right: 0; bottom: 80px; }
}
