:root { --primary: #075e54; --accent: #128c7e; --bg: #e5ddd5; }
body { margin:0; font-family: sans-serif; background: #f0f2f5; }

.app-container { max-width: 450px; margin: 0 auto; height: 100vh; background: #fff; position: relative; display: flex; flex-direction: column; }

/* Header */
.top-header, .chat-header { background: var(--primary); color: white; padding: 15px; display: flex; align-items: center; justify-content: space-between; }
.nav-avatar { width: 35px; height: 35px; border-radius: 50%; margin-right: 10px; object-fit: cover; }

/* User List */
.user-card { display: flex; align-items: center; padding: 12px; border-bottom: 1px solid #eee; }
.user-card img { width: 50px; height: 50px; border-radius: 50%; margin-right: 15px; }

/* Chat Bubbles */
.chat-box { flex: 1; overflow-y: auto; padding: 15px; background: var(--bg); display: flex; flex-direction: column; }
.msg { padding: 8px 12px; border-radius: 10px; margin-bottom: 8px; max-width: 80%; font-size: 14px; }
.outgoing { align-self: flex-end; background: #dcf8c6; border-bottom-right-radius: 0; }
.incoming { align-self: flex-start; background: #fff; border-bottom-left-radius: 0; }

/* Input Area */
.typing-area { display: flex; padding: 10px; background: #f0f0f0; align-items: center; }
.typing-area input[type="text"] { flex: 1; padding: 10px; border-radius: 20px; border: none; outline: none; margin: 0 10px; }
.attach-btn { font-size: 24px; color: #555; cursor: pointer; }/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
}

/* BODY - Dark Blue Theme */
body {
    background: #0f172a; /* Dark Blue Background */
    color: #f8fafc; /* Light Text */
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
    background: #1e293b; /* Slightly lighter blue for nav */
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: #f8fafc;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #38bdf8; /* Sky blue hover */
}

/* HERO SECTION - With Animation */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px;
    animation: fadeIn 1.2s ease-in; /* Section fade animation */
}

/* LEFT - Slide Animation */
.left {
    width: 50%;
    animation: slideLeft 1s ease-out;
}

/* RIGHT IMAGE - Slide & Hover Animation */
.right {
    width: 50%;
    text-align: center;
    animation: slideRight 1s ease-out;
}

.right img {
    width: 250px;
    border-radius: 50%;
    border: 4px solid #38bdf8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: 0.4s;
}

.right img:hover {
    transform: scale(1.05); /* Zoom effect on hover */
}

/* CONTACT TEXT */
.contact {
    margin-top: 15px;
}

/* ICONS */
.icons a {
    margin: 8px;
    font-size: 22px;
    color: #f8fafc;
    transition: 0.3s;
    display: inline-block;
}

.icons a:hover {
    color: #38bdf8;
    transform: translateY(-5px); /* Bounce effect */
}

/* SECTIONS */
section {
    padding: 60px;
}

/* HEADINGS */
h2 {
    margin-bottom: 15px;
    color: #38bdf8; /* Bright blue for headings */
}

/* CARDS - Dark Theme with Hover Animation */
.card {
    background: #1e293b;
    padding: 20px;
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid #334155;
    transition: 0.4s ease;
}

.card:hover {
    transform: translateY(-8px); /* Card lift animation */
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-color: #38bdf8;
}

.card h3 {
    color: #f8fafc;
}

/* FORM */
input, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #334155;
    border-radius: 6px;
    background: #0f172a;
    color: white;
}

/* BUTTON */
button {
    padding: 10px 20px;
    background: #0284c7;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #38bdf8;
}

/* KEYFRAMES - Animations definition */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .left, .right {
        width: 100%;
    }

    section {
        padding: 25px;
    }
}