/* --- Global Variables & Reset --- */
:root {
    --bg-color: #0f0c29;
    --bg-gradient: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    --primary-color: #00d2ff;
    --secondary-color: #928DAB;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --ai-msg-bg: rgba(0, 210, 255, 0.1);
    --user-msg-bg: rgba(146, 141, 171, 0.2);
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-gradient);
    color: var(--text-color);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Typography & Animations --- */
h1, h2, h3 {
    font-family: var(--font-head);
    letter-spacing: 1px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color), 0 0 10px #fff; }
    100% { box-shadow: 0 0 5px var(--primary-color); }
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-btn a {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
}

.cta-btn a:hover {
    background: var(--primary-color);
    color: #000;
}

/* --- Hero Section --- */
.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.tech-circle {
    width: 150px;
    height: 150px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    margin: 2rem auto;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
    animation: glow 3s infinite;
}

.tech-circle::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: url('https://source.unsplash.com/random/200x200/?technology') no-repeat center/cover;
    border-radius: 50%;
    opacity: 0.7;
}

.glow-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 2rem;
    transition: transform 0.2s;
}

.glow-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-color);
}

/* --- Chat Interface (The Core) --- */
.chat-container {
    max-width: 900px;
    margin: 2rem auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    height: 700px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
}

.dot.online {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.chat-window {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Scrollbar Styling */
.chat-window::-webkit-scrollbar {
    width: 8px;
}
.chat-window::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

.message {
    display: flex;
    gap: 15px;
    max-width: 80%;
    animation: float 0.5s ease-out;
}

.ai-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
}

.user-message .avatar {
    background: var(--secondary-color);
}

.text-content {
    background: var(--ai-msg-bg);
    padding: 1rem;
    border-radius: 10px;
    border-top-left-radius: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.user-message .text-content {
    background: var(--user-msg-bg);
    border-radius: 10px;
    border-top-right-radius: 0;
}

/* Input Area */
.input-area {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

.input-area input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    color: #fff;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.input-area input:focus {
    border-color: var(--primary-color);
}

.send-btn, .attach-btn {
    background: var(--primary-color);
    border: none;
    width: 50px;
    border-radius: 5px;
    cursor: pointer;
    color: #000;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.attach-btn {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--glass-border);
}

.send-btn:hover {
    background: #fff;
}

/* --- Features Section --- */
.info-section {
    padding: 4rem 5%;
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Footer --- */
footer {
    background: #050414;
    padding: 3rem 5%;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-col a {
    display: block;
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0.5rem 0;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    color: #555;
    font-size: 0.8rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .chat-container { height: 600px; width: 95%; }
    .nav-links { display: none; } /* Simplified for demo */
}
