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

body {
    background-color: transparent;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
}

.fixed-image,
.image-container,
.container {
    will-change: transform;
}

html, body {
    overscroll-behavior: none; /* Prevents bounce on overscroll */
}

.image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    z-index: -1;
}

.fixed-image {
    margin-left: 93px;
    max-width: 80%;
    height: auto;
    z-index: -1;
    transform: translate3d(0, 0, 0);
}

.image-text {
    text-align: center;
    color: #000;
    margin-top: 20px;
    position: absolute;
    transition: transform 0.3s ease-out;
    z-index: 10;
}

.image-text h1 {
    margin: 0;
    font-size: 2.3em;
    font-weight: 100;
    color: #4D3497;
}

.image-text h2 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 350;
}

.subheader {
    font-weight: 400;
}

.scroll-arrow {
    position: absolute;
    bottom: 30px;
    animation: blink 1.5s infinite;
    font-size: 2rem;
    color: #4D3497;
}

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

.container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 100dvh; 
    margin-bottom: 10dvh;
    padding: 20px;
    background-color: transparent; 
}

/* Chat container styles */
.chat-container {
    width: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    overflow: hidden;
    height: auto;
    max-height: 80dvh;
    margin-bottom: 20px;
}

.chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 10px 10px 0px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.message {
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 65%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.message.user {
    align-self: flex-end;
    background-color: #fafafa;
    text-align: right;
    border: 1px solid #595959;
}

.message.bot {
    align-self: flex-start;
    background-color: #f0f0f0;
    text-align: left;
    border: 1px solid #4D3497;
}

.typing-indicator {
    display: none;
    align-self: flex-start;
    margin: 10px;
    padding: 10px 14px;
    background-color: #f0f0f0;
    border-radius: 16px;
    display: flex;
    align-items: center;
}

.typing-indicator span {
    background-color: #595959;
    width: 6px;
    height: 6px;
    border-radius: 70%;
    display: inline-block;
    animation: bounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: -0.4s;
}

/* Input container */
.input-container {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
}

#chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #eaeaea;
    border-radius: 20px;
    font-size: 14px;
    resize: none;
    outline: none;
    min-height: 40px;
    max-height: 150px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    font-size: 14px; 
    color: #333; 
}

#chat-input::placeholder {
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    color: #aaa; 
}

#chat-input:focus {
    border-color: #4D3497;
}

/* Send button */
#send-button {
    padding: 10px 16px;
    margin-left: 10px;
    background-color: #595959;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

#send-button:hover {
    background-color: #4D3497;
}

#send-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    color: #666;
}

/* Chat header with minimal button */
.chat-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: transparent;
}

/* Minimalist reset button */
#reset-button {
    background: none;
    border: none;
    color: #595959;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
}

#reset-button:hover {
    color: #FF6700;
}

#collapse-button {
    background: none;
    border: none;
    color: #595959;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

#collapse-button:hover {
    color: #4D3497;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

.rotated {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.progress-bar-container {
    position: sticky;
    bottom: 0;
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin-top: 10px;
    z-index: 10;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #4D3497;
    transition: width 0.3s ease;
}

/* Contact Form Container */
.contact-form-container {
    width: 100%;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

/* Horizontal Rule with Larger Margin */
.divider {
    margin: 10px 0;
    color: #ffffff;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    font-family: 'Helvetica Neue', Arial, sans-serif; /* Match the rest of the site */
    font-size: 14px; /* Adjust font size if needed */
    color: #333; /* Optional: set a consistent text color */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    font-family: 'Helvetica Neue', Arial, sans-serif; /* Ensure placeholder uses the same font */
    color: #aaa; /* Optional: lighter color for placeholder text */
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4D3497; /* Apply the purple border color on focus */
    outline: none; /* Remove the default outline for a cleaner look */
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row .contact-form input[type="text"],
.form-row .contact-form input[type="email"] {
    flex: 1;
}

/* Contact Form Submit Button */
.contact-form button[type="submit"] {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid transparent;
    background-color: #ffffff;
    color: #4D3497;
    cursor: pointer;
    border-radius: 8px;
    align-self: flex-end;
    transition: border 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    border: 1px solid #4D3497;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #4D3497;
    color: #ffffff;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-height: 50px; 
    overflow: hidden;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip {
    display: none;
    position: absolute;
    bottom: 50%;
    left: -150%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tooltip-container:hover .tooltip {
    display: block;
    opacity: 1;
}

.linkedin-icon,
.soundcloud-icon,
.email-icon,
.calendar-icon {
    position: fixed;
    left: 20px;
    font-size: 1.8rem;
    color: #5a5a5a;
    z-index: 1000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.linkedin-icon:hover,
.soundcloud-icon:hover,
.email-icon:hover,
.calendar-icon:hover {
    color: #4D3497;
}

.linkedin-icon {
    top: 20px;
    padding: 5px;
}

.soundcloud-icon {
    top: 70px;
    transform: scale(0.85); 
}

.email-icon {
    top: 110px;         
    left: 24px;
    transform: scale(0.85);
}

.calendar-icon {
    top: 155px;
    left: 26px;
    transform: scale(0.83);
}

@media (max-width: 1000px) {
    .icon-footer {
        position: fixed;
        bottom: 0;
        left: -3px;
        width: 100%;
        display: flex;
        justify-content: center;
        z-index: 1000;
    }

    .icon-footer a {
        margin: 0 15px; /* Space between icons */
        font-size: 1.5rem; /* Slightly smaller for compact layout */
        color: #5a5a5a;
        transition: color 0.3s ease;
    }

    .icon-footer a:hover {
        color: #4D3497;
    }

    .linkedin-icon,
    .soundcloud-icon,
    .email-icon,
    .calendar-icon {
        position: static;
        top: auto;
        left: auto;
    }
}

/* Mobile layout adjustments */
@media (max-width: 768px) {
    .container {
        width: 97%;
    }

    .fixed-image {
        max-width: 70%;
        height: auto;
        margin-left: 25px;
    }

    .chat-container,
    .contact-form-container {
        padding: 1px;
    }

    #chat-input {
        font-size: 16px;
    }

    .message {
        padding: 6px 7px;
        font-size: 13px;
        max-width: 85%;
    }

    .section-header,
    .subheader {
        padding: 0 10px;
    }

    .toast {
        top: 20px;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 85%;
        padding: 8px 12px; 
        font-size: 13px;
        line-height: 1.4;
        max-height: 50px;
        overflow: hidden;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #eaeaea;
        border-radius: 8px;
        font-size: 16px;
        margin-bottom: 15px;
        font-family: 'Helvetica Neue', Arial, sans-serif; /* Match the rest of the site */
        font-size: 14px; /* Adjust font size if needed */
        color: #333; /* Optional: set a consistent text color */
    }
}