/* AIM Personal AI Assistance © 2025
   Developed by Eshwar Potnuru for AIM Co.
   All rights reserved.
*/

:root {
    --primary: #0b1320;
    --secondary: #131d2f;
    --accent: #59d2ff;
    --accent-light: #2b6ea2;
    --text-dark: #122133;
    --text-light: #e8f2ff;
    --glass-light: rgba(16, 26, 42, 0.74);
    --glass-dark: rgba(6, 13, 23, 0.82);
    --success: #63f5c0;
    --warning: #7db8ff;
    --error: #ff7d9f;
    --hover-green: #63f5c0;
    --tile-bg: #111b2b;
    --tile-bg-light: #1a2a42;
    --tile-border: rgba(89, 210, 255, 0.46);
    --tile-shadow: rgba(10, 23, 41, 0.56);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(circle at 14% 10%, rgba(49, 109, 169, 0.22) 0%, rgba(49, 109, 169, 0) 34%),
        radial-gradient(circle at 86% 0%, rgba(76, 156, 193, 0.22) 0%, rgba(76, 156, 193, 0) 36%),
        linear-gradient(145deg, #070d17, #101a29 45%, #0a1320 100%);
    color: var(--text-light);
    font-family: 'IBM Plex Sans', sans-serif;
    padding: 2rem;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    background: var(--glass-light);
    border: 1px solid var(--tile-border);
    box-shadow: 0 24px 64px var(--tile-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 3rem;
    background: linear-gradient(110deg, rgba(19, 31, 52, 0.95) 0%, rgba(13, 24, 39, 0.92) 52%, rgba(23, 42, 66, 0.9) 100%);
    border-bottom: 1px solid var(--glass-dark);
}

.hero-content h1 {
    font-family: 'Sora', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #c8ecff, #59d2ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
}

.hero-content h2 {
    font-size: 1.15rem;
    font-weight: 500;
    color: rgba(229, 241, 255, 0.9);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(227, 238, 255, 0.75);
    max-width: 600px;
}

.profile-img {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(89, 210, 255, 0.8);
    box-shadow: 0 0 0 8px rgba(89, 210, 255, 0.1), 0 0 24px rgba(89, 210, 255, 0.45);
    transition: all 0.3s ease;
}

.profile-img:hover {
    box-shadow: 0 0 0 8px rgba(89, 210, 255, 0.18), 0 0 28px rgba(89, 210, 255, 0.58);
}

.main-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 3rem;
}

.portfolio-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.portfolio-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
}

.portfolio-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-card {
    background: linear-gradient(145deg, rgba(25, 39, 61, 0.92) 0%, rgba(15, 25, 39, 0.96) 100%);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--tile-border);
    box-shadow: 0 16px 38px var(--tile-shadow);
}

.profile-card h2,
.company-card h2 {
    font-family: 'Sora', sans-serif;
    color: #b9e7ff;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 0.9rem;
}

.profile-card p {
    font-size: 0.92rem;
    color: rgba(228, 241, 255, 0.86);
    margin-bottom: 0.7rem;
    line-height: 1.5;
}

.social-links a {
    background: rgba(38, 56, 85, 0.88);
    color: #E2E2E2;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--hover-green);
    color: #232323 !important;
}

.info-card {
    background: linear-gradient(150deg, rgba(27, 43, 67, 0.9) 0%, rgba(16, 25, 40, 0.96) 100%);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--tile-border);
    box-shadow: 0 16px 38px var(--tile-shadow);
    width: 100%;
}

.info-card h2 {
    font-size: 1.2rem;
    color: #b9e7ff;
    margin-bottom: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 8px #232f3e;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.info-item {
    background: rgba(45, 66, 96, 0.62);
    color: #E2E2E2;
    border: 1px solid rgba(104, 176, 230, 0.34);
    border-radius: 0.8rem;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 6px 14px rgba(9, 19, 32, 0.36);
    transition: background 0.3s, color 0.3s;
}

.info-item:hover {
    background: var(--hover-green);
    color: #232323 !important;
    border-color: var(--hover-green) !important;
}

.info-item i {
    font-size: 1.1rem;
    color: var(--accent);
    min-width: 24px;
}

