/* Modern Style for Personal Website */
/* Created by Gemini */

/* ------------------- */
/* 1. Global & Root   */
/* ------------------- */

/* ============================================ */
/* ===== Floating Chatbot Link Button Style ===== */
/* ============================================ */
/* --- Styling for Interactive Project Section --- */

.teams .filter-buttons {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.teams .filter-btn {
    background: #2c3e50; /* A color that fits a modern dark theme */
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.teams .filter-btn:hover,
.teams .filter-btn.active {
    background: crimson;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.teams .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.teams .project-card {
    background: rgba(255, 255, 255, 0.05); /* Subtle dark card background */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.teams .project-card:hover {
    transform: translateY(-8px);
    border-color: crimson;
}

.teams .project-card h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.teams .project-card p {
    font-size: 0.95rem;
    font-weight: 300;
    flex-grow: 1;
    margin-bottom: 20px;
    color: #ccc;
}

.teams .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.teams .tag {
    background-color: rgba(220, 20, 60, 0.2);
    color: crimson;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Class to hide elements for filtering */
.teams .project-card.hide {
    display: none;
}


.floating-chat-link {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999; /* Just below the scroll-up button if they overlap */
    background-color: crimson;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    text-decoration: none; /* Removes underline from the link */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.floating-chat-link:hover {
    color: white; /* Ensures icon color stays white on hover */
    background-color: #b81c3c;
    transform: scale(1.1);
}

/* 4.5. Home Updates/Notice Board */

/* ADD THIS NEW BLOCK */

/* 4.5 Updates Section */
.updates-section {
    background: var(--background-light);
}

.notice-board {
    max-height: 650px; /* Sets the maximum height. Adjust this value if you want it taller or shorter. */
    overflow-y: auto;  /* Adds a vertical scrollbar ONLY when the content is taller than max-height. */
    background: #fdfdfd; /* A slightly off-white background to contain the content. */
    border: 1px solid #e0e0e0; /* A subtle border to define the box. */
    border-radius: 8px; /* Rounds the corners. */
    padding: 10px 20px; /* Adds some space inside the box. */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Optional: a very subtle shadow for depth. */
}
/* This styles the list inside the notice board */
.notice-board #noticeList {
    padding-left: 20px; /* Ensures list bullets have space */
}


.notice-board ul {
    list-style: none;
    padding: 0;
}

/* --- Custom Scrollbar Styling (for a modern look) --- */

/* This targets the scrollbar itself */
.notice-board::-webkit-scrollbar {
    width: 8px;
}

/* This is the track (the background of the scrollbar) */
.notice-board::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* This is the handle (the part you drag) */
.notice-board::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* The handle on hover */
.notice-board::-webkit-scrollbar-thumb:hover {
    background: crimson; /* Matches your site's theme color on hover */
}

#noticeList li {
    background-color: var(--card-bg);
    margin-bottom: 12px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

#noticeList li:hover {
    transform: translateX(5px);
    background-color: #3a3a3a;
}

#noticeList li a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

#noticeList li a:hover {
    text-decoration: underline;
}

#noticeList li strong {
    color: var(--text-headings);
}
.notice-board ul {
    list-style: none;
    padding: 0;
}

#noticeList li {
    background-color: var(--card-bg);
    margin-bottom: 12px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

#noticeList li:hover {
    transform: translateX(5px);
    background-color: #3a3a3a;
}

#noticeList li a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

#noticeList li a:hover {
    text-decoration: underline;
}

:root {
    --primary-color: #00bfff; /* Deep Sky Blue */
    --primary-hover: #00aeee;
    --background-dark: #121212;
    --background-light: #1e1e1e;
    --card-bg: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-headings: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background-dark);
    font-family: var(--font-family);
    color: var(--text-primary);
}

/* ------------------- */
/* 2. Reusable Classes*/
/* ------------------- */
.max-width {
    max-width: 1300px;
    padding: 0 50px;
    margin: auto;
}

section {
    padding: 100px 0;
}

.title {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    color: var(--text-headings);
}

.title::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 3px;
    background: var(--primary-color);
}

/* ------------------- */
/* 3. Navbar          */
/* ------------------- */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.sticky {
    padding: 15px 0;
    background: rgba(29, 29, 37, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .max-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo a {
    color: var(--text-headings);
    font-size: 35px;
    font-weight: 600;
}

.navbar .logo a span {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar.sticky .logo a span {
    color: var(--text-headings);
}

.navbar .menu li {
    list-style: none;
    display: inline-block;
}

.navbar .menu li a {
    display: block;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;
}

.navbar .menu li a:hover {
    color: var(--primary-color);
}

.navbar.sticky .menu li a:hover {
    color: var(--primary-color);
}

/* Menu button styling */
.menu-btn {
    color: var(--text-headings);
    font-size: 23px;
    cursor: pointer;
    display: none;
}

.scroll-up-btn {
    position: fixed;
    height: 45px;
    width: 42px;
    background: var(--primary-color);
    right: 30px;
    bottom: 10px;
    text-align: center;
    line-height: 45px;
    color: #fff;
    z-index: 9999;
    font-size: 30px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.scroll-up-btn.show {
    bottom: 30px;
    opacity: 1;
    pointer-events: auto;
}

/* ------------------- */
/* 4. Home Section    */
/* ------------------- */
.home {
    display: flex;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-headings);
}

.home .max-width {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home .home-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.home .home-content {
    flex: 1;
    max-width: 600px;
}

.home .home-content .text-1 {
    font-size: 27px;
    color: var(--text-secondary);
}

.home .home-content .text-2 {
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
}

.home .home-content .text-3 {
    font-size: 40px;
    margin: 5px 0;
}

.home .home-content .text-3 span {
    color: var(--primary-color);
    font-weight: 500;
}

.home .home-content p {
    color: var(--text-primary);
    line-height: 1.6;
    margin: 20px 0;
}

.home .socials-container {
    margin: 20px 0;
}

.home .socials-container a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 15px;
    font-size: 20px;
    transition: all 0.3s ease;
}

.home .socials-container a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.home .home-image {
    flex-shrink: 0;
    margin-left: 50px;
}

.home .home-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 7px solid var(--primary-color);
}

/* ------------------- */
/* 5. CTA Buttons     */
/* ------------------- */

.cta-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 20px;
    padding: 12px 36px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    color: var(--primary-color);
    background: none;
}

.cta-btn-outline {
    display: inline-block;
    background: none;
    color: var(--primary-color);
    font-size: 18px;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.cta-btn-outline:hover {
    color: #fff;
    background: var(--primary-color);
}

/* ------------------- */
/* 6. About Section   */
/* ------------------- */
.about .about-content,
.skills .skills-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

.about .about-content .column,
.skills .skills-content .column {
    width: calc(50% - 30px);
}
.about .about-content .left p {
    text-align: justify;
    line-height: 1.7;
    margin-bottom: 15px;
}
.about .about-content .right h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.about .about-content .right .interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.about .about-content .right .interests-grid span {
    background: var(--card-bg);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    color: var(--text-primary);
}
.about .about-content .right p {
    line-height: 1.7;
}

/* ------------------- */
/* 7. Services/Research*/
/* ------------------- */
.services, .teams {
    background: var(--background-light);
}

.services .serv-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.services .serv-content .card {
    width: calc(33% - 20px);
    background: var(--card-bg);
    text-align: center;
    border-radius: 6px;
    padding: 25px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.services .serv-content .card:hover {
    background: var(--primary-color);
    transform: translateY(-10px);
}

.services .serv-content .card .box {
    transition: all 0.3s ease;
}

.services .serv-content .card:hover .box {
    transform: scale(1.05);
}

.services .serv-content .card i {
    font-size: 50px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.services .serv-content .card:hover i {
    color: #fff;
}

.services .serv-content .card .text {
    font-size: 25px;
    font-weight: 500;
    margin: 10px 0 7px 0;
}

.services .serv-content .card p {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.services .serv-content .card:hover p {
    color: #f2f2f2;
}


/* -------------------------- */
/* 8. Publication/Project Sec */
/* -------------------------- */
.publication-section, .teams {
    background: var(--background-light);
}

.publication-section:nth-of-type(odd) {
     background: var(--background-dark);
}

.publication-container {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
}
.publication-container h3 {
    color: var(--primary-color);
    font-size: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.publication-container ol {
    list-style-position: inside;
    padding-left: 20px;
}
.publication-container ol li {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-primary);
}
.publication-container ol li::marker {
    color: var(--primary-color);
    font-weight: bold;
}
.publication-container ol li a {
    color: var(--primary-color);
    font-weight: 500;
}
.publication-container ol li a:hover {
    text-decoration: underline;
}

/* ------------------- */
/* 9. Skills Section  */
/* ------------------- */
.skills .skills-content .column .text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.skills .skills-content .left p {
    text-align: justify;
    line-height: 1.7;
}

.skills .skills-content .right .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.skills .skills-content .right .skill-tags span {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.skills .skills-content .right .skill-tags span:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}


/* ------------------- */
/* 10. Contact Section */
/* ------------------- */
.contact {
    background: var(--background-light);
}
.contact .contact-content {
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact .contact-info {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.contact .contact-info .card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}
.contact .contact-info .card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.contact .contact-info .card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.contact .contact-info .card p {
    color: var(--text-secondary);
}
.contact .socials-contact {
    margin-top: 15px;
}
.contact .socials-contact a {
    font-size: 25px;
    color: var(--text-secondary);
    margin: 0 10px;
    transition: color 0.3s ease;
}
.contact .socials-contact a:hover {
    color: var(--primary-color);
}


/* ------------------- */
/* 11. Footer          */
/* ------------------- */
footer {
    background: var(--background-dark);
    padding: 20px 23px;
    color: #fff;
    text-align: center;
}

footer span a {
    color: var(--primary-color);
    text-decoration: none;
}

footer span a:hover {
    text-decoration: underline;
}

/* ------------------- */
/* 12. Chatbot Style   */
/* ------------------- */
#chat-container-2 {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-width: 90%;
    background-color: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}
#chat-header-2 {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#chat-header-2 h3 {
    font-size: 18px;
    margin: 0;
}
#chat-header-2 .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}