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

*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body{
    width: 100%;
    /* overflow: hidden; */ /* Removed to allow scrolling */
}

nav{
    width: 100%;
    height: 10vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .logo h2 span{
    color: orangered;
}

nav .link ul{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

nav .link ul li a{
    position: relative;
    text-decoration: none;
    color: black;
    font-weight: 600;
}

nav .link ul li a::before{
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 3.5px;
    border-radius: 20px;
    background-color: orangered;
    width: 100%;
    scale: 0;
    transition: 0.2s ease-in-out;
}

nav .link ul li a:hover::before{
    scale: 1;
}

.main{
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0 5%;
}

.main .men{
    width: 400px;
    transition: 1s ease;
}

.main .men:hover{
    transform: scale(1.1);
}

.main .main-detail{
    text-align: center;
    color: black;
}

.main .main-detail p{
    font-size: 20px;
    font-weight: 700;
}

.main .main-detail h1{
    font-size: clamp(40px, 5px + 5vw, 70px);
    color: orangered;
    text-shadow: 0 0 2px orangered;
}

.main .main-detail h4{
    font-size: 30px;
    margin-bottom: 20px;
}

.main .btn button, .btn a button{
    padding: 8px 20px;
    border-radius: 30px;
    margin-right: 1rem;
    margin-bottom: 30px;
    border: 2px solid black;
    outline: none;
    cursor: pointer;
    transition: 0.5s linear;
}

.main .btn .btn-1{
    background-color: white;
    color: black;
    transition: 0.3s linear;
}

.main .btn .btn-2{
    background-color: black;
    color: white;
    transition: 0.3s linear;
}

.main .btn .btn-1:hover{
    background-color: black;
    color: white;
    box-shadow: 0 0 5px 2px black;
}

.main .btn .btn-2:hover{
    background-color: white;
    color: black;
    box-shadow: 0 0 5px 2px black;
}

.social a{
    text-decoration: none;
}

.social i{
    color: black;
    font-size: 40px;
    border-radius: 50%;
    margin: 0 14px;
    cursor: pointer;
    transition: 0.3s linear;
}

.social i:hover{
    color: white;
    background-color: black;
    box-shadow: 0 0 10px 5px orangered;
}

/* New Section Styles */
.section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

#about {
    background-color: white;
}

.section-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.section-title {
    font-size: 36px;
    color: black;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: orangered;
    border-radius: 2px;
}

.section-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

/* Education Section */
.education-item {
    margin-bottom: 30px;
    text-align: left;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.education-item h3 {
    color: orangered;
    font-size: 22px;
}

.education-item p {
    font-size: 16px;
    color: #555;
}

/* Project Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.project-card .card-body {
    padding: 25px;
}

.project-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: black;
}

.project-description {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.project-card .card-footer {
    padding: 0 25px 25px;
    margin-top: auto;
}

/* Experience Section */
.experience-card {
    margin-bottom: 30px;
    text-align: left;
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.experience-card h3 {
    color: orangered;
    font-size: 22px;
    margin-bottom: 5px;
}

.experience-card p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.experience-card ul {
    list-style-position: inside;
    padding-left: 20px;
}

.experience-card ul li {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tags-container .tag {
    background-color: #e2f5ea; /* Light green */
    color: #28a745; /* Green */
}

/* Research Section */
#research {
    background-color: #f0f2f5; /* Light gray background to match the image */
}

.research-category {
    margin-bottom: 40px;
    text-align: left;
}

.research-category .category-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.research-category .category-title i {
    font-size: 32px;
    margin-right: 10px;
    color: orangered;
}

.publication-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.publication-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.paper-type {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
}

.paper-type i {
    margin-right: 5px;
    font-size: 18px;
    color: #888;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

.status-badge.published {
    background-color: #28a745; /* Green */
}

.status-badge.under-review {
    background-color: #ffc107; /* Yellow/Orange */
    color: #333;
}

.status-badge.accepted {
    background-color: #007bff; /* Blue */
}

.card-body {
    margin-bottom: 15px;
}

.publication-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.authors {
    font-size: 15px;
    color: #555;
    margin-bottom: 5px;
}

.publication-venue {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.publication-description {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: 15px;
}

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

.tag {
    background-color: #e0eafc; /* Light blue */
    color: #3b73e8; /* Darker blue */
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.card-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px; /* For mobile stacking */
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #f0f2f5;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

.btn-icon:hover {
    background-color: orangered;
    color: white;
}

.btn-icon i {
    margin-right: 5px;
    font-size: 16px;
}

/* Remove old research styles */
.research-subsection {
    display: none; /* Hide old research subsections */
}

/* Responsive adjustments for research section */
@media (max-width: 768px) {
    .research-category .category-title {
        font-size: 24px;
    }

    .publication-card {
        padding: 20px;
    }

    .publication-title {
        font-size: 18px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-badge {
        margin-top: 10px;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-buttons {
        margin-top: 15px;
    }
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    text-align: center;
}

.skill-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-item:hover {
    transform: translateY(-8px);
}

.skill-item i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: #333;
}

.skill-item span {
    font-size: 15px;
    font-weight: 500;
    color: #555;
}

/* Change specific icon colors to their official brand colors */
.skill-item .devicon-python-plain { color: #3776AB; }
.skill-item .devicon-java-plain { color: #007396; }
.skill-item .devicon-r-plain { color: #276DC3; }
.skill-item .devicon-tensorflow-original { color: #FF6F00; }
.skill-item .devicon-selenium-original { color: #43B02A; }
.skill-item .devicon-amazonwebservices-original { color: #FF9900; }
.skill-item .devicon-docker-plain { color: #2496ED; }
.skill-item .devicon-jenkins-line { color: #D24939; }
.skill-item .devicon-latex-original { color: #008080; }
.skill-item .devicon-qgis-plain {color: #589632;}

/* Contact Section */
.contact-info {
    font-size: 18px;
    font-weight: 500;
    margin-top: 20px;
}


@media (max-width:768px) {
    nav .link{
        display: none;
    }

    .main{
        flex-direction: column-reverse;
        padding: 40px 5%;
        text-align: center;
        min-height: auto;
    }
    
    .main .main-detail{
        margin-top: 2rem;
    }

    .img-term{
        display: flex;
        justify-content: center;
    }

    .main .men{
        width: 80%;
        max-width: 300px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 28px;
    }
}