.info-item span, .info-item a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.links-card {
    margin-top: 0.2rem;
}

.profile-summary {
    border: 1px solid rgba(105, 182, 242, 0.34);
    border-radius: 0.85rem;
    padding: 0.75rem 0.9rem;
    background: rgba(8, 17, 29, 0.32);
    margin-bottom: 0.85rem;
}

.profile-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.profile-meta span {
    font-size: 0.82rem;
    color: rgba(220, 236, 255, 0.84);
    background: rgba(40, 61, 91, 0.56);
    border: 1px solid rgba(105, 182, 242, 0.2);
    border-radius: 0.6rem;
    padding: 0.4rem 0.55rem;
}

.profile-links a {
    color: #8fdcff;
    text-decoration: none;
    font-size: 0.88rem;
}

.profile-links a:hover {
    color: #d0f0ff;
    text-decoration: underline;
}

.collapsible {
    margin-top: 0.7rem;
    border: 1px solid rgba(105, 182, 242, 0.3);
    border-radius: 0.7rem;
    padding: 0.62rem 0.75rem;
    cursor: pointer;
    color: #c9eaff;
    font-weight: 600;
    background: rgba(42, 64, 96, 0.5);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.collapsible:hover,
.collapsible.active {
    border-color: rgba(132, 214, 255, 0.78);
    background: rgba(59, 92, 137, 0.52);
}

.collapsible-content {
    margin-top: 0.45rem;
    padding: 0.2rem 0.2rem 0.2rem 0.25rem;
}

.collapsible-content .edu-item,
.collapsible-content .exp-item,
.collapsible-content li {
    color: rgba(225, 238, 255, 0.86);
    font-size: 0.86rem;
    line-height: 1.45;
}

.collapsible-content ul {
    margin-left: 1rem;
    margin-top: 0.35rem;
}

.chat-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-area {
    background: linear-gradient(150deg, rgba(13, 23, 38, 0.88) 0%, rgba(24, 38, 58, 0.94) 100%);
    backdrop-filter: blur(14px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(103, 183, 232, 0.36);
    box-shadow: 0 14px 28px rgba(8, 17, 29, 0.44);
    display: flex;
    flex-direction: column;
    min-height: 70vh;
    height: 70vh;
    overflow-y: auto;
    /* Fix scrollbar positioning */
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255, 255, 255, 0.05);
}

/* Enhanced scrollbar styling for better alignment */
.chat-area::-webkit-scrollbar {
    width: 6px;
}

.chat-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 8px 0; /* Add margin to keep scrollbar within container borders */
}

.chat-area::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1); /* Subtle border for better definition */
}

.chat-area::-webkit-scrollbar-thumb:hover {
    background: #00cc82; /* Slightly darker accent on hover */
}

.chat-area::-webkit-scrollbar-corner {
    background: transparent;
}

.message {
    max-width: 84%;
    padding: 1rem 1.5rem;
    border-radius: 1.2rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.4s ease-out;
    position: relative;
    line-height: 1.6;
}

.ai-message {
    align-self: flex-start;
    background: linear-gradient(140deg, rgba(42, 65, 99, 0.95), rgba(27, 46, 72, 0.95));
    border: 1px solid rgba(110, 186, 240, 0.44);
    color: #E2E2E2;
    box-shadow: 0 8px 18px rgba(8, 15, 26, 0.36);
    border-top-left-radius: 0;
}
.ai-message::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: #2e3e4e;
    border-left: 0;
    margin-top: 0;
}
.user-message {
    align-self: flex-end;
    background: linear-gradient(140deg, rgba(18, 33, 53, 0.95), rgba(14, 28, 45, 0.95));
    border: 1px solid #64cfff;
    color: #E2E2E2;
    box-shadow: 0 8px 18px rgba(6, 14, 25, 0.4);
    border-top-right-radius: 0;
    font-weight: 500;
}
.user-message::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-left-color: #E2E2E2;
    border-right: 0;
    margin-top: 0;
}

.message.rich-response {
    padding: 0.9rem 1.15rem 1rem;
}

.ai-message.rich-response::before {
    border-right-color: rgba(35, 55, 84, 0.96);
}

.message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.55rem;
}

