/* =========================================
   ARUSTENANG - UI/UX DESIGN SYSTEM
   Theme: Organic Dark Mode & Fluid Currents
========================================= */

/* --- 1. CSS Variables (Palet Warna & Ukuran) --- */
:root {
    /* Backgrounds */
    --bg-dark: #000000;
    --bg-card: #0a0f18; /* Sedikit lebih terang dari background utama untuk kontras */
    --bg-input: #111827;

    /* Text Colors */
    --text-light: #f0f4f8;
    --text-muted: #9baac2;
    --text-dark: #0f172a;

    /* Accents & Gradients */
    --organic-cyan: #00e5ff;
    --organic-blue: #3b82f6;
    --gradient-fluid: linear-gradient(90deg, var(--organic-cyan),var(--organic-cyan),  var(--organic-blue));
    
    /* Shadows & Glows */
    --glow-cyan: rgba(0, 229, 255, 0.25);
    --glow-cyan-strong: rgba(0, 229, 255, 0.5);
    
    /* Border Radius */
    --radius-pill: 50px;
    --radius-card: 20px;
    --radius-bubble: 25px 25px 25px 5px; /* Speech bubble shape */
    --radius-bubble-right: 25px 25px 5px 25px; /* Balasan pencerita */
}

/* --- 2. Base Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    /* Ubah di baris ini: */
    font-family: 'Quicksand', sans-serif;
    
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden; /* Mencegah horizontal scroll */
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- 3. Animations --- */
@keyframes breathe {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
}

.breathing-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, rgba(59, 130, 246, 0.05) 40%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: breathe 8s ease-in-out infinite;
}

/* --- 4. Layout & Navigation --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo-container img {
    height: 65px;
    left:0;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--organic-cyan);
}

/* --- 5. Hero Section --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 75vh;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero h1 span {
    background: var(--gradient-fluid);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 45px;
}

/* --- 6. Buttons & UI Elements --- */
.btn-fluid-bubble {
    display: inline-block;
    padding: 18px 50px;
    background: var(--gradient-fluid);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--radius-bubble);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 10px var(--glow-cyan);
    
    position: relative; /* Wajib ada */
    z-index: 1; /* TAMBAHKAN INI: Agar tubuh gelembung berada di atas/depan ekornya */
}
.btn-fluid-bubble:hover {
    box-shadow: 0 8px 30px var(--glow-cyan-strong);
    transform: translateY(-5px);
}

/* Ekor Balon Percakapan (Speech Bubble Tail) */
.btn-fluid-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px; 
    left: 0px; 
    width: 0;
    height: 0;
    
    border-left: 0px solid transparent; 
    border-right: 25px solid transparent; 
    border-top: 25px solid var(--organic-cyan); 
    
    transition: all 0.4s ease;
    z-index: -1; /* Karena induknya punya z-index: 1, ini akan bersembunyi tepat di belakang tombol */
}

/* Penyesuaian saat tombol disorot (hover) */
.btn-fluid-bubble:hover::after {
    border-top-width: 30px; 
    bottom: -25px;
    z-index: -1; /* Karena induknya punya z-index: 1, ini akan bersembunyi tepat di belakang tombol */
}


/* --- 7. Forms & Inputs (Persiapan untuk halaman Login/Daftar) --- */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.input-fluid {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--bg-input);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    border-radius: var(--radius-card);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-fluid:focus {
    outline: none;
    border-color: var(--organic-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
    background-color: rgba(0, 229, 255, 0.05);
}

/* --- 8. Chat Elements (Persiapan Ruang Curhat) --- */
.chat-container {
    background-color: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.chat-bubble {
    padding: 15px 20px;
    margin-bottom: 15px;
    max-width: 70%;
    line-height: 1.5;
}

.chat-listener {
    background: var(--gradient-fluid);
    color: #fff;
    border-radius: var(--radius-bubble);
    align-self: flex-start;
}

.chat-user {
    background-color: var(--bg-input);
    color: var(--text-light);
    border-radius: var(--radius-bubble-right);
    align-self: flex-end;
    margin-left: auto;
}