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

body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: transparent;
    color: white;
}

h1 {
    margin: 0;
    font-size: 2.5em;
}

h2 {
    margin: 10px 0;
    font-size: 1.5em;
}

#chat {
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 30px;
    position: relative;
}

#chat::before {
    content: "Chat with Paweł's AI Assistant";
    display: block;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    text-align: center;
    letter-spacing: 0.5px;
}

#chat-container {
    height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.message {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    line-height: 1.5;
}

.message strong {
    color: #667eea;
    margin-right: 8px;
}

#cv-section {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cv-button {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    text-decoration: none;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition:
        transform 0.3s ease,
        -webkit-transform 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cv-button:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
}

.cv-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    object-fit: cover;
    -webkit-object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    display: block;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.cv-button:hover .cv-image {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.cv-button span {
    color: white;
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-container {
    display: -webkit-flex;
    display: flex;
    gap: 15px;
    -webkit-align-items: center;
    align-items: center;
}

#user-input {
    -webkit-flex: 1;
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    -webkit-border-radius: 16px;
    border-radius: 16px;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "Poppins", sans-serif;
    -webkit-appearance: none;
    appearance: none;
}

#user-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    -webkit-box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

#user-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#send-button {
    min-width: 120px;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    -webkit-border-radius: 16px;
    border-radius: 16px;
    cursor: pointer;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
    -webkit-appearance: none;
    appearance: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#send-button:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: -webkit-linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

#send-button:active {
    -webkit-transform: translateY(1px);
    transform: translateY(1px);
}
