* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #040610;
    --card-bg: rgba(10, 16, 36, 0.6);
    --neon-blue: #00f0ff;
    --neon-purple: #9d4edd;
    --text-main: #ffffff;
    --text-muted: #8f9bb7;
    --border-color: rgba(0, 240, 255, 0.15);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* Style Halaman Login Terpisah */
.login-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, #040610 80%);
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: rgba(10, 16, 36, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
    text-align: center;
}

.login-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.login-card h2 span {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.login-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.input-group {
    text-align: left;
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    background: rgba(5, 8, 22, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.login-error-msg {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    padding: 10px;
    display: none;
}

/* Background Ambient Glow */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(4, 6, 16, 0) 70%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--neon-blue);
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), #0072ff);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transition: 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

/* Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px 60px 20px;
    display: flex;
    justify-content: center;
    min-height: 90vh;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.badge {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--neon-blue);
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Chat Box Style */
.chat-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.05);
    backdrop-filter: blur(10px);
    overflow: hidden;
    margin-top: 20px;
    text-align: left;
}

.chat-box {
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-box::-webkit-scrollbar { width: 6px; }
.chat-box::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }

.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}

.ai-message {
    background: rgba(255, 255, 255, 0.03);
    color: #e2e8f0;
    align-self: flex-start;
    border-left: 3px solid var(--neon-blue);
}

.user-message {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 114, 255, 0.15));
    color: var(--text-main);
    align-self: flex-end;
    border-right: 3px solid var(--neon-purple);
    text-align: right;
}

.loading-message {
    color: var(--neon-blue);
    font-style: italic;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.input-container {
    display: flex;
    padding: 15px;
    background: rgba(5, 8, 22, 0.8);
    border-top: 1px solid var(--border-color);
}

.input-container input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 1rem;
    padding: 5px 10px;
}

.input-container button {
    background: var(--neon-blue);
    color: #000;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.input-container button:hover {
    box-shadow: 0 0 15px var(--neon-blue);
    transform: scale(1.05);
}

/* Features */
.features-section { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2rem; margin-bottom: 10px; }
.section-header p { color: var(--text-muted); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 35px 25px;
    transition: 0.3s;
}

.card:hover { transform: translateY(-5px); border-color: var(--neon-blue); }
.card-icon { font-size: 1.8rem; margin-bottom: 15px; }
.card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.2rem; }
    .message { max-width: 90%; }
}
