/* Import Work Sans Font */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    background-color: #193F3D;
    color: #91BDBF;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2.5rem 0;
    max-width: 1920px;
    margin: 0 auto;
    padding-top: 120px;
}

/* Header */
header {
    margin-bottom: 4.8rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    width: 100%;
    position: fixed;
    top: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
}

.name-logo-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.name-logo {
    width: 100%;
    max-width: 378px;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.name-logo-wrapper:hover .name-logo {
    filter: brightness(0) saturate(100%) invert(77%) sepia(93%) saturate(1844%) hue-rotate(49deg) brightness(103%) contrast(97%)
            drop-shadow(0 0 1px #34F816) drop-shadow(0 0 1px #34F816) drop-shadow(0 0 1px #34F816);
}

.name-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 12px;
    color: #91BDBF;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    line-height: normal;
}

.name-logo-wrapper:hover .name-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.tagline {
    font-size: 2.25rem;
    line-height: 1.3;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto 3rem auto;
    font-weight: normal;
    font-style: normal;
    padding: 0 2rem;
    transform: translateY(-10vh);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.social-icon {
    display: inline-block;
    cursor: pointer;
}

.social-icon img {
    transition: filter 0.3s ease;
}

.social-icon:hover img {
    filter: brightness(0) saturate(100%) invert(77%) sepia(93%) saturate(1844%) hue-rotate(49deg) brightness(103%) contrast(97%)
            drop-shadow(0 0 1px #34F816) drop-shadow(0 0 1px #34F816) drop-shadow(0 0 1px #34F816);
}

.social-icon img {
    width: 29px;
    height: 29px;
    display: block;
}

/* Footer */
footer {
    margin-top: auto;
    padding-top: 3rem;
}

.footer-text {
    font-size: 0.75rem;
    line-height: normal;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
    padding: 0 2rem;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .tagline {
        font-size: 2.25rem;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 2rem 0;
        padding-top: 120px;
    }

    header {
        margin-bottom: 3.6rem;
        padding: 0 1.5rem;
        top: 2rem;
    }
    
    .name-logo {
        max-width: 100%;
    }

    .name-logo {
        max-width: 378px;
    }

    .name-tooltip {
        font-size: 0.6875rem;
    }

    .tagline {
        font-size: 2.25rem;
        padding: 0 1.5rem;
        margin-bottom: 2.5rem;
    }

    .social-icons {
        gap: 1.5rem;
    }

    .social-icon img {
        width: 29px;
        height: 29px;
    }

    .footer-text {
        font-size: 0.6875rem;
        padding: 0 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 1.5rem 0;
        padding-top: 80px;
    }

    header {
        margin-bottom: 2.4rem;
        padding: 0 1rem;
        top: 1.5rem;
    }

    .name-logo {
        max-width: 378px;
    }

    .name-tooltip {
        font-size: 0.625rem;
    }

    .tagline {
        font-size: 2.25rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .social-icons {
        gap: 1.25rem;
    }

    .social-icon img {
        width: 29px;
        height: 29px;
    }

    .footer-text {
        font-size: 0.625rem;
        padding: 0 1rem;
    }
}

/* Chat Interface */
.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #193F3D;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: all;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.chat-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.chat-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 2rem;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
    gap: 1rem;
}

.chat-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    color: #91BDBF;
    font-weight: normal;
    margin: 0;
    flex: 0 0 auto;
}

.chat-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 21px;
    height: 21px;
    transition: filter 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.chat-close:hover {
    filter: brightness(0) saturate(100%) invert(77%) sepia(93%) saturate(1844%) hue-rotate(49deg) brightness(103%) contrast(97%)
            drop-shadow(0 0 1px #34F816) drop-shadow(0 0 1px #34F816) drop-shadow(0 0 1px #34F816);
}

.chat-close img {
    width: 100%;
    height: 100%;
}

.chat-box {
    background-color: rgba(145, 189, 191, 0.08);
    border-radius: 30px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    width: 100%;
    margin: 0;
    max-height: none;
}

.chat-messages {
    flex: 0 0 auto;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0;
    margin-bottom: 1.5rem;
    width: 100%;
}

.chat-message-user {
    color: #91BDBF;
    text-align: right;
    font-weight: bold;
    margin-bottom: 2.5rem;
}

.chat-message-ai {
    color: #91BDBF;
    text-align: left;
    font-weight: normal;
}

.loading-message {
    opacity: 0.6;
    font-style: italic;
}

.chat-input-container {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    position: relative;
}

.chat-input-container.hidden {
    display: none;
}

.chat-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

.chat-actions.hidden {
    display: none;
}

.chat-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 26px;
    height: 26px;
    transition: filter 0.3s ease;
}

.chat-action-btn:hover {
    filter: brightness(0) saturate(100%) invert(77%) sepia(93%) saturate(1844%) hue-rotate(49deg) brightness(103%) contrast(97%)
            drop-shadow(0 0 1px #34F816) drop-shadow(0 0 1px #34F816) drop-shadow(0 0 1px #34F816);
}

.chat-action-btn img {
    width: 100%;
    height: 100%;
}

.chat-input {
    flex: 1;
    background-color: transparent;
    border: none;
    padding: 0;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    color: #91BDBF;
    outline: none;
    line-height: 1.5;
    resize: none;
    overflow-x: hidden;
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    height: auto;
    min-height: 1.5rem;
}

.chat-input::placeholder {
    color: rgba(145, 189, 191, 0.5);
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
}

.chat-input:focus {
    border-color: rgba(215, 152, 141, 0.4);
}

.chat-send {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    transition: filter 0.3s ease, opacity 0.3s ease;
    align-self: flex-end;
    opacity: 1;
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-send:not(:disabled):hover {
    filter: brightness(0) saturate(100%) invert(77%) sepia(93%) saturate(1844%) hue-rotate(49deg) brightness(103%) contrast(97%)
            drop-shadow(0 0 1px #34F816) drop-shadow(0 0 1px #34F816) drop-shadow(0 0 1px #34F816);
}

.chat-send img {
    width: 100%;
    height: 100%;
}

.chat-footer {
    margin-top: 2rem;
}

.chat-footer .footer-text {
    text-align: left;
    padding: 0;
    margin: 0;
}

/* Responsive Chat Styles */
@media screen and (max-width: 768px) {
    .chat-container {
        padding: 0 1.5rem;
        padding-top: 100px;
        padding-bottom: 1.5rem;
    }
    
    .chat-title {
        font-size: 1rem;
    }
    
    .chat-header {
        margin-bottom: 0.75rem;
    }
    
    .chat-box {
        padding: 24px;
    }
    
    .chat-message {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }
    
    .chat-message-user {
        margin-bottom: 2rem;
    }
    
    .chat-input {
        font-size: 0.9375rem;
    }
}

@media screen and (max-width: 480px) {
    .chat-overlay {
        overflow-y: auto;
    }
    
    .chat-container {
        padding: 0 1rem;
        padding-top: 80px;
        padding-bottom: 1rem;
    }
    
    .chat-title {
        font-size: 1rem;
    }
    
    .chat-close {
        width: 18px;
        height: 18px;
    }
    
    .chat-box {
        padding: 20px;
    }
    
    .chat-send {
        width: 22px;
        height: 22px;
    }
    
    .chat-message {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .chat-message-user {
        margin-bottom: 1.5rem;
    }
    
    .chat-input {
        font-size: 0.875rem;
    }
    
    .chat-action-btn {
        width: 22px;
        height: 22px;
    }
}

/* Smooth Animations */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

