html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    color: rgb(255, 255, 255);
    background: black;
    position: relative;
    min-height: 200vh; /* Allows scrolling */
}

/* Starry background and animations */
.starry-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: twinkle 2s infinite alternate;
}
@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}
@keyframes moveStars {
    0% { transform: translate(0, 0); }
    100% { transform: translate(var(--x-move), var(--y-move)); }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgb(0, 0, 0);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}
.logo-container {
    display: inline-block;
}
.logo, .beta {
    display: inline-block;
    font-size: 24px;
    color: white;
    text-shadow: 0 0 15px rgba(255, 195, 130, 0.603), 
                 0 0 30px rgba(255, 149, 50, 0.77), 
                 0 0 45px rgba(255, 120, 30, 0.632);
}
.logo {
    font-weight: bold;
    margin-left: 60px;
}
.beta {
    font-style: oblique;
    font-size: 10px;
    color: #ffffff;
}
.menu {
    margin-right: 200px;
    list-style: none;
    display: inline-block;
    gap: 20px;
}
.menu li {
    display: inline;
    margin-left: 30px;
}
.menu li a {
    text-decoration: none;
    color: white;
    text-shadow: 0 0 15px rgba(255, 195, 130, 0.603), 
                 0 0 30px rgba(255, 149, 50, 0.77), 
                 0 0 45px rgba(255, 120, 30, 0.632);
    font-size: 16px;
    transition: 0.3s;
    font-weight: bold;
}
.menu li a:hover {
    color: #ffffff;
    font-weight: bold;
}

/* About section */
.about-content {
    margin-top: 90px;
    padding: 100px;
    display: flex;
}
.right-about-content img {
    width: 400px;
    height: 400px;
}
.txt1-about-content {
    font-weight: 900;
    font-size: 68px;
    color: rgb(255, 255, 255);
    margin-bottom: 0px;
    background: linear-gradient(90deg, #ff6a00, #ff416c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.txt2-about-content {
    font-weight: 900;
    font-size: 24px;
    background: linear-gradient(90deg, #d0b186d1, #dcdcdc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}
.txt3-about-content {
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(to bottom, #e5c7a0, #b08968);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
#project {
    scroll-margin-top: 100px;
}

/* Project sections */
.content-container {
    margin-top: 120px;
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 100%;
}
.project1-project-container,
.project2-project-container,
.project3-project-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.left-project1-project-container {
    width: 600px;
}
.right-project1-project-container {
    margin-top: 50px;
    padding: 20px;
    width: 800px;
}
.right-project1-project-container h2 {
    background: linear-gradient(90deg, #9dcbde, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.right-project1-project-container ul {
    font-weight: bold;
    font-size: 18px;
    background: linear-gradient(to bottom, #e5c7a0, #b08968);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.right-project1-project-container p {
    margin: 0;
    background: linear-gradient(90deg, #f79956, #ee0979);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.left-project2-project-container {
    margin-top: 40px;
    margin-left: 100px;
    width: 800px;
}
.left-project2-project-container ul {
    font-weight: bold;
    font-size: 18px;
    background: linear-gradient(to bottom, #e5c7a0, #b08968);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.left-project2-project-container p {
    margin: 0;
    background: linear-gradient(90deg, #f79956, #ee0979);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.right-project2-project-container {
    width: 500px;
}

/* Chat containers (for all projects) */
.project1-chat-container,
.project2-chat-container,
.project3-chat-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px 5px;
    border-radius: 8px;
    background-color: #000;
}
.project1-chat-history,
.project2-chat-history,
.project3-chat-history {
    height: 350px;
    overflow-y: auto;
    text-align: left;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}
.project1-chat-history {
    background: linear-gradient(45deg, #285f5c59, #13474b50);
}
.project2-chat-history {
    background: linear-gradient(45deg, #5f3f2862, #39350c50);
}
.project3-chat-history {
    background: linear-gradient(45deg, #4d5f2859, #60cf0550);
}
.project1-message,
.project2-message,
.project3-message {
    margin-bottom: 10px;
    padding: 8px;
}
.project1-user-message,
.project2-user-message,
.project3-user-message {
    border-radius: 15px 15px 0px 15px;
    align-self: flex-end;
    max-width: 60%;
    background-color: #ffffff42;
    text-align: left;
    color: rgb(0, 0, 0);
}
.project1-bot-message,
.project2-bot-message,
.project3-bot-message {
    border-radius: 15px 15px 15px 0px;
    align-self: flex-start;
    max-width: 60%;
    background-color: #09090964;
    text-align: left;
}

/* Input and Button */
input {
    width: 75%;
    padding: 10px;
    border: 1px solid #fff;
    background-color: #000;
    color: #fff;
    border-radius: 5px;
}
button {
    width: 70px;
    padding: 10px 15px;
    background-color: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}
button:hover {
    background-color: #ccc;
}

/* Contact */
.contact-container {
    margin-top: 100px;
    width: 97%;
    padding: 20px;
}

/* =====================================
   Responsive styles for mobile
   ===================================== */
@media only screen and (max-width: 768px) {
    button {
        width: 70px;
    }
    .navbar {
        width: 100%;
        /* Allow wrapping if space is constrained */
        flex-wrap: wrap;
        padding: 10px 20px;
    }
    .logo {
        /* Remove large left margin on small screens */
        margin-left: 0;
        margin-bottom: 5px;
    }
    .menu {
        /* Remove the large margin-right */
        margin-right: 60px;
        /* background-color: white; */
        /* Keep menu items inline if possible, or wrap if needed */
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        /* Move it to the right if you want it at the end */
        margin-left: auto;
    }
    .menu li {
        /* Let them wrap more gracefully */
        display: inline-block;
        margin-left: 0;
    }
    .menu li a {
        font-size: 14px; /* Slightly smaller for mobile */
    }
    button {
        width: 65px;
    }
    /* About section */
    .about-content {
        flex-direction: column;
        padding: 20px;
    }
    .right-about-content img {
        width: 100%;
        height: auto;
        margin-top: 20px;
    }

    /* Project containers */
    .content-container {
        flex-direction: column;
        margin-top: 60px;
        gap: 20px;
    }
    .left-project1-project-container,
    .right-project1-project-container,
    .left-project2-project-container,
    .right-project2-project-container,
    .left-project3-project-container,
    .right-project3-project-container {
        width: 100%;
        margin: 0;
        padding: 0 10px;
    }
    .project1-chat-history,
    .project2-chat-history,
    .project3-chat-history {
        height: 300px;
    }
}
