:root {
    --amber: #D4AF37;
    --warm-orange: #FF8C00;
    --deep-red: #8B0000;
    --chemical-green: #338782;
    --soft-white: #FAFAFA;
    --rich-black: #0A0A0A;
    --gradient-colors: #553737, #338782, #A1A57F, #DCE187;
}

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

body {
    background: var(--soft-white);
    color: var(--rich-black);
    font-family: 'Libertinus Mono', monospace;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}


.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft-white);
    overflow: hidden;
}



.name-elements {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-image {
    width: 100%;
    max-width: min(65vw, 550px);
    height: auto;
    margin-bottom: 1rem;
}

.name-left {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0;
    opacity: 0.85;
    transform: none;
    color: var(--rich-black);
    margin-bottom: 0.5rem;
}

.name-right {
    font-size: 1.8rem;
    opacity: 0.85;
    transform: none;
    color: var(--rich-black);
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 85vw;
}

.hero-image {
    width: 100%;
    max-width: min(65vw, 550px);
    height: auto;
    box-shadow: none;
    filter: none;
    transition: none;
    transform: none;
    opacity: 0.95;
}

.hero-signup {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
}

.signup-title {
    font-size: 1rem;
    color: var(--rich-black);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.hero-form {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    align-items: center;
}

.hero-input {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--rich-black);
    background: var(--soft-white);
    color: var(--rich-black);
    border-radius: 0;
    outline: none;
    width: 180px;
    opacity: 0.9;
    transition: border-color 0.3s ease, opacity 0.3s ease;
}

.hero-input:focus {
    border-color: var(--chemical-green);
    opacity: 1;
}

.hero-input::placeholder {
    color: var(--rich-black);
    opacity: 0.5;
}

.hero-submit {
    font-family: 'Libertinus Mono', monospace;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    background: var(--rich-black);
    color: var(--soft-white);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    opacity: 0.9;
}

.hero-submit:hover {
    background: var(--chemical-green);
    opacity: 1;
}


.content-section {
    height: 100vh;
    background: var(--soft-white);
    position: relative;
    padding: 2vh 2vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Flowing background elements */
.content-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 40%;
    height: 30%;
    background: radial-gradient(ellipse, rgba(51, 135, 130, 0.03), transparent 70%);
    border-radius: 60% 40% 80% 20%;
    animation: gentleFloat 30s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.1); }
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    max-width: none;
    width: 100%;
    height: 96vh;
    position: relative;
    z-index: 2;
}

.bio-section {
    grid-column: 1;
    grid-row: 1;
    height: fit-content;
}

.contact-section {
    grid-column: 1;
    grid-row: 2;
    height: fit-content;
    align-self: end;
}

.projects-section {
    grid-column: 2;
    grid-row: 2;
    height: fit-content;
    align-self: end;
    text-align: right;
}

.graphic-section {
    grid-column: 2;
    grid-row: 1;
    height: fit-content;
    align-self: start;
    text-align: right;
}

.ylang-section {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    height: fit-content;
    text-align: center;
    display: flex;
    align-items: end;
}

.ylang-graphic {
    height: 10rem;
    width: auto;
}

.bio-content, .contact-content, .projects-content {
    font-family: 'Libertinus Mono', monospace;
    font-size: 1.8rem;
    padding: 0;
    background: none;
    border: none;
}

.bio-text {
    margin: 0;
    padding: 0;
    border: none;
}

.bio-text p {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 400;
    opacity: 0.95;
    margin: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-item {
    font-size: 1.8rem;
}

.contact-item a {
    color: var(--rich-black);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--amber);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-family: 'Libertinus Mono', monospace;
    font-size: 1.8rem;
    align-items: flex-end;
}

.project-link {
    color: var(--rich-black);
    text-decoration: none;
    font-size: 1.8rem;
    line-height: 1.2;
    display: block;
}

.project-link:hover {
    color: var(--amber);
}


/* Responsive design */
@media (max-width: 1000px) {
    .content-section {
        height: auto;
        min-height: 100vh;
        padding: 3vh 3vw;
    }
    
    .content-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 3rem;
        height: auto;
    }
    
    .bio-content, .contact-content, .projects-content {
        font-size: 1.4rem;
    }
    
    .bio-text p {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .contact-item {
        font-size: 1.4rem;
    }
    
    .projects-list {
        font-size: 1.4rem;
    }
    
    .project-link {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .ylang-graphic {
        height: 5.6rem;
        width: auto;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}

@media (max-width: 768px) {
    .name-left, .name-right {
        top: 1rem;
        font-size: 0.8rem;
    }
    
    .name-left {
        left: 1rem;
    }
    
    .name-right {
        right: 1rem;
    }
    
    .desktop-only {
        display: none;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .mobile-only {
        position: static;
        margin: 0 auto;
        max-width: 300px;
        text-align: center;
    }
    
    .mobile-only .hero-form {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .mobile-only .hero-input {
        width: 100%;
        max-width: 250px;
    }
    
    .mobile-only .hero-submit {
        width: auto;
    }
    
    .signup-title {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero-form {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .hero-input {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
        width: 100%;
        max-width: 250px;
    }
    
    .hero-submit {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        width: auto;
    }
}
    
@media (max-width: 768px) {
    .content-section {
        padding: 2vh 2vw 1vh 2vw;
        height: auto;
        min-height: 100vh;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 1rem;
        height: auto;
    }
    
    .bio-section {
        grid-column: 1;
        grid-row: 2;
    }
    
    .contact-section {
        grid-column: 1;
        grid-row: 3;
    }
    
    .projects-section {
        grid-column: 1;
        grid-row: 4;
        text-align: left;
        align-self: end;
    }
    
    .graphic-section {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .ylang-section {
        position: absolute;
        grid-column: unset;
        grid-row: unset;
        transform: none;
        right: 2vw;
        bottom: 0px;
        text-align: right;
        margin-top: 0;
        align-self: end;
        display: block;
        align-items: unset;
    }
    
    .projects-list {
        align-items: flex-start;
    }
    
    .bio-content, .contact-content, .projects-content {
        font-size: 1rem;
    }
    
    .bio-text p {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .contact-item {
        font-size: 1rem;
    }
    
    .projects-list {
        font-size: 1rem;
    }
    
    .project-link {
        font-size: 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .ylang-graphic {
        height: 4.8rem;
        width: auto;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 2vh 4vw;
    }
    
    .bio-content, .contact-content, .projects-content {
        font-size: 1rem;
    }
    
    .bio-text p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .contact-item {
        font-size: 1rem;
    }
    
    .projects-list {
        font-size: 1rem;
    }
    
    .project-link {
        font-size: 1rem;
    }
    
    .ylang-graphic {
        height: 4rem;
        width: auto;
    }
}

/* Mailing List Page Styles */
.mailing-form-section {
    min-height: 100vh;
    background: var(--soft-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.form-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.form-title {
    font-family: 'Libertinus Mono', monospace;
    font-size: 2.5rem;
    color: var(--rich-black);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.form-container p {
    font-size: 1rem;
    color: var(--rich-black);
    opacity: 0.7;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-description {
    font-family: 'Libertinus Mono', monospace;
    font-size: 1.2rem;
    color: var(--rich-black);
    margin-bottom: 3rem;
    line-height: 1.5;
    opacity: 0.8;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}

.form-input {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--rich-black);
    background: var(--soft-white);
    color: var(--rich-black);
    border-radius: 0 !important;
    outline: none;
    width: 180px;
    opacity: 0.9;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus {
    border-color: var(--chemical-green);
    opacity: 1;
}

.form-input::placeholder {
    color: var(--rich-black);
    opacity: 0.5;
}

.submit-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    background: var(--rich-black);
    color: var(--soft-white);
    border: none;
    border-radius: 0 !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
    opacity: 0.9;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.submit-btn:hover {
    background: var(--chemical-green);
    opacity: 1;
}

.back-link {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-family: 'Libertinus Mono', monospace;
    font-size: 1rem;
    color: var(--rich-black);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 1;
    color: var(--amber);
}

@media (max-width: 768px) {
    .form-title {
        font-size: 1.8rem;
    }
    
    .form-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .mailing-form-section {
        padding: 2rem 1rem;
    }
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    font-family: 'Libertinus Mono', monospace;
}

.chat-toggle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--chemical-green) 0%, #2a6b68 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(51, 135, 130, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.chat-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(51, 135, 130, 0.4);
}

.chat-window {
    display: none;
    position: fixed;
    bottom: 100px;
    left: 24px;
    width: 380px;
    height: 480px;
    background: var(--soft-white);
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    max-height: calc(100vh - 120px);
}

.chat-window.show {
    display: flex;
}

@keyframes chatSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-header {
    background: linear-gradient(135deg, var(--rich-black) 0%, #1a1a1a 100%);
    color: var(--soft-white);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.chat-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.chat-header span {
    font-weight: 400;
    font-size: 1rem;
    opacity: 0.95;
}

.chat-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--soft-white);
    font-size: 18px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.user-info-form {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    background: linear-gradient(180deg, var(--soft-white) 0%, #f8f8f8 100%);
    border-radius: 0 0 4px 16px;
}

.form-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--rich-black);
    text-align: center;
    opacity: 0.9;
}

.form-subtitle {
    font-size: 1rem;
    color: var(--rich-black);
    text-align: center;
    opacity: 0.7;
    margin-top: -0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: var(--soft-white);
    outline: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-family: 'Libertinus Mono', monospace;
}

.form-group input:focus {
    border-color: var(--chemical-green);
    box-shadow: 0 0 0 3px rgba(51, 135, 130, 0.1);
}

.form-group input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

#start-chat {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--chemical-green) 0%, #2a6b68 100%);
    color: var(--soft-white);
    border: none;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 400;
    font-family: 'Libertinus Mono', monospace;
    margin-top: 0.5rem;
}

#start-chat:hover {
    background: linear-gradient(135deg, var(--rich-black) 0%, #1a1a1a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#start-chat:active {
    transform: translateY(0);
}

.chat-interface {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--soft-white) 0%, #f8f8f8 100%);
    border-radius: 0 0 4px 16px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.5rem 120px 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(180deg, var(--soft-white) 0%, #f8f8f8 100%);
    height: 0;
    min-height: 0;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--chemical-green);
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-message {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    max-width: 85%;
    line-height: 1.4;
    position: relative;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-user {
    background: linear-gradient(135deg, var(--chemical-green) 0%, #2a6b68 100%);
    color: var(--soft-white);
    align-self: flex-end;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 2px 8px rgba(51, 135, 130, 0.3);
}

.chat-emil {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    color: var(--rich-black);
    align-self: flex-start;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-system {
    background: linear-gradient(135deg, var(--amber) 0%, #c9a832 100%);
    color: var(--rich-black);
    align-self: center;
    font-size: 0.8rem;
    opacity: 0.9;
    border-radius: 12px;
    text-align: center;
}

.chat-input-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    padding: 1.5rem;
    gap: 0.75rem;
    background: var(--soft-white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 4px 16px;
    z-index: 10;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

#chat-input {
    flex: 1;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: var(--soft-white);
    outline: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

#chat-input:focus {
    border-color: var(--chemical-green);
    box-shadow: 0 0 0 3px rgba(51, 135, 130, 0.1);
}

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

#chat-send {
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--rich-black) 0%, #1a1a1a 100%);
    color: var(--soft-white);
    border: none;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 400;
}

#chat-send:hover {
    background: linear-gradient(135deg, var(--chemical-green) 0%, #2a6b68 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(51, 135, 130, 0.3);
}

#chat-send:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .chat-widget {
        bottom: 16px;
        left: 16px;
    }
    
    .chat-window {
        position: fixed;
        bottom: 80px;
        left: 16px;
        right: 16px;
        width: calc(100vw - 32px);
        height: auto;
        max-height: calc(100vh - 100px);
        min-height: 300px;
    }
    
    .chat-toggle {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    
    .chat-messages {
        padding: 1rem 1rem 100px 1rem;
        gap: 0.75rem;
        max-height: none;
        height: 0;
        min-height: 0;
    }
    
    .chat-message {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    
    .chat-input-container {
        padding: 1rem;
        gap: 0.5rem;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10;
    }
    
    #chat-input {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    
    #chat-send {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}
