:root {
  --primary-color: #00ff88; /* Neon Green */
  --secondary-color: #f0f0f0; /* White/Light Gray. */
  --dark-bg: #0a0a0a; /* Almost Black */
  --tech-panel: rgba(255, 255, 255, 0.05);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

body {
  background-color: var(--dark-bg);
  color: var(--secondary-color);
  font-family: "Outfit", sans-serif;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: #fff;
}

.text-muted {
  color: rgba(255, 255, 255, 0.5) !important; /* Matches user preference (gray/dimmed) */
}

.text-neon {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Buttons */
.btn-neon {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn-neon:hover {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

/* Navbar */
.navbar {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: var(--glass-border);
}

.nav-link {
  color: #fff !important;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 100px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
  overflow: hidden;
}

#tsparticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Behind content but above background */
}

.hero-content {
  z-index: 2; /* Ensure content is above particles */
}

.hero-robot {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  z-index: 1;
  opacity: 0.8;
}

.hero-robot img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.2));
}

/* Cards */
.tech-card {
  background: var(--tech-panel);
  border: var(--glass-border);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  transition: transform 0.3s;
}

.tech-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
}

/* Footer */
footer {
  background: #000;
  border-top: var(--glass-border);
  padding: 50px 0;
  margin-top: 50px;
}

/* Chat Widget - WhatsApp Style */
.chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 600px;
    max-height: 80vh;
    background: #efe7dd; /* WhatsApp BG */
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-blend-mode: overlay;
}

.chat-container:not(.d-none) {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: #008069;
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.chat-avatar-container {
    position: relative;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    cursor: pointer;
}

.chat-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #25D366;
    border-radius: 50%;
    border: 1px solid white;
}

.chat-info h5 {
    font-size: 16px;
    margin: 0;
    color: white;
    font-weight: 600;
}

.chat-info span {
    font-size: 12px;
    opacity: 0.9;
    display: block;
}

/* Close Button */
.btn-close-chat {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    margin-left: auto;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 14.2px;
    line-height: 19px;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    word-wrap: break-word;
}

.bot-message {
    background: white;
    color: #111;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.bot-message::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: white;
    border-right-color: white; /* Corner fix */
    margin-top: -0px; 
}

.user-message {
    background: #dcf8c6;
    color: #111;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.msg-time {
    display: block;
    font-size: 10px;
    color: #999;
    text-align: right;
    margin-top: 4px;
    margin-bottom: -2px;
}

.chat-footer {
    padding: 10px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
}

.chat-footer input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    outline: none;
    font-size: 15px;
    background: white;
}

.chat-footer button {
    background: #008069;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.chat-footer button:hover {
    transform: scale(1.1);
}

/* Chat Widget - WhatsApp Style */
.chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 360px;
    height: 600px;
    max-height: 80vh;
    background: #e5ddd5; /* WhatsApp BG Color */
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
}

.chat-container:not(.d-none) {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: #008069; /* WhatsApp Green */
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.chat-info h5 {
    font-size: 16px;
    margin: 0;
    color: white;
    font-weight: 600;
}

.chat-info span {
    font-size: 12px;
    opacity: 0.9;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); /* Pattern optional */
    background-blend-mode: soft-light;
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 15px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.bot-message {
    background: white;
    color: #111;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.user-message {
    background: #dcf8c6;
    color: #111;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.chat-footer {
    padding: 10px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-footer input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    border-radius: 20px;
    outline: none;
    font-size: 15px;
}

.chat-footer button {
    background: #008069;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chat-footer button:hover {
    transform: scale(1.1);
}

.floating-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 15px;
    height: 15px;
    background-color: #25D366; /* WhatsApp Green */
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