.assistant-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(141, 206, 248, 0.45);
    background: rgba(16, 32, 51, 0.7);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #d7f1ff;
    text-transform: uppercase;
}

.message-time {
    font-size: 0.72rem;
    color: rgba(194, 227, 249, 0.72);
    font-variant-numeric: tabular-nums;
}

.ai-rich-response {
    display: grid;
    gap: 0.58rem;
}

.ai-rich-response h4 {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ddfff;
    margin: 0.1rem 0 0.15rem;
}

.ai-rich-response p {
    margin: 0;
    color: #e4edf6;
    line-height: 1.62;
}

.ai-rich-response ul,
.ai-rich-response ol {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.42rem;
}

.ai-rich-response li {
    color: #dce9f6;
    line-height: 1.58;
}

.ai-rich-response code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    padding: 0.15rem 0.3rem;
    border-radius: 0.3rem;
    background: rgba(11, 22, 36, 0.75);
    border: 1px solid rgba(117, 186, 239, 0.35);
    color: #c5ecff;
}

.ai-rich-response a {
    color: #8fdcff;
    text-decoration: none;
    border-bottom: 1px solid rgba(143, 220, 255, 0.45);
}

.ai-rich-response a:hover {
    color: #b6ebff;
    border-bottom-color: rgba(182, 235, 255, 0.7);
}

.ai-keyline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: baseline;
    padding: 0.42rem 0.55rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(114, 189, 247, 0.32);
    background: rgba(15, 30, 47, 0.64);
}

.message-content a {
    color: #a9e7ff;
    text-decoration: none;
    border: 1px solid rgba(129, 199, 237, 0.36);
    background: rgba(16, 31, 48, 0.72);
    border-radius: 0.55rem;
    padding: 0.12rem 0.42rem;
    display: inline-block;
    line-height: 1.45;
    word-break: break-all;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.message-content a:hover {
    color: #d4f3ff;
    border-color: rgba(174, 231, 255, 0.7);
    background: rgba(29, 52, 77, 0.8);
}

.official-links-panel {
    display: grid;
    gap: 0.58rem;
    background: linear-gradient(145deg, rgba(18, 33, 52, 0.82), rgba(13, 25, 40, 0.82));
    border: 1px solid rgba(112, 185, 232, 0.34);
    border-radius: 0.82rem;
    padding: 0.72rem 0.78rem;
}

.official-links-panel h4 {
    font-size: 0.79rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #bce9ff;
    margin: 0 0 0.12rem;
}

.official-link-item {
    display: grid;
    gap: 0.22rem;
    padding: 0.48rem 0.52rem;
    border-radius: 0.62rem;
    border: 1px solid rgba(101, 176, 223, 0.28);
    background: rgba(14, 28, 45, 0.58);
}

.official-link-label {
    font-size: 0.78rem;
    color: rgba(192, 227, 249, 0.9);
    font-weight: 600;
}

.official-link-url {
    font-size: 0.86rem;
}

.single-link-panel {
    max-width: 100%;
}

.ai-key {
    font-size: 0.82rem;
    font-weight: 700;
    color: #b7e6ff;
}

.ai-value {
    font-size: 0.9rem;
    color: #e4eff8;
}

.message-actions {
    margin-top: 0.7rem;
    display: flex;
    gap: 0.48rem;
}

.message-action-btn {
    border: 1px solid rgba(134, 205, 247, 0.42);
    background: rgba(19, 37, 58, 0.82);
    color: #d6edff;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.message-action-btn:hover {
    border-color: rgba(179, 230, 255, 0.76);
    background: rgba(33, 58, 86, 0.86);
    color: #ffffff;
}

.message-content {
    width: 100%;
}

.message-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.features-list {
    list-style: none;
    margin-top: 1rem;
}
.features-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}
.features-list li i {
    color: var(--accent);
    width: 20px;
    text-align: center;
}

.input-area {
    background: linear-gradient(150deg, rgba(14, 24, 40, 0.9) 0%, rgba(24, 40, 62, 0.92) 100%);
    border-radius: 1.5rem;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(103, 183, 232, 0.36);
    box-shadow: 0 14px 28px rgba(8, 17, 29, 0.44);
    display: flex;
    gap: 0.8rem;
    position: relative;
}

