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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: "Poppins", sans-serif;
}

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --main-color: #3498db; /* Blue theme */
    --white-color: #fff;
    --disabled-color: #fff3;
}

html {
    font-size: 62.5%;
}
body {
    color: var(--white-color);
    background: var(--bg-color);
    font-family: 'Inter', sans-serif;
    text-align: justify;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
}
header.active {
    animation: show-header 0.5s linear forwards;
    animation-delay: 0.2s;
    -webkit-animation: show-header 0.5s linear forwards;
}

@keyframes show-header {
    100% {
        visibility: visible;
        opacity: 1;
    }
}

.logo {
    font-size: 3rem;
    color: var(--white-color);
    font-weight: 700;
}

nav a {
    font-size: 1.5rem;
    /* make the nav content in the center of the nav */
    display: inline-flex;
    align-items: center;
    color: var(--white-color);
    font-weight: 500;
    margin-left: 1rem;
    margin-right: 1rem;
    transition: .5s;
}

nav a:hover,
nav a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 4rem;
    display: none;
}
.bars-box {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
}

.bars-box .bar {
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    animation: hide-bars .5s ease-in-out both;
    animation-delay: calc(.1s * var(--i));
}

@keyframes hide-bars {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

.bars-box.active .bar {
    animation: show-bars .5s ease-in-out both;
    animation-delay: calc(.1s * var(--i));
}

@keyframes show-bars {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

section {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10rem 9% 2rem;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
}

section.active {
    animation: show-content .5s linear forwards;
    animation-delay: 0.6s;
    -webkit-animation: show-content .5s linear forwards;
}

@keyframes show-content {
    100% {
        visibility: visible;
        opacity: 1;
        overflow: auto;
    }
}

/* General heading style */
.heading {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.heading span {
    color: var(--main-color);
}

/* Education and Experience container styles */
.education-container, .research-grid{
    display: grid;
    grid-template-columns: 1fr; /* Single column to stack vertically */
    gap: 2rem;
}

.education-card, .research-card {
    display: flex;
    background: var(--second-bg-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: background 0.3s, transform 0.3s;
}
.education-card:hover, .research-card:hover {
    background: #1a5276; /* Darker blue on hover for experience */
    transform: translateY(-5px);
}
.education-card img, .research-card img {
    width: 40%;
    object-fit: cover;
}
.education-card .content , .research-card .content {
    padding: 1.5rem;
    flex: 1;
}
.education-card h3, .research-card h3 {
    font-size: 2rem;
}
.education-card p, .research-card p {
    font-size: 1.4rem;
}
.education-card ul, .research-card ul {
    font-size: 1.4rem;
    padding-left: 2rem;
}
.subjects {
    display: flex;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.subjects button {
    display: flex;
    align-items: center;
    background: transparent;
    border: 0.1rem solid var(--main-color);
    color: var(--main-color);
    padding: 0.5rem 1rem;
    margin: 0.5rem 0.5rem 0 0;
    border-radius: 2rem;
    font-size: 1.2rem;
    transition: background 0.3s, color 0.3s;
}
.subjects button:hover {
    background: var(--main-color);
    color: var(--bg-color);
}
.skill-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

/* Skills section styles */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.skill-category {
    background: var(--second-bg-color);
    padding: 1.5rem;
    border-radius: 1rem;
}
.skill-category h4 {
    font-size: 1.8rem;
}

/* Project and Research Project styles */
.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.project-card{
    background: var(--second-bg-color);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}
.project-card img{
    width: 100%;
    height: 200px; /* Unified height */
    object-fit: cover;
    border-radius: 0.5rem;
}
.project-card h3 {
    font-size: 2rem;
}
.project-card p {
    font-size: 1.4rem;
}
.links a {
    margin: 0 1rem;
    font-size: 2rem;
    color: var(--main-color);
}

.education-card,
.experience-card,
.project-card,
.research-card,
.workshop-card,
.activity-card {
    background: var(--second-bg-color);
    border: 1px solid var(--second-bg-color);
    border-radius: 1rem;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    transition: .3s;
}


.education-card:hover,
.experience-card:hover,
.project-card:hover,
.research-card:hover,
.workshop-card:hover,
.activity-card:hover {
    border-color: var(--main-color);
    transform: scale(1.01);
}


.education-card .info h3,
.experience-card .info h3,
.workshop-card .info h3,
.project-card h3,
.research-card h3,
.activity-card h3 {
    font-size: 2.4rem;
    margin-bottom: .5rem;
}

.edu-date,
.exp-date,
.workshop-date,
.activity-date,
.research-date {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--disabled-color);
}

.edu-tags,
.exp-tags,
.project-tags,
.research-tags {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.project-grid,
/* .research-grid, */
.workshop-list,
.activity-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

/* .research-grid img{
    width: 40%;
    object-fit: cover;
} */

.project-card,
.research-card {
    background: var(--second-bg-color);
    border: 1px solid var(--second-bg-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: .3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
}

/* .project-card:hover,
.research-card:hover {
    border-color: var(--main-color);
    transform: scale(1.01);
} */

.project-card .links,
.research-card .links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.project-card .links a,
.research-card .links a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.4rem;
    color: var(--white-color);
    border: 1px solid var(--main-color);
    padding: .6rem 1.2rem;
    border-radius: 1.5rem;
    transition: .3s;
}

.project-card .links a:hover,
.research-card .links a:hover {
    background: var(--main-color);
    color: var(--bg-color);
}


/* Research Interest styles */
.interest-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.interest-card {
    display: flex;
    align-items: center;
    background: var(--second-bg-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: background 0.3s, transform 0.3s;
}
.interest-card:hover {
    background: #1a5276;
    transform: translateY(-5px);
}
.interest-card .interest-icon {
    width: 30px;
    height: 30px;
    margin-right: 1rem;
}
.interest-card h3 {
    font-size: 1.8rem;
    color: var(--white-color);
}

/* Conferences and Extracurricular card adjustments */
.education-card .buttons, .research-card .buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem; /* Added space between buttons */
    padding: 1.5rem;
    
}

/* Button styles */
.btn {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 1rem 3rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    font-weight: 500;
    transition: .5s;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    box-shadow: none;
}


.btn:hover {
    background: transparent;
    color: var(--main-color);
    box-shadow: none;
}
.home {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.home-detail h1 {
    font-size: clamp(3.5rem, 10vw, 5.5rem);
}
.home-detail h2 {
    display: inline-block;
    font-size: 3.2rem;
    margin-top: -1rem;
}
.home-detail h2 span {
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: .07rem var(--main-color);
    animation: display-text 1s linear infinite;
    animation-delay: calc(-4s * var(--i));
}

@keyframes display-text {
    25% {
        display: none;
    }
}


.home-detail h2 span::before {
    content: attr(data-text);
    position: absolute;
    width: 0;
    border-right: .2rem solid var(--main-color);
    color: var(--main-color);
    white-space: nowrap;
    overflow: hidden;
    animation: fill-text 4s linear infinite;
}

@keyframes fill-text {
    10%, 100% {
        width: 0;
    }
    70%, 90% {
        width: 100%;
    }
}

/* === VisualMinds slider – hard override for images === */

.project-slider {
  position: relative;
  width: 500px;
  height: 465px;
  overflow: hidden;
  border-radius: 10px;
  flex-shrink: 0;
  background: #06263b;    /* nice dark background behind images */
}

/* Make sure the generic .education-card img rule doesn't break this */
.education-card .project-slider img.project-slide {
  position: absolute;
  inset: 0;               /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  object-fit: fill;    /* see the *whole* screenshot without cropping */
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

/* Only one visible at a time */
.education-card .project-slider img.project-slide.active {
  opacity: 1;
}

/* Arrows stay centered on the slider */
.project-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: hsl(221, 95%, 50%);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.project-arrow-left {
  left: 10px;
}

.project-arrow-right {
  right: 10px;
}

.project-arrow i {
  font-size: 2rem;
}

.project-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Card layout: slider left, content right */
.education-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Mobile: stack slider above text */
@media (max-width: 768px) {
  .education-card {
    flex-direction: column;
    align-items: center;
  }

  .project-slider {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

.home-detail p {
    font-size: 1.6rem;
    margin: 1rem 0 2.5rem;
}

.home-detail .btn-sci {
    display: flex;
    align-items: center;
}
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    font-weight: 500;
    transition: .5s;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    box-shadow: none;
}
.home-detail .btn-sci .sci {
    margin-left: 2rem;
}

.home-detail .btn-sci .sci a {
    display: inline-flex;
    padding: .8rem;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 0 .8rem;
}

.home-detail .btn-sci .sci a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}
.home-img .img-box {
    position: relative;
    width: 32vw;
    height: 32vw;
    border-radius: 50%;
    padding: .5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.home-img .img-box::before,
.home-img .img-box::after {
    content: '';
    position: absolute;
    width: 50rem;
    height: 50rem;
    background: conic-gradient(transparent, transparent, transparent, var(--main-color));
    transform: rotate(0deg);
    animation: rotate-border 10s linear infinite;
}

.home-img .img-box::after {
    animation-delay: -5s;
}

@keyframes rotate-border {
    100% {
        transform: rotate(360deg);
    }
}

/* ===== Graduation Project Layout ===== */

.Graduation-Project {
  display: block;
}

.gp-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.gp-title {
  font-size: 3.2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.gp-hero-image,
.gp-abstract-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 0 auto 0.8rem auto;
}

/* Figure captions: Times New Roman, italic, centered, small */
.figure-caption {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 0.9rem; /* approx 9pt visually */
  text-align: center;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Buttons row under the title */
.gp-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.gp-buttons .btn i {
  margin-right: 0.5rem;
}

/* Generic subsection wrapper */
.gp-section {
  margin-top: 3rem;
}

.gp-subheading {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* Any paragraph in this section should be justified */
.Graduation-Project p {
  font-size: 1.6rem;
  line-height: 1.8;
  text-align: justify;
}

  /* ===== Authors Styling ===== */

.gp-authors,
.gp-affiliations {
  width: 100%;
  text-align: center;          /* Perfect centering */
  display: flex;
  justify-content: center;
  margin: 0.4rem 0;
  line-height: 1.6;
}

.gp-authors a {
  color: var(--main-color);    /* Same color as your theme links */
  text-decoration: none;
  font-weight: 600;
}

.gp-authors a:hover {
  text-decoration: underline;  /* Professional academic-style hover */
}

.gp-affiliations {
  font-size: 1.4rem;
  color: #ddd;
}

.gp-authors sup,
.gp-affiliations sup {
  font-size: 0.75em;
  margin-left: 2px;
}

/* Red note about code availability */
.gp-note-code {
  font-size: 4rem;
  color: #ff4d4d;
  font-weight: 600;
  text-align: center;         /* override global justify */
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Abstract paragraph: Times New Roman, justified */
.gp-abstract-text {
  font-family: "Times New Roman", Times, serif;
}

/* Keywords under abstract */
.gp-keywords {
  margin-top: 1rem;
  }

/* Methodology collapsible cards */
.gp-method-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.method-card {
  background: var(--second-bg-color);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
}

/* Flex layout in summary so arrow + icon + title + tag line up */
.method-card summary {
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Arrow: initially right, on the left of the text, pointing to the name */
.method-card summary::before {
  content: "▶";
  margin-right: 0.4rem;
  font-size: 1.4rem;
  transition: transform 0.2s;
}

/* Remove the global ▼ / ▲ arrow on these specific cards */
.method-card summary::after {
  content: none !important;
}

/* When the card is open, arrow points down */
.method-card[open] summary::before {
  content: "▼";
}

/* Thumbnail image beside model name */
.method-thumb {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Hide the image whenever the details is open */
.method-card[open] .method-thumb {
  display: none;
}

/* Contribution pill */
.contribution-tag {
  margin-left: auto;
  font-size: 1.3rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

/* Inner content styling */
.method-card .method-content {
  margin-top: 1rem;
  font-size: 1.5rem;
  line-height: 1.8;
}

/* Equations: centered, Times New Roman, italic-style */
.equation {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  text-align: center;
  margin: 1rem 0 1.5rem 0;
}

/* Tables inside models */
.gp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem 0;
  font-size: 1.4rem;
  align-self: center;
  display:table;
  justify-content: center;
}

.gp-table th,
.gp-table td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.gp-table th {
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
}

/* Figures inside methodology */
.method-figure {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.8rem;
  margin: 1rem auto 0.5rem auto;
}

/* Demo video */
.gp-video-wrapper {
  margin-top: 1rem;
}

.gp-video {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .gp-wrapper {
    max-width: 100%;
  }

  .gp-title {
    font-size: 2.5rem;
  }

  .gp-subheading {
    font-size: 2.1rem;
  }

  .gp-buttons {
    gap: 0.8rem;
  }

  .contribution-tag {
    font-size: 1.1rem;
  }
}

.home-img .img-box .img-item {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    border-radius: 50%;
    border: .01rem solid var(--bg-color);
    display: flex;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.home-img .img-box .img-item img {
    position: absolute;
    /* top: 3rem; */
    display: block;
    width:100%;
    object-fit: cover;
    mix-blend-mode: lighten;
}
.heading {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.heading span {
    color: var(--main-color);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
}
.services-container .services-box {
    padding: 3rem 2.5rem;
    background: var(--second-bg-color);
    border: .2rem solid var(--second-bg-color);
    border-radius: 1rem;
    transition: .5s;
}

.services-container .services-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}


.services-box .icon {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.services-box .icon i {
    font-size: 4.5rem;
    transition: .5s;
}

.services-box:hover .icon :not(a i) {
    color: var(--main-color);
}

.services-box .icon a {
    display: inline-flex;
    background: var(--white-color);
    border-radius: 50%;
    padding: 1rem;
}

.services-box .icon a i {
    font-size: 3rem;
    color: var(--bg-color);
    transform: rotate(225deg);
} 
.services-box .icon a:hover i {
    transform: rotate(180deg);
}

.services-box h3 {
    font-size: 3rem;
    margin: .5rem 0 2rem;
    transition: .5s;
}

.services-box:hover h3 {
    color: var(--main-color);
}
.services-box p {
    font-size: 1.6rem;
}
.resume-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
}

.resume-box h2 {
    font-size: 4.5rem;
}

.resume-box p {
    font-size: 1.6rem;
}

.resume-box .desc {
    margin: 2rem 0 2.5rem;
}
.resume-box .resume-btn {
    width: 100%;
    height: 5.3rem;
    background: var(--second-bg-color);
    border: .2rem solid var(--second-bg-color);
    font-size: 1.6rem;
    color: var(--white-color);
    font-weight: 500; 
    margin-bottom: 2rem;
    border-radius: .8rem;
    cursor: pointer;
}

.resume-box .resume-btn.active {
    border-color: var(--main-color);
    color: var(--main-color);
}

.resume-detail {
    display: none;
}
.resume-detail.active {
    display: block;
}
.resume-box .heading {
    font-size: 3.5rem;
    text-align: left;
}

.resume-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
    height: 45rem;
    overflow: auto;
}

.resume-list::-webkit-scrollbar {
    width: .7rem;
}

.resume-list::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 1rem;
}

.resume-list:hover::-webkit-scrollbar-thumb {
    background: var(--main-color);
}


.resume-list .resume-item {
    background: var(--second-bg-color);
    border-radius: .8rem;
    padding: 3rem 2.5rem;
    height: calc((45rem - 2rem) / 2);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.resume-item .year {
    color: var(--main-color);
}

.resume-item h3 {
    font-size: 2.2rem;
}

.resume-item .company {
    position: relative;
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.resume-item .company::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: .5rem;
    background: var(--main-color);
    border-radius: 50%;
    margin-left: -2rem;
}

.resume-detail.skills .resume-list {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    height: auto;
    overflow: visible;
}

.resume-detail.skills .resume-item {
    position: relative;
    align-items: center;
    height: auto;
}

.resume-detail.skills .resume-item i {
    font-size: 8.5rem;
    transition: .5s;
}

.resume-detail.skills .resume-item:hover i {
    color: var(--main-color);
}
.resume-detail.skills .resume-item span {
    position: absolute;
    top: -20%;
    background: var(--white-color);
    color: var(--bg-color);
    font-size: 1.6rem;
    padding: .5rem 1rem;
    border-radius: .6rem;
    pointer-events: none;
    opacity: 0;
    transform: scale(.9);
    transition: .2s;
}

.resume-detail.skills .resume-item:hover span {
    top: -25%;
    opacity: 1;
    transform: scale(1);
}

.resume-detail.about .resume-list {
    height: auto;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
}

.resume-detail.about .resume-item {
    height: auto;
    padding: 0 0 .5rem;
    background: transparent;
}

.resume-detail.about .resume-item p {
    color: var(--main-color);
}

.resume-detail.about .resume-item p span {
    color: var(--white-color);
    margin-left: 1rem;
    font-size: 1.8rem;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.portfolio-detail {
    display: none;
}

.portfolio-detail.active {
    display: block;
}

.portfolio-box .numb {
    font-size: 8rem;
    -webkit-text-stroke: .07rem var(--white-color);
    color: transparent;
    line-height: 1;
}

.portfolio-box h3 {
    font-size: 3.5rem;
    margin: .8rem 0 2rem;
}

.portfolio-box p {
    font-size: 1.6rem;
}

.portfolio-box .tech {
    margin: 2rem 0;
    color: var(--main-color);
    border-bottom: .1rem solid var(--white-color);
    padding-bottom: 2rem;
}
.portfolio-box .live-github a {
    position: relative;
    display: inline-flex;
    padding: 1.3rem;
    font-size: 3rem;
    color: var(--white-color);
    border-radius: 50%;
    background: var(--second-bg-color);
    transition: .5s;
}

.portfolio-box .live-github a:hover {
    color: var(--main-color);
}


.portfolio-box .live-github a:first-child {
    margin-right: 1.5rem;
}

.portfolio-box .live-github a:first-child i {
    transform: rotate(135deg);
}

.portfolio-box .live-github a span {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%) scale(.9);
    font-size: 1.6rem;
    white-space: nowrap;
    padding: .5rem 1rem;
    border-radius: .6rem;
    pointer-events: none;
    background: var(--white-color);
    color: var(--bg-color);
    opacity: 0;
    transition: .2s;
}

.portfolio-box .live-github a:hover span {
    top: -70%;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.portfolio-box .portfolio-carousel {
    width: 100%;
    height: 45rem;
    border-radius: 1rem;
    overflow: hidden;
}

.portfolio-carousel .img-slide {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 2rem;
    height: inherit;
    transition: .5s;
}

.portfolio-carousel .img-item {
    height: inherit;
}
.portfolio-carousel .img-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}
.portfolio-box .navigation {
    text-align: right;
    margin-top: 2rem;
}

.portfolio-box .navigation button {
    display: inline-flex;
    padding: 4rem;
    background: var(--second-bg-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    font-size: 4rem;
    color: var(--main-color);
    cursor: pointer;
}

.portfolio-box .navigation button.disabled {
    border-color: var(--second-bg-color);
    color: var(--disabled-color);
}

.portfolio-box .navigation .arrow-right {
    margin-left: 1.5rem;
}


.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
}

.contact-container .contact-box:first-child {
    align-self: center;
}

.contact-box h2 {
    font-size: 4.5rem;
}

.contact-box p {
    font-size: 1.6rem;
}

.contact-box .desc {
    margin: 1.5rem 0 2.5rem;
}


.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
}

.contact-container .contact-box:first-child {
    align-self: center;
}

.contact-box h2 {
    font-size: 4.5rem;
}

.contact-box p {
    font-size: 1.6rem;
}
.contact-box .desc {
    margin: 1.5rem 0 2.5rem;
}

.contact-box .contact-detail {
    display: flex;
    align-items: center;
    margin: 2rem 0;
}

.contact-detail i {
    display: inline-flex;
    background: var(--second-bg-color);
    color: var(--main-color);
    font-size: 3rem;
    padding: 1.2rem;
    border-radius: .6rem;
    margin-right: 1.5rem;
}
.contact-detail .detail p:first-child {
    color: var(--main-color);
}

.contact-box form {
    background: var(--second-bg-color);
    padding: 2.5rem 3.5rem 3.5rem;
    border-radius: 1rem;
    text-align: center;
}

.contact-box .heading {
    font-size: 3.5rem;
}

.contact-box .field-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.contact-box .field-box input,
.contact-box .field-box textarea {
    padding: 1.5rem;
    background: var(--bg-color);
    border: .15rem solid var(--bg-color);
    border-radius: .6rem;
    font-size: 1.6rem;
    color: var(--white-color);
}

.contact-box .field-box textarea {
    grid-column: 1 / -1;
    height: 26rem;
    resize: none;
}

.contact-box .field-box input:focus,
.contact-box .field-box textarea:focus {
    border-color: var(--main-color);
}
.contact-box .btn {
    margin-top: 2rem;
    cursor: pointer;
}



/* breakpoints */
@media screen and (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media screen and (max-width: 992px) {
    header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }
}
@media screen and (max-width: 810px) {
    .contact-box .field-box {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 0;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        text-align: center;
        display: none;
    }
    nav.active {
        display: block;
    }
    
    nav a {
        display: block;
        margin: 4rem 0;
    }
    

    .home {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 2rem;
    }

    .home-img, .img-box {
        width: 35rem;
        height: 35rem;
    }
    .resume-container,
    .portfolio-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .resume-container {
        gap: 3rem;
    }

    .portfolio-container .portfolio-box:first-child {
        order: 1;
    }
    .contact-box .field-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .home-img, .img-box {
        width: 30rem;
        height: 30rem;
    }

    .contact-box .field-box {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 450px) {
    html {
        font-size: 50%;
    }
}

@media screen and (max-width: 400px) {
    .home-detail,
    .resume-box h2,
    .resume-box .heading,
    .resume-box .desc,
    .resume-detail.about .resume-item {
        text-align: center;
    }

    .home-detail .btn-sci {
        flex-direction: column-reverse;
    }
    .home-detail .btn-sci .sci {
        margin-left: 0;
        margin-bottom: 2rem;
    }
    
    .contact-box form {
        padding: 2.5rem 3rem 3.5rem;
    }
    
    .contact-box h2 {
        font-size: 3.5rem;
    }
    
}
/* --- keep all your existing CSS exactly as sent --- */

/* NEW: nicer summary arrow */
details summary {list-style:none;}
details summary::after{
  content:"▼";margin-left:6px;font-size:.8em;transition:.2s;
}
details[open] summary::after{content:"▲";}

/* NEW: inside <details> table responsive */
details table{width:100%;overflow-x:auto;display:block}

/* ==== General Reset for Portfolio ==== */
.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 3rem 1rem;
}

/* ==== Project Card ==== */
.project-card, .education-card, .experience-card, .skills-category, .research-card{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: var(--second-bg-color);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  /* padding: 2rem; */
  transition: all 0.4s ease;
  text-align: justify;
}

.project-card:hover, .education-card:hover, .experience-card:hover, .skills-category:hover , .research-card:hover {
  transform: scale(1.01);
  box-shadow: 0 18px 60px rgba(0, 255, 160, 0.2);
  background: #1a5276; /* Darker blue on hover for experience */
}

/* ==== Left Section ==== */
.project-left {
  flex: 1;
  min-width: 300px;
  padding-right: 2rem;
}

.project-left .numb {
  font-size: 1.1rem;
  background: linear-gradient(45deg, #00ffa1, #00f2ff);
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  color: #000;
  font-weight: bold;
  margin-bottom: 1rem;
}

.project-left h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.project-left .summary {
  font-size: 1.05rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.project-left .tech {
  font-style: italic;
  font-size: 0.95rem;
  color: #0ff;
  margin-bottom: 1.2rem;
}

.project-left .links a {
  margin-right: 1rem;
  font-size: 1.4rem;
  color: #00ffcc;
  transition: color 0.3s ease;
}

.project-left .links a:hover {
  color: #fff;
}

/* ==== Details Dropdown ==== */
.project-left details summary {
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  margin-top: 1rem;
}

.project-left details {
  color: #ddd;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.project-left ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

/* ==== Right Image ==== */
.project-right {
  flex: 1;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-right img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.project-card:hover .project-right img {
  transform: scale(1.03);
}

/* ==== Responsive === */
@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
    padding: 1.5rem;
  }

  .project-left {
    padding-right: 0;
  }

  .project-right {
    margin-top: 1rem;
  }
}
.project-left .links a:hover i {
  transform: rotate(15deg) scale(1.2);
  transition: 0.3s ease;
}
.form-success {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #0f0;
  color: #000;
  font-weight: bold;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
  z-index: 1000;
  transition: all 0.5s ease;
}
.contact-box form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 0 25px rgba(0, 255, 170, 0.1);
}
.contact-box input, .contact-box textarea {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid #00ffaa40;
  padding: 0.8rem;
  border-radius: 8px;
  width: 100%;
  margin-bottom: 1rem;
}
.contact-box input::placeholder, .contact-box textarea::placeholder {
  color: #aaa;
}
.services-box {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.services-box:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 255, 170, 0.2);
}
.services-box h3 {
  font-size: 1.5rem;     /* Increased from 1.3rem */
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.services-box p {
  font-size: 1.05rem;    /* Increased from 0.98rem */
  line-height: 1.75;
  color: #ccc;
}

/* For featured cards (optional if you use .featured-service class) */
.featured-service h3 {
  font-size: 1.6rem;     /* Increased from 1.4rem */
}

.featured-service p {
  font-size: 1.15rem;    /* Increased from 1rem */
  line-height: 1.75;
}
/* ================================
   GLOBAL SERVICES CARD TWEAKS
   ================================ */
.services-box {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.services-box:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 255, 170, 0.2);
}

/* 💡 Slightly larger, clearer text for every card */
.services-box h3 {
  font-size: 1.3rem;          /* was ~1.2rem */
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.services-box p {
  font-size: 0.98rem;         /* was ~0.9rem */
  line-height: 1.6;
  color: #ccc;
}

/* ================================
   FEATURED CARDS (top 3)
   ================================ */
.featured-service {
  position: relative;
  background: rgba(0, 255, 170, 0.08);               /* subtle tint */
  border: 1.5px solid rgba(0, 255, 170, 0.7);         /* bright border */
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: 0 0 30px rgba(0, 255, 170, 0.25);
  transform: scale(1.03);
  color: #fff;                                        /* ensure readable text */
}

/* Optional glow layer */
.featured-service::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, #00ffc8, #00eaff);
  opacity: 0.05;
  z-index: -1;
}

/* Featured headings & body text */
.featured-service h3 {
  color: #00ff9d;
  font-size: 1.4rem;
  font-weight: 700;
}
.featured-service p {
  color: #e5e5e5;
  font-size: 1rem;
  line-height: 1.6;
}
.research-note {
  text-align: center;
  color: #ccc;
  font-size: 2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 20px;
  border-radius: 8px;
  border-left: 3px solid #0040ff;
  border-right: 3px solid #0040ff;
}

/* ================================
   ICON ANIMATION (all cards)
   ================================ */
.services-box .icon i {
  color: #0095ff;
  font-size: 2.2rem;
  transition: transform 0.3s ease;
}
.services-box:hover .icon i:first-child {
  transform: rotate(12deg) scale(1.15);
}




/* ================================
   Resume Section
   ================================ */
   /* ============  CORE LAYOUT  ============ */
.resume {
  padding: 4rem 1rem;
  background: #14151a;
  color: #e0e0e0;
}

.resume-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Why Hire Me + Tabs */
.resume-box h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: #fff;
}
.resume-box .desc {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: #c8c8c8;
}
.resume-btn {
  background: transparent;
  border: 1px solid #00ffa2;
  color: #00ffa2;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 0 0.4rem 0.6rem 0;
  transition: all 0.3s ease;
}
.resume-tab.active {
  background: #00ff9f;
  color: #1e1e1e;
  box-shadow: 0 0 0 2px #00ff9f, 0 8px 20px rgba(0, 255, 159, 0.25); /* subtle soft glow */
  transition: all 0.3s ease-in-out;
}

.resume-tab:hover:not(.active) {
  background: #3a3a3a;
  box-shadow: 0 4px 12px rgba(0, 255, 159, 0.15); /* soft glow on hover */
  transform: scale(1.02);
  transition: all 0.3s ease;
}


/* Wrapper flex allows side-by-side tabs later if desired */
.resume-wrapper {
  margin-top: 3rem;
}

/* ============  HEADINGS  ============ */
.heading {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}
.heading span {
  color: #00ffa2;
}
.resume-detail > .desc {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #bcbcbc;
}

/* ============  GRID (Experience / Education)  ============ */
.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.edu-tags,
.exp-tags,
.project-tags,
.research-tags {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.tag,
.skill-item {
    background: var(--bg-color);
    border: 1px solid var(--bg-color);
    color: var(--white-color);
    font-size: 1.2rem;
    padding: .4rem .9rem;
    border-radius: 2rem;
    transition: .3s;
}

.gp-keywords { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
      .gp-tag { background: var(--second-bg-color); padding: 0.4rem 0.8rem; border-radius: 1.5rem; font-size: 1.2rem; border: 1px solid var(--main-color); }
      

.tag:hover,
.gp-tag:hover, 
.skill-item:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

/* Skills section */
.skills-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(28rem, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skills-category {
    background: var(--second-bg-color);
    border: 1px solid var(--second-bg-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: .3s;
}

.skills-category:hover {
    border-color: var(--main-color);
    transform: scale(1.01);
}

.skills-category h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.skills-category .skills-items {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.skills-items .skill-item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--bg-color);
    border: 1px solid var(--bg-color);
    padding: .4rem .8rem;
    font-size: 1.2rem;
    border-radius: 1.5rem;
    transition: .3s;
}

.skills-items .skill-item i {
    font-size: 1.6rem;
}

.skills-items .skill-item:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.resume-card {
  background: #1d1e24;
  border-left: 4px solid #00ffa2;
  border-radius: 12px;
  padding: 1.6rem 1.4rem 1.4rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 14px rgba(0, 255, 162, 0.05);
}
.resume-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 255, 162, 0.25);
}

.resume-card .year {
  font-size: 1rem;
  font-weight: 700;
  color: #00ffa2;
  margin-bottom: 0.4rem;
}
.resume-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #fff;
}
.resume-card .company {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: #a0a0a0;
}
.resume-card ul {
  padding-left: 1.3rem;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #d0d0d0;
}
.resume-card ul li::marker {
  color: #00ffa2;
}

/* ============  SKILLS GRID  ============ */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.skill-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #1d1e24;
  border: 1px solid #2a2b32;
  color: #e0e0e0;
  padding: 0.45rem 0.9rem;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: background 0.3s ease, border 0.3s ease;
}
.skill-badge i {
  color: #00ffa2;
  font-size: 1.1rem;
}
.skill-badge:hover {
  background: #00ffa2;
  color: #111;
  border-color: #00ffa2;
}
.skill-badge:hover i {
  color: #111;
}

/* ============  ABOUT GRID  ============ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem 2rem;
  margin-top: 1rem;
}
.about-item {
  font-size: 1rem;
  color: #d2d2d2;
}
.about-item strong {
  color: #00ffa2;
  font-weight: 600;
}

/* ============  RESPONSIVE TWEAKS  ============ */
@media (max-width: 768px) {
  .resume-box h2 {
    font-size: 1.6rem;
  }
  .heading {
    font-size: 1.7rem;
  }
  .resume-card h3 {
    font-size: 1.15rem;
  }
  .skill-badge {
    font-size: 0.85rem;
  }
}
.resume-container {
  padding-top: 80px; /* adjust if navbar is fixed */
  position: relative;
  z-index: 1;
}
/* ============  font size  ============ */
/* Body text */
body {
  font-size: 18px;
  line-height: 1.75;
  font-family: 'Poppins', sans-serif;
}

/* Section Headings */
.heading {
  font-size: 2.8rem;
  font-weight: 800;
  color: #00ff90;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* WHY HIRE ME Section */
.resume-box h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.resume-box p.desc {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #cccccc;
}

/* Resume Tab Buttons */
.resume-btn {
  font-size: 1.2rem;
  padding: 1.2rem 0;
  font-weight: 600;
  transition: all 0.3s ease;
}

.resume-btn:hover {
  background-color: #00ff90;
  color: #111;
}

/* Resume Cards */
.resume-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

.resume-card p.year {
  font-size: 1.25rem;
  font-weight: 700;
  color: #00ff90;
}

.resume-card p.company {
  font-size: 1.1rem;
  color: #bbbbbb;
  margin-bottom: 0.6rem;
}

.resume-card ul {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #dddddd;
  padding-left: 1.5rem;
}

/* About Me Section */
.about-grid .about-item {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  color: #eeeeee;
}

/* Skills Badges */
.skills-grid .skill-badge {
  font-size: 1.15rem;
  padding: 0.7rem 1.5rem;
  margin: 0.5rem;
  border-radius: 30px;
  background-color: #1e1e1e;
  border: 1px solid #00ff90;
  color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 255, 144, 0.2);
}

.skills-grid .skill-badge:hover {
  background-color: #00ff90;
  color: #111;
  transform: scale(1.08);
}
body {
  font-family: 'Inter', sans-serif;
}

h2, .heading {
  font-weight: 800;
  font-size: 2rem;
  color: #00ff88;
}

.desc {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.8;
  max-width: 90%;
  margin: 0 auto;
}
.resume-card {
  background-color: #1c1e26;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
  transition: 0.4s ease;
}

.resume-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.25);
}
.resume-card .year {
  color: #00ff88;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  background: rgba(0,255,136,0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}
.resume-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding: 3rem 2rem;
  align-items: start;
}
.resume-btn:hover {
  background-color: #00ff88;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
  transform: scale(1.02);
}
.resume-container {
  padding-top: 100px; /* adjust if navbar is fixed */
  position: relative;
  z-index: 1;
}
