:root {
    --surface:      #13151b;
    --surface2:     #1a1d26;
    --on:           #2563eb;
    --off:          #292e3b;
    --text:         #fff;
    --text-muted:   #64748b;
    --text-sub:     #94a3b8;
    --padding-sm:     8px;
    --padding-md:     12px;
    --padding-lg:     16px;
    --radius-sm:      4px;
    --radius-md:      8px;
    --radius-lg:      12px;
    --pink:         #ec4899;
    --pink-h:       #be185d;
    --pink-a:       #8d1145;
}

main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.floating_elements {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: transparent;
}
.floater {
    position: absolute;
    bottom: -30px;
    left: 100px; 
    background: rgba(232, 51, 138, 0.12);
    border: 1px solid rgba(232, 51, 138, 0.4);
    color: #e8338a;
    border-radius: 20px;
    padding: 5px 14px;
    font-family: monospace; 
    font-size: 13px;
    white-space: nowrap;
    animation: floating 8s linear infinite;
}

@keyframes floating {
    0% {transform: translateY(0px); opacity: 0;}
    10% {opacity: 1;}
    90% {opacity: 1;}
    100% {transform: translateY(-430px); opacity: 0;}
}

.ad {
    width: 360px;
    background: #130920;
    border-radius: 16px;
    border: 1px solid #2a1245;
    overflow: hidden;
    position: relative;
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}
 
  
.ad_second_container {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s, transform 0.4s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
 
.ad-header { 
    padding: 22px 20px 0; 
}
 
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #1f0d35;
    border: 1px solid #3d1f6a;
    border-radius: 99px;
    padding: 4px 10px 4px 8px;
    margin-bottom: 14px;
}
 
.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #e91e8c;
    animation: blink 2s ease-in-out infinite;
}
 
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}
 
.badge span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b07fe0;
}
 
.headline {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
    color: #f0e8ff;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}
 
.headline span { 
    color: #e91e8c; 
}
 
.sub {
    font-size: 12.5px;
    color: #7a5a9e;
    line-height: 1.55;
    margin-bottom: 20px;
}
 
.services {
    border-top: 1px solid #1f0d35;
    margin: 0 20px;
}
 
.svc {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #1f0d35;
    cursor: pointer;
    transition: opacity 0.15s;
}
 
.svc:hover { 
    opacity: 0.75; 
}
 
.svc-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: #1f0d35;
    border: 1px solid #3d1f6a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
 
.svc-text { 
    flex: 1; 
}
 
.svc-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #d5b8f5;
    line-height: 1.2;
}
 
.svc-desc {
    font-size: 11px;
    color: #5a3d7a;
    margin-top: 1px;
}
 
.svc-arrow {
    font-size: 16px;
    color: #3d1f6a;
}
 
.ad-footer { 
    margin-top: auto; 
    padding: 16px 20px 20px;
}
 
.cta {
    display: block;
    width: 100%;
    background: #e91e8c;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-bottom: 10px;
}
 
.cta:hover { 
    background: #cc1078; transform: translateY(-1px); 
}
.cta:active { 
    transform: translateY(0); 
}
 
.tagline {
    text-align: center;
    font-size: 11px;
    color: #3d2560;
    letter-spacing: 0.02em;
}
 
  
.in_svc_container {
    display: none;
    flex-direction: column;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s, transform 0.4s;
}
 
.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #b07fe0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 16px 20px 0;
    letter-spacing: 0.04em;
    transition: color 0.15s;
}
 
.back-btn:hover { 
    color: #e91e8c; 
}
 
.back-arrow {
    font-size: 16px;
    line-height: 1;
}
 
.detail-section {
    padding: 16px 20px 22px;
}
 
.detail-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
}
 
.detail-title {
    font-size: 18px;
    font-weight: 900;
    color: #f0e8ff;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
 
.detail-intro {
    font-size: 12px;
    color: #7a5a9e;
    line-height: 1.55;
    margin-bottom: 14px;
}
 
.tech-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
 
.tech-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #1a0d2e;
    border: 1px solid #2e1650;
    border-radius: 8px;
    padding: 10px 12px;
}
 
.tech-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #e91e8c;
    flex-shrink: 0;
    margin-top: 4px;
}
 
.tech-info {

}

.tech-name {
    font-size: 12px;
    font-weight: 700;
    color: #d5b8f5;
    margin-bottom: 2px;
}
 
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
 
.tag {
    font-size: 10px;
    font-weight: 600;
    background: #2e1650;
    color: #b07fe0;
    border-radius: 4px;
    padding: 2px 7px;
    letter-spacing: 0.03em;
}
 
.detail-closing {
    font-size: 11.5px;
    color: #5a3d7a;
    line-height: 1.55;
    font-style: italic;
}
 
  
.ad_transition {
    opacity: 0 !important;
    transform: translateX(-30px) !important;
}

#AI_chatbox_icon {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 60px;
    width: 100%;
    height: 50px;
    position: fixed;
    bottom: 50px;
    right: 30px;
    border: none;
    border-radius: 18px;
    background-color: var(--pink-h);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.4);
    transition: 0.4s;
    z-index: 9999;
}
#AI_chatbox_icon:hover {
    transform: translateY(-2px);
    background-color: var(--pink-a);
}
#AI_chatbox_icon img {
    max-width: 40px;
    height: auto;
}
#AI_chatbox {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 600px; 
    height: 100%;
    max-width: 380px; 
    width: 100%; 
    position: fixed; 
    bottom: 120px; 
    right: 20px; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); 
    background: rgba(20, 15, 30, 0.85); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(236,72,153,0.12); 
    color: #fff; 
    font-size: 1rem; 
    font-family: Inter, sans-serif; 
    font-weight: 500; 
    border: none; 
    border-radius: 12px; 
    text-align: center; 
    transform: translate3d(100%, 0, 0); 
    opacity: 0; 
    transition: transform 0.4s ease-in-out;
    visibility: hidden;
}
#AI_chatbox.open {
    visibility: visible;
    opacity: 1;
    transform: translate3d(0%, 0, 0);
}
#AI_chatbox h2 {
    margin-top: 10px;
}
#AI_chatbox_close {
    position: absolute;
    right: 8px;
    top: 8px;
    background-color: transparent;
    cursor: pointer;
}
#arrow {
    padding-top: 5px;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
}
#arrow, #AI_chatbox_message_image {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s;
}

/* ------------------ CHAT ------------------ */

#conversation_div {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    height: 100%;
    justify-content: space-between;
    min-height: 0;
    flex: 1;
}

#messages_container {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    max-width: 70%;
    width: auto;
    word-wrap: break-word;
    height: auto;
    padding: 8px;
    border-radius: 20px;
}
.user {
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    background-color: #1b1a1a;
    color: #fff;
    font-family: Inter, sans-serif;
    padding-left: 10px;
}  
.assistant {
    align-items: flex-start;
    border-bottom-left-radius: 2px;
    background-color: #000;
    color: #fff;
    font-family: Inter, sans-serif;
}

#bubbles_animation {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 20px;
}
.dot {
    display: inline-block;
    height: 8px;
    width: 8px;
    background-color: #555;
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

#bubbles_animation span:nth-child(1) {
    animation-delay: 0;
}
#bubbles_animation span:nth-child(2) {
    animation-delay: 0.2s;
}
#bubbles_animation span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(1) translate3d(0, 0, 0);
        opacity: 1;
    }
    40% {
        transform: scale(1.3) translate3d(0, -6px, 0);
        opacity: 0.4;
    }
}

#input_container {
    display: flex;
    flex-direction: row;
    gap: 5px;
    padding-top: 10px;
    margin-top: auto;
    flex-shrink: 0;
} 
#send_ai_message {
    width: 100%;
    border: none;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    outline: none;
    padding: 6px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    color: #ddd;
    font-size: 1rem;
    transition: 0.3s;
}
#send_ai_message:focus {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.2);
}
#button_send_ai {
    background-color: #ff1493;
    cursor: pointer;
    transition: 0.3s;
}
#button_send_ai:hover {
    filter: brightness(1.15);
    background-color: #c00f6d;
}
#button_send_ai:disabled {
    background-color: #ff7abf;
    cursor: not-allowed;
}
#button_send_ai:disabled:hover {
    filter: none;
}

#new_conversation {
    align-self: center;
    width: 36px;
    height: 36px;
    border-radius: 10px; 
    border: none;
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff69b4, #da1b86);
    color: white;
    box-shadow: 0 4px 10px rgba(218, 27, 134, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
#new_conversation:hover {
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(218, 27, 134, 0.6);
    filter: brightness(1.1);
}
#new_conversation:active {
    transform: scale(0.95);
}

/* ------------------------------------------ */
/* ----------- SEKCJA OPISU BOTA ------------ */
/* ------------------------------------------ */

.bot-description {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto 1fr;
    padding-top: 20px;
}

.bot-description-paragraph {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    margin: 0 auto;
}
.bot-description-paragraph h1 {
    font-family: Inter, sans-serif;
    color: #F9FAFB;
}
.description-a {
    text-decoration: underline;
    color: #D4D4D8;
    transition: 0.3s;
}
.description-a:hover {
    color: var(--pink-a);
}   
.description-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 35px;
} 
.login-button-description {
    font-size: 16px;
    height: auto;
    color: #D4D4D8;
    font-weight: bold;
    text-decoration: none;
    height: auto;
    border: none;
    border-radius: 4px;
    background-color: #222121;
    padding: 12px 24px;
    transition: 0.3s;
    cursor: pointer;
}
.login-button-description:hover {
    transform: translatey(-2px);
    background-color: #333131;
}
.add-button-description {
    font-size: 16px;
    height: auto;
    color: #D4D4D8;
    font-weight: bold;
    text-decoration: none;
    height: auto;
    border: none;
    border-radius: 4px;
    background-color: var(--pink-h);
    padding: 12px 24px;
    transition: 0.3s;
    cursor: pointer;
}
.add-button-description:hover {
    transform: translatey(-2px);
    background-color: var(--pink-a);
}
.bot-description-graph {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    margin: 0 auto;
    padding-top: 60px;
}
.bot-description-graph img {
    max-width: 600px;
    min-width: 200px;
    width: 100%;
    border: none;
    border-radius: 12px;
    box-shadow: 0px 34px 37px -10px rgb(0, 0, 0, 0.4);
}
.index-ad {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    text-align: center;
}
.index-ad img {
    border: none;
    border-radius: 12px;
    transition: 0.3s;
    cursor: pointer;
    max-width: 400px;
    height: auto;

}
.index-ad img:hover {
    transform: translateY(-5px);
}

#bubble_animation span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: bounce 1s infinite;
}

#bubble_animation span:nth-child(2) { animation-delay: 0.2s; }
#bubble_animation span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.msg {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    color: #fff;
    font-size: 14px;
    gap: 10px;
}
.msg:hover {
    background: rgba(255, 255, 255, 0.08);
}
.msg.active {
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 786px) {
    .top-nav {
        background-color: #161616;
        font-size: 16px;
    }
    .navigation a {
        font-size: 15px;
    }

    .bot-description {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-top: 50px;
    }
    .bot-description-paragraph {
        margin-left: 15px;
    }
    .bot-description-paragraph h1 {
        font-size: 1.5rem;
    }
    #AI_chatbox {   
        z-index: 3000;
    }
    .index-ad img {
        max-width: 300px;
    }

    #status_note {
        position: absolute;
        top: 5px;
        left: 10px;
    }
    
    #AI_chatbox {
        position: fixed; 
        top: 100px; 
        right: 20px; 
    }
    
    #AI_chatbox_icon {
        position: fixed;
        bottom: 30px;
        right: 30px;
    }
    #AI_chatbox {
        max-height: 550px; 
        height: 100%;
        position: fixed; 
        bottom: 60px; 
        right: 20px; 
    }
    .add-button-description {
        font-size: 14px;
        padding: 10px;
    }
    .login-button-description {
        font-size: 14px;
        padding: 10px;
    }
}