.prompt-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.35rem;
}

.prompt-chip {
    border: 1px solid rgba(127, 192, 235, 0.4);
    background: rgba(20, 36, 56, 0.82);
    color: #cdeaff;
    border-radius: 999px;
    padding: 0.44rem 0.85rem;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.prompt-chip:hover {
    background: #78d5ff;
    color: #10233a;
    border-color: #b4e8ff;
    transform: translateY(-1px);
}

.showcase-section {
    width: 100%;
    background: linear-gradient(148deg, rgba(17, 30, 47, 0.92) 0%, rgba(27, 45, 69, 0.92) 100%);
    border: 1px solid rgba(106, 177, 223, 0.35);
    border-radius: 1.3rem;
    padding: 1.3rem;
    box-shadow: 0 12px 28px rgba(7, 18, 30, 0.38);
}

.showcase-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.18rem;
    color: #d2eeff;
    margin-bottom: 0.3rem;
}

.showcase-header p {
    color: rgba(212, 233, 250, 0.78);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.impact-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.metric-card {
    background: rgba(14, 26, 42, 0.82);
    border: 1px solid rgba(110, 185, 234, 0.28);
    border-radius: 0.8rem;
    padding: 0.72rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(157, 223, 255, 0.72);
}

.metric-card strong {
    color: #8fdbff;
    font-size: 1.12rem;
    font-variant-numeric: tabular-nums;
}

.metric-card span {
    color: rgba(217, 236, 255, 0.82);
    font-size: 0.8rem;
}

.showcase-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.showcase-tab {
    border: 1px solid rgba(117, 187, 231, 0.33);
    background: rgba(16, 29, 47, 0.85);
    color: #cdeaff;
    border-radius: 0.65rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.showcase-tab.active,
.showcase-tab:hover {
    background: #75d5ff;
    color: #10233a;
    border-color: #b4e8ff;
}

.showcase-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.showcase-card {
    background: linear-gradient(150deg, rgba(13, 24, 38, 0.92), rgba(20, 34, 53, 0.92));
    border: 1px solid rgba(108, 177, 220, 0.27);
    border-radius: 0.9rem;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.showcase-card:hover {
    transform: translateY(-3px);
    border-color: rgba(157, 223, 255, 0.56);
}

.showcase-tag {
    display: inline-flex;
    width: fit-content;
    border: 1px solid rgba(120, 197, 237, 0.45);
    border-radius: 999px;
    padding: 0.18rem 0.52rem;
    font-size: 0.72rem;
    color: #bde7ff;
    background: rgba(33, 55, 82, 0.7);
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.45px;
}

.showcase-card h4 {
    color: #d8f1ff;
    font-size: 0.96rem;
    margin-bottom: 0.26rem;
}

.showcase-subline {
    color: rgba(186, 221, 248, 0.82);
    font-size: 0.78rem;
    margin-bottom: 0.52rem;
}

.showcase-bullets {
    margin-left: 1rem;
    margin-bottom: 0.7rem;
    color: rgba(217, 236, 255, 0.86);
    font-size: 0.8rem;
    line-height: 1.36;
    flex: 1;
}

.showcase-ask-btn {
    border: 1px solid rgba(127, 192, 235, 0.45);
    background: rgba(24, 40, 61, 0.9);
    color: #d8f1ff;
    border-radius: 0.65rem;
    padding: 0.48rem 0.64rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.showcase-ask-btn:hover {
    background: #78d5ff;
    color: #10233a;
    border-color: #b4e8ff;
}

.showcase-cards.experience-mode {
    grid-template-columns: 1fr;
    position: relative;
    gap: 1rem;
    padding-left: 1.1rem;
}

.showcase-cards.experience-mode::before {
    content: '';
    position: absolute;
    left: 0.38rem;
    top: 0.45rem;
    bottom: 0.45rem;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(136, 216, 255, 0.72), rgba(58, 119, 168, 0.6));
}

.showcase-cards.experience-mode .showcase-card {
    position: relative;
}

.showcase-cards.experience-mode .showcase-card::before {
    content: '';
    position: absolute;
    left: -1.52rem;
    top: 1.15rem;
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    border: 2px solid rgba(150, 225, 255, 0.84);
    background: #17314e;
    box-shadow: 0 0 0 4px rgba(74, 139, 194, 0.28);
}

.ux-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.ux-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#user-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(148, 204, 237, 0.32);
    border-radius: 1rem;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
}
#user-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(89, 210, 255, 0.24);
}
#user-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(125, 181, 229, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
    color: #E2E2E2;
    position: relative;
    overflow: hidden;
    background: rgba(36, 56, 85, 0.9);
}
.input-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.input-btn:hover::after {
    transform: translateX(100%);
}
#send-btn {
    background: linear-gradient(140deg, #77dcff 0%, #2d87d3 100%);
    color: #091422;
    font-weight: 600;
    border: 1px solid rgba(150, 223, 255, 0.86);
    box-shadow: 0 10px 18px rgba(64, 131, 190, 0.38);
}
#send-btn:hover {
    background: #d7f2ff;
    color: #162d46;
    border-color: #a7e4ff;
}
#mic-btn {
    background: linear-gradient(135deg, #2e4d75, #4d83bc);
    box-shadow: 0 8px 16px rgba(33, 71, 112, 0.4);
}
#game-btn {
    background: linear-gradient(135deg, #203d66, #3468a6);
    box-shadow: 0 8px 16px rgba(21, 47, 79, 0.4);
    color: #d6ecff;
}
.input-btn:hover {
    background: #5cbdea;
    border-color: #8fdcff;
    color: #10233a !important;
    box-shadow: 0 10px 20px rgba(70, 154, 206, 0.45);
}
.input-btn:active {
    transform: translateY(1px);
}

