@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
    --bg-color: #050505;
    /* Deep rich black */
    --surface: rgba(255, 255, 255, 0.03);
    --surface-alt: rgba(255, 255, 255, 0.06);
    --text-color: #ffffff;
    --muted: rgba(255, 255, 255, 0.5);
    --accent: #ffffff;
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    --btn-bg: #ffffff;
    --btn-text: #000000;
}

@font-face {
    font-family: 'Lazenby Computer';
    src: url('askalx-font/LazenbyCompLiquid.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at center top, #151515 0%, #000000 100%);
    overflow-x: hidden;
    line-height: 1.65;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem 2rem;
    max-width: 900px;
    width: 100%;
    text-align: center;
    gap: 1.5rem;
    /* Reduced spacing */
}

/* Minimalist Header Styles */
h1 {
    font-weight: 300;
    font-size: 2.5rem;
    letter-spacing: 0.5px;
    opacity: 0.95;
    margin: 0;
}

.logo {
    font-family: 'Lazenby Computer', monospace;
    font-size: 6.5rem;
    letter-spacing: 0.3rem;
    line-height: 1;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
    margin: 0;
}

/* Chat Interface */
.chat-interface {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: all 0.5s ease;
}

.search-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    background-color: rgba(255, 255, 255, 0.05);
    /* very subtle frosted look */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    transition: all 0.3s ease;
    /* Soft premium glow */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0);
}

.search-container:focus-within {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

#chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    outline: none;
    padding: 0.5rem 0;
}

#chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#mic-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#mic-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

#mic-btn.active {
    color: #ff4a4a;
    background-color: rgba(255, 74, 74, 0.1);
}

#mic-btn.speaking {
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* Chat History Layout */
.chat-history {
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    min-height: 200px;
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 2rem;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.chat-history::-webkit-scrollbar {
    width: 6px;
}

.chat-history::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.message {
    max-width: 80%;
    margin-bottom: 1rem;
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg-user {
    align-self: flex-end;
}

.msg-user .msg-text {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 18px 18px 0px 18px;
    font-size: 1.05rem;
    line-height: 1.4;
}

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

.msg-ai .msg-text {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 1.2rem;
    border-radius: 18px 18px 18px 0px;
    font-size: 1.05rem;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Thinking Indicator */
.thinking-indicator .msg-text {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 1rem 1.2rem;
}

.thinking-indicator .dot {
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.thinking-indicator .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.thinking-indicator .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Chat Active Layout Adjustments */
body.chat-active .container {
    gap: 1.5rem;
}

body.chat-active h1 {
    font-size: 1.5rem;
    opacity: 0.5;
    margin-bottom: -1rem;
}

body.chat-active .logo {
    font-size: 3rem;
}

/* Optional: hide buttons on chat-active if we don't want them cluttering. Let's not hide entirely but scale down if needed.
   Actually, requirement didn't specify. I will keep them visible but fade slightly. */
body.chat-active .hero-actions {
    opacity: 0.6;
}

body.chat-active main {
    opacity: 0;
    pointer-events: none;
}

/* Micro-animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Rest of the Traditional Content adapted for Dark Theme */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    transition: opacity 0.5s ease;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--muted);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
    color: var(--text-color);
}

.button-icon {
    transition: color 0.3s ease;
}

/* Subtle brand colors on hover */
a[href^="tel:"]:hover .button-icon {
    color: #34C759;
    /* iOS Green */
}

a[href^="mailto:"]:hover .button-icon {
    color: #EA4335;
    /* Email Red */
}

a[href^="https://t.me/"]:hover .button-icon {
    color: #2AABEE;
    /* Telegram Blue */
}

a[href^="https://askalx.com.au"]:hover .button-icon {
    color: #FF9F0A;
    /* Orange for More/Help */
}

main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    width: 100%;
    transition: opacity 0.5s ease;
}

.section {
    background: transparent;
    border: none;
    padding: 4rem 0;
    margin: 0;
    animation: rise 0.65s ease both;
}

h2 {
    margin: 0 0 2.5rem;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

.section p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 800px;
}

.section ul {
    margin: 1.5rem 0 0;
    padding-left: 1.5rem;
    color: var(--muted);
}

.section li {
    margin: 1rem 0;
}

.section a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.section a:hover {
    opacity: 0.8;
}

.testimonial-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2rem;
}

.testimonial-card {
    background: transparent;
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
}

.testimonial-card:hover img {
    filter: grayscale(0%) brightness(1);
}

.testimonial-card h3 {
    margin: 0;
    padding: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
}

.testimonial-card .business-description {
    margin: 0;
    padding: 0 0 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.testimonial-card .testimonial-quote {
    margin: 1.5rem 0;
    padding: 0 0 0 1.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    /* Pushes the link to bottom */
    text-align: left;
}

.testimonial-card .testimonial-link-wrap {
    padding: 0;
    margin-top: auto;
    width: 100%;
    text-align: center;
}

.testimonial-card .testimonial-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.7;
}

.testimonial-card .testimonial-link:hover {
    opacity: 1;
    text-decoration: underline;
}

#faq li {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}

#faq li:first-child {
    padding-top: 0;
}

#faq li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#faq strong {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 1.1rem;
}

footer {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
    font-size: 0.95rem;
    width: 100%;
    margin-top: auto;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        gap: 2.5rem;
        padding-top: 3rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 4.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 1rem auto 0;
    }

    .button {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 1.5rem;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        gap: 2rem;
        padding-top: 2rem;
    }

    h1 {
        font-size: 1.4rem;
    }

    .logo {
        font-size: 3.2rem;
        letter-spacing: 0.1rem;
    }
}