/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Outfit', sans-serif;
    background-color: #0b0f19;
    color: #cbd5e0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-image: radial-gradient(circle, #1a1a1a, #121212);
    background-size: cover;
}

/* Ensure content inside is left-aligned */
#content {
    text-align: left;
    width: 60%;  /* Adjust as needed for your layout */
    max-width: 800px;  /* Adjust as needed for your layout */
}

header {
    text-align: center;
    padding: 20px;
    background: rgba(30, 30, 30, 0.9);
    width: 100%;
    border-bottom: 2px solid #00ffcc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 40px;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 3em;
    color: #00ffcc;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5), 0 0 10px rgba(0, 255, 204, 0.3);
    animation: glow 1s ease-in-out infinite alternate;
}

header p {
    margin: 5px 0;
    font-size: 1.2em;
}

a {
    color: #00ffcc;
    text-decoration: none;
    margin: 0 10px;
}

a:hover {
    text-decoration: underline;
    color: #00e6b3;
}

nav {
    padding: 10px 0;
    width: 100%;
    background: rgba(30, 30, 30, 0.9);
    border-bottom: 2px solid #00ffcc;
    text-align: left;
    position: fixed;
    top: 0;
    z-index: 1001;
}

nav a {
    color: #00ffcc;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.2em;
}

nav a:hover {
    color: #00e6b3;
}

main {
    padding: 100px 20px 20px 20px;
    width: 80%;
    max-width: 1000px;
    text-align: center;
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid #00ffcc;
    border-radius: 10px;
    box-shadow: 0 0 20px #00ffcc;
    margin-top: 100px;
    display: flex;
    justify-content: center;
}

section h2 {
    font-size: 2em;
    color: #00ffcc;
    text-shadow: 0 0 5px #00ffcc;
    margin-bottom: 20px;
}

.project {
    background: #1a1a1a;
    padding: 20px;
    border: 2px solid #00ffcc;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px #00ffcc;
    text-align: left;
}

.project h3 {
    margin-top: 0;
    color: #00ffcc;
}

#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #00ffcc;
    color: #121212;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    z-index: 1000;
}

#chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 500px;
    width: 90%;
    height: 600px; /* Increased height */
    background: #333;
    border: 2px solid #00ffcc;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 20px #00ffcc;
    display: none;
    flex-direction: column;
    z-index: 1000;
    animation: genie-open 0.5s ease-out;
}

#chat-container.hidden {
    animation: genie-close 0.5s ease-out;
}

#chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #1e1e1e;
    border-bottom: 2px solid #00ffcc;
    border-radius: 10px 10px 0 0;
}

#chat-header .status {
    display: flex;
    align-items: center;
}

#chat-header .status .profile-icon {
    width: 40px;
    height: 40px;
    background: #00ffcc;
    color: #121212;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    position: relative;
}

#chat-header .status .profile-icon .online {
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
    position: absolute;
    bottom: -2px; /* Moved lower */
    right: -2px; /* Moved lower */
    border: 2px solid #00ffcc;
}

#chat-header .status .info {
    margin-left: 10px;
    color: #00ffcc;
}

#chat-header .status .info .name {
    font-size: 1.2em;
    font-weight: bold;
}

#chat-header .status .info .online-status {
    font-size: 0.9em;
    color: #00ff00;
}

#chat-box {
    height: 450px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 10px;
    color: #fff;
    background: #1e1e1e;
    display: flex;
    flex-direction: column;
}

.options-container {
    margin-bottom: 20px; /* Added margin at the bottom */
    width: 100%; /* Ensure the container takes full width */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the options within the container */
}


.user-message {
    align-self: flex-end;
    background-color: #00ffcc;
    color: #121212;
    padding: 10px;
    border-radius: 10px;
    margin: 5px 0;
    max-width: 80%;
    font-size: 1.2em;
    text-align: right;
    position: relative;
}

.user-message:before {
    content: "User";
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 0.8em;
    color: #ccc;
}

.bot-message {
    align-self: flex-start;
    background-color: #1e1e1e;
    color: #00ffcc;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0 10px 0;
    max-width: 90%;
    font-size: 1.1em;
    text-align: left;
    border: 2px solid #00ffcc;
    position: relative;
    line-height: 1.5;
    word-wrap: break-word;
}

.bot-message strong {
    color: #00e6b3;
}

.bot-message a {
    color: #00e6b3;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    margin: 0;
}

.bot-message a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.project-card a, .cv-item a, .summary-text a {
    margin: 0;
}

.bot-message ul {
    list-style-type: none;
    padding-left: 0;
}

.bot-message ul li::before {
    content: "•";
    color: #00e6b3;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.bot-message:before {
    content: "DeveshBot";
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 0.8em;
    color: #ccc;
}



#chat-close {
    background: none;
    border: none;
    color: #00ffcc;
    font-size: 24px;
    cursor: pointer;
}

#user-input-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#user-input {
    width: 70%; /* Adjusted width */
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #00ffcc;
    background: #0d0d0d;
    color: #00ffcc;
    margin-right: 10px;
    font-size: 1.2em;
}

button {
    padding: 10px 20px;
    border: none;
    background: #00ffcc;
    color: #0d0d0d;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 10px #00ffcc;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.2em;
}

button:hover {
    background: #00e6b3;
    box-shadow: 0 0 15px #00e6b3;
}

.chat-option {
    padding: 5px 10px;
    background: #1a1a1a;
    color: #00ffcc;
    border: 2px solid #00ffcc;
    border-radius: 10px;
    margin: 5px auto; /* Center the option */
    cursor: pointer;
    text-align: center;
    font-size: 1em;
    box-shadow: 0 0 10px #00ffcc;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    width: 80%; /* Set a specific width */
}

.chat-option:hover {
    background: #00e6b3;
    color: #121212;
    box-shadow: 0 0 15px #00e6b3;
}



@keyframes glow {
    from {
        text-shadow: 0 0 5px rgba(0, 255, 204, 0.5), 0 0 10px rgba(0, 255, 204, 0.3);
    }
    to {
        text-shadow: 0 0 15px rgba(0, 230, 179, 0.7), 0 0 20px rgba(0, 230, 179, 0.6);
    }
}
.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #ffffff;
    animation: blink 1s step-start 0s infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes genie-open {
    from {
        transform: scale(0);
        transform-origin: bottom right;
    }
    to {
        transform: scale(1);
        transform-origin: bottom right;
    }
}

@keyframes genie-close {
    from {
        transform: scale(1);
        transform-origin: bottom right;
    }
    to {
        transform: scale(0);
        transform-origin: bottom right;
    }
}

/* Reduce the glow effect on the title */
.title {
    font-size: 2.5em;
    color: #00ffcc;
    text-shadow: 0 0 5px #00ffcc;
    animation: glow 1s ease-in-out infinite alternate;
    text-align: center;
    margin-top: 20px;
}

/* Reduce the size of the button */
button {
    padding: 10px 20px;
    border: none;
    background: #00ffcc;
    color: #0d0d0d;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 10px #00ffcc;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1em;
}

button:hover {
    background: #00e6b3;
    box-shadow: 0 0 15px #00e6b3;
}

/* Center the image container and adjust the input container */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px; /* Adjust height as needed */
    width: 300px; /* Adjust width as needed */
    border: 2px solid #00ffcc;
    border-radius: 10px;
    margin: 20px auto;
    box-shadow: 0 0 20px #00ffcc;
    position: relative;
}

.image-placeholder,
.image-container img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: auto;
}

/* Add loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #00ffcc; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

/* Button loading state */
button[disabled] {
    background: #00e6b3;
    box-shadow: 0 0 10px #00e6b3;
    cursor: not-allowed;
}

.input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#prompt {
    width: 70%; /* Adjust width */
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #00ffcc;
    background: #0d0d0d;
    color: #00ffcc;
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* Adjust main layout */
main {
    padding: 120px 30px 40px 30px;
    width: 90%;
    max-width: 900px;
    text-align: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 204, 0.25);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.15);
    margin-top: 120px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Modern CV Rendering styles */
.cv-section {
    width: 100%;
    margin-bottom: 45px;
    text-align: left;
}

.cv-section h2 {
    font-size: 2.1em;
    color: #00ffcc;
    border-bottom: 2px solid rgba(0, 255, 204, 0.2);
    padding-bottom: 10px;
    margin-bottom: 28px;
    font-weight: 600;
}

.summary-text {
    font-size: 1.15em;
    line-height: 1.75;
    color: #e2e8f0;
}

.cv-item {
    background: rgba(30, 41, 59, 0.25);
    border: 1px solid rgba(0, 255, 204, 0.15);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cv-item:hover {
    border-color: rgba(0, 255, 204, 0.5);
    box-shadow: 0 8px 30px rgba(0, 255, 204, 0.15);
    transform: translateY(-2px);
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.cv-item-title {
    font-size: 1.45em;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
}

.cv-item-dates {
    font-size: 0.9em;
    color: #00ffcc;
    font-weight: 500;
    background: rgba(0, 255, 204, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.cv-item-subtitle {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 1.05em;
    color: #94a3b8;
    margin-bottom: 16px;
    align-items: center;
}

.company-name, .institution-name {
    color: #00ffcc;
    font-weight: 500;
}

.location-badge, .grade-badge, .type-badge {
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 6px;
    color: #cbd5e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-item-highlights {
    padding-left: 20px;
    margin: 0;
}

.cv-item-highlights li {
    font-size: 1.05em;
    line-height: 1.65;
    color: #cbd5e0;
    margin-bottom: 10px;
}

.cv-item-details {
    font-size: 1.05em;
    line-height: 1.6;
    color: #cbd5e0;
    margin-top: 10px;
}

/* Skills Section */
.skills-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.skill-category {
    background: rgba(30, 41, 59, 0.2);
    border: 1px solid rgba(0, 255, 204, 0.15);
    border-radius: 12px;
    padding: 22px;
}

.skill-category h4 {
    margin: 0 0 15px 0;
    font-size: 1.15em;
    color: #ffffff;
    border-left: 3px solid #00ffcc;
    padding-left: 10px;
    letter-spacing: 0.05em;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chip {
    background: rgba(0, 255, 204, 0.05);
    border: 1px solid rgba(0, 255, 204, 0.2);
    color: #00ffcc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.88em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.skill-chip:hover {
    background: #00ffcc;
    color: #0d1117;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 204, 0.3);
}

/* Achievements & Certs List */
.achievements-certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    width: 100%;
}

.certs-list, .achievements-list, .volunteering-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.certs-list li, .achievements-list li, .volunteering-list li {
    font-size: 1.05em;
    line-height: 1.6;
    color: #cbd5e0;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.2);
    border: 1px solid rgba(0, 255, 204, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.certs-list li i, .achievements-list li i, .volunteering-list li i {
    margin-right: 12px;
    font-size: 1.1em;
    color: #00ffcc;
}

/* Projects dynamic tab UI */
.projects-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.tab-button {
    background: transparent;
    border: 1px solid rgba(0, 255, 204, 0.4);
    color: #00ffcc;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: rgba(0, 255, 204, 0.1);
    border-color: #00ffcc;
}

.tab-button.active {
    background: #00ffcc;
    color: #0d1117;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
    border-color: #00ffcc;
}

.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    width: 100%;
}

.project-card {
    background: rgba(30, 41, 59, 0.25);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    border-color: rgba(0, 255, 204, 0.6);
    box-shadow: 0 8px 25px rgba(0, 255, 204, 0.15);
    transform: translateY(-3px);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.project-card h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.project-card h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
    margin: 0;
}

.project-card h3 a:hover {
    color: #00ffcc;
    text-decoration: none;
}

.project-card p {
    font-size: 1em;
    color: #cbd5e0;
    line-height: 1.5;
    margin: 0 0 18px 0;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.tech-tag {
    background: rgba(0, 255, 204, 0.05);
    border: 1px solid rgba(0, 255, 204, 0.15);
    color: #a0fce8;
    font-size: 0.76em;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.badge-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.project-badge {
    font-size: 0.72em;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.source-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

a .status-badge {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

a:hover .status-badge {
    background: rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* Loading layout */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    width: 100%;
}

.loading-container p {
    margin-top: 15px;
    color: #a0aec0;
    font-size: 1.1em;
}

/* Card reveal animation for projects page */
.card-hidden {
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
}

.card-reveal {
    animation: cardSlideIn 0.35s ease-out forwards;
}

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