.game-menu {
    position: absolute;
    bottom: 60px;
    right: 10px;
    background: linear-gradient(135deg, var(--glass-light), var(--glass-dark));
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1rem;
    width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-light);
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
    animation: fadeIn 0.3s ease-out;
}
.game-menu.active {
    display: flex;
}
.game-menu h4 {
    font-size: 1rem;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 500;
}
.game-option {
    background: #2C2C2C;
    color: #E2E2E2;
    border: 1px solid #3F3F3F;
    border-radius: 0.8rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.game-option i {
    font-size: 0.9rem;
    color: var(--accent);
}
.game-option:hover {
    background: var(--hover-green);
    color: #232323 !important;
    border-color: var(--hover-green) !important;
    transform: translateX(5px);
}

footer {
    background: linear-gradient(90deg, #0a1422, #15253d);
    padding: 1.2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #d9ecff;
    border-top: 1px solid var(--glass-light);
}
footer a {
    color: #7dd7ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
footer a:hover {
    color: #b8e8ff;
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.typing-indicator {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(106, 17, 203, 0.2);
    border-radius: 1.2rem;
    width: fit-content;
    margin-bottom: 1rem;
    align-self: flex-start;
    border: 1px solid rgba(106, 17, 203, 0.3);
}
.typing-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingAnimation {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
    30% { transform: translateY(-5px); opacity: 1; background: var(--accent); }
}

/* Language toggle buttons */
.lang-toggle {
    background: rgba(36, 57, 87, 0.95) !important;
    color: #E2E2E2 !important;
    border: 1px solid rgba(130, 200, 241, 0.56) !important;
    border-radius: 1rem !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: auto !important;
    height: auto !important;
}

.lang-toggle:hover {
    background: #6ecff9 !important;
    color: #132841 !important;
    border-color: #9dddfc !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(83, 171, 228, 0.34) !important;
}

.lang-toggle.active {
    background: #7dd7ff !important;
    color: #132841 !important;
    border-color: #aee6ff !important;
    box-shadow: 0 0 14px rgba(125, 215, 255, 0.48) !important;
}

.voice-toggle-wrapper {
    display: flex !important;
    gap: 0.8rem !important;
    align-items: center !important;
}

#voice-toggle {
    background: rgba(36, 57, 87, 0.95) !important;
    color: #E2E2E2 !important;
    border: 1px solid rgba(130, 200, 241, 0.56) !important;
    border-radius: 1rem !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: auto !important;
    height: auto !important;
}

#voice-toggle:hover {
    background: #6ecff9 !important;
    color: #132841 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(83, 171, 228, 0.34) !important;
}

.ai-status-bar {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #c7e9ff;
    padding: 0.55rem 0.8rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(109, 184, 232, 0.3);
    background: rgba(17, 30, 47, 0.75);
    width: fit-content;
    min-width: 130px;
}

.ai-status-bar.listening,
.ai-status-bar.thinking,
.ai-status-bar.speaking {
    border-color: rgba(140, 214, 255, 0.6);
    box-shadow: 0 0 0 1px rgba(140, 214, 255, 0.14);
}

.listening-wave,
.thinking-dot,
.speaking-wave {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    margin-right: 0.45rem;
    background: #8fdcff;
    animation: pulseDot 1.2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(0.75); opacity: 0.55; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container { 
        flex-direction: column; 
        gap: 1.5rem;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .hero { flex-direction: column; text-align: center; gap: 1.5rem; }
    .hero-content p { max-width: 100%; }
    .chat-area {
        min-height: 60vh;
        height: 60vh;
    }
    .impact-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .showcase-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .showcase-cards.experience-mode {
        grid-template-columns: 1fr;
    }
    .portfolio-content {
        align-items: center;
    }
    .social-links {
        justify-content: center;
    }
}
@media (max-width: 768px) {
    body { color: #E2E2E2; padding: 0.7rem; }
    .container {
        border-radius: 1rem;
        min-height: calc(100dvh - 1.4rem);
    }
    .hero { padding: 1.5rem; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content h2 { font-size: 1.1rem; }
    .main-container { padding: 1.15rem; gap: 1.1rem; }
    .chat-main { gap: 1rem; }
    .chat-area {
        min-height: clamp(52vh, 58dvh, 66vh);
        height: clamp(52vh, 58dvh, 66vh);
        padding: 0.85rem 0.75rem;
    }
    .message {
        max-width: 96%;
        padding: 0.9rem 1rem;
        border-radius: 1rem;
        margin-bottom: 0.8rem;
        font-size: 0.99rem;
        line-height: 1.65;
    }
    .message-content p,
    .message-content li,
    .ai-rich-response p,
    .ai-rich-response li {
        font-size: 0.98rem;
    }
    .official-link-url {
        font-size: 0.82rem;
    }
    .input-area {
        flex-wrap: wrap;
        position: sticky;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 0.35rem);
        z-index: 8;
        padding: 0.75rem;
        border-radius: 1rem;
    }
    .message.rich-response {
        max-width: 96%;
        padding: 0.8rem 0.95rem 0.9rem;
    }
    .message-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.28rem;
    }
    .message-actions {
        flex-wrap: wrap;
    }
    #user-input {
        min-width: 100%;
        order: 1;
        font-size: 16px;
        padding: 0.9rem 1rem;
    }
    .input-btn { width: 44px; height: 44px; font-size: 1.05rem; }
    .prompt-hints {
        margin-top: 0.15rem;
    }
    .showcase-cards,
    .impact-metrics {
        grid-template-columns: 1fr;
    }
    .showcase-cards.experience-mode {
        padding-left: 0.95rem;
    }
    .social-links {
        justify-content: center;
        gap: 1rem;
    }
    .portfolio-links .info-item {
        text-align: center;
    }
    .profile-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero { padding: 1.15rem 1rem; }
    .hero-content h1 { font-size: 1.72rem; }
    .hero-content h2 { font-size: 0.98rem; }
    .chat-area {
        min-height: clamp(54vh, 60dvh, 70vh);
        height: clamp(54vh, 60dvh, 70vh);
    }
    .message {
        max-width: 98%;
        padding: 0.82rem 0.9rem;
    }
    .input-btn { width: 46px; height: 46px; }
}

.input-btn:hover,
.info-item:hover,
.social-links a:hover,
.game-option:hover {
    background: #7dd7ff !important;
    color: #10233a !important;
    border-color: #aee6ff !important;
}
.input-btn:hover i,
.info-item:hover i,
.social-links a:hover i,
.game-option:hover i {
    color: #10233a !important;
}
/* Ensure child spans and links also turn black on hover */
.info-item:hover span,
.info-item:hover a,
.game-option:hover span,
.game-option:hover a,
.social-links a:hover span,
.input-btn:hover span {
    color: #10233a !important;
}