/* GENERAL */

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

*{
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

html{
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body{
    overflow-x: hidden;
}

p{
    color: rgb(85, 85, 85);
}

/* TRANSITIONS */

body, nav, section, .details-container, .contact-info-upper-container, 
.menu-links, .btn, a, p, h1, h2, h3, .logo, .icon, .hamburger-icon span, .theme-btn {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease, filter 0.4s ease;
}

/* NAVBAR */

nav, .nav-links{
    display: flex;
}

nav{
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.nav-right,
.hamburger-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hamburger-right {
    gap: 1.25rem;
}

/* THEME TOGGLE BUTTON */

.theme-btn {
    background: transparent;
    border: 1.5px solid rgb(163, 163, 163);
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgb(53, 53, 53);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.theme-btn:hover {
    transform: rotate(25deg) scale(1.1);
    border-color: rgb(53, 53, 53);
    background-color: rgba(0, 0, 0, 0.04);
}

.theme-svg {
    display: block;
}

.nav-links{
    gap: 2rem;
    font-size: 1.5rem;
    list-style: none;
}

a{
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover{
    color: gray;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181, 181, 181);
}

.logo{
    font-size: 2rem;
}

.logo:hover{
    cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav{
    display:none;
}

.hamburger-menu{
    position: relative;
    display: inline-block;
}

.hamburger-icon{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span{
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3s ease-in-out;
}

.menu-links{
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: max-content;
    min-width: 160px;
    max-height: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: max-height 0.35s ease, opacity 0.3s ease;
    z-index: 1000;
}

.menu-links a{
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
}

.menu-links li{
    list-style: none;
}

.menu-links.open{
    max-height: 300px;
}

.hamburger-icon.open span:first-child{
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2){
    opacity:0;
}

.hamburger-icon.open span:last-child{
    transform: rotate(-45deg) translate(10px,-5px);
}

.hamburger-icon span:first-child{
    transform: none;
}

.hamburger-icon span:nth-child(2){
    opacity:1;
}

.hamburger-icon span:last-child{
    transform: none;
}

/* SECTION */
section{
    min-height: 100vh;
    margin: 0 10rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 3rem 0;
}

.section-container{
    display: flex;
}
 /* PROFILE SECTION */
 #profile{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 17vh);
    height: calc(100vh - 17vh);
    gap: 5rem;
    position: relative;
    padding: 0;
 }

 .section-pic-container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    width: 400px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin: auto 0;
    flex-shrink: 0;
 }

 #profile .section-pic-container img {
    border-radius: 50%;
    object-fit: cover;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    display: block;
 }

 .section-text{
    align-self: center;
    text-align: center;
 }

 .section-text p{
    font-weight: 600;
 }

 .section-text-p2{
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
 }

 .title{
    font-size: 3rem;
    text-align: center;
 }

 .socials-container{
    display: flex;
    margin-top: 1rem;
    justify-content: center;
    gap: 1rem;
 }

 /* ICONS */
 .icon{
    height: 2rem;
    cursor: pointer;
 }

 /* BUTTONS */

 .btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}
 
/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
  max-width: 800px;
  margin: 1.5rem auto 0;
}

.about-containers,
.about-details-container {
  display: flex;
}

.text-container {
  text-align: center;
}

.text-container p {
  line-height: 1.7;
  font-size: 1.05rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  user-select: none;
}

.arrow:hover {
  transform: translateY(5px);
  opacity: 0.75;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.experience-sub-item {
  margin-top: 0.75rem;
}

.duration-text {
  font-size: 0.88rem;
  color: rgb(100, 100, 100);
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section-text-p1{
    text-align: center;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.skills-container {
  justify-content: center;
}

.skills-container .details-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

.skills-article-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  justify-items: center;
}

@media screen and (max-width: 900px) {
  .skills-article-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .skills-article-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0.5rem;
  }
}

article {
  display: flex;
  align-items: center;
  width: 9.5rem;
  gap: 0.75rem;
}

article .icon {
  cursor: default;
}

/* Projects Section */

#projects {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 3rem 0 4rem;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1100px;
  width: 100%;
  margin: 1.5rem auto 0;
}

.project-card {
  flex: 0 1 480px;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background-color: rgb(250, 250, 250);
  border: 0.1rem solid rgb(163, 163, 163);
  box-sizing: border-box;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.project-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 1rem;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.project-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0.85rem 0 0.2rem;
  color: black;
}

.project-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgb(85, 85, 85);
  margin-bottom: 0.75rem;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background: rgba(0, 0, 0, 0.05);
  color: rgb(53, 53, 53);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.project-bullets {
  text-align: left;
  list-style: none;
  padding: 0 0.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgb(75, 75, 75);
  flex-grow: 1;
}

.project-bullets li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.65rem;
}

.project-bullets li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: rgb(53, 53, 53);
  font-weight: bold;
}

.project-btn {
  padding: 0.65rem 1.75rem;
  font-size: 0.9rem;
  border-radius: 2rem;
  cursor: pointer;
  border-color: rgb(163, 163, 163);
  color: black;
  width: auto;
  min-width: 7rem;
}

/* CERTIFICATIONS SECTION */

#certifications {
  position: relative;
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 3rem 0 4rem;
}

.certifications-container {
  max-width: 1100px;
  width: 100%;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.cert-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  padding: 1.75rem;
  border-radius: 1.5rem;
}

.cert-icon-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.cert-badge-tag {
  background: rgba(0, 0, 0, 0.06);
  color: rgb(53, 53, 53);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 1rem;
}

.cert-badge-tag.cert-highlight {
  background: #10b98118;
  color: #059669;
  border: 1px solid #10b98135;
}

.cert-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: black;
}

.cert-issuer {
  font-size: 0.88rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.cert-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgb(85, 85, 85);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.cert-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-radius: 1rem;
  cursor: pointer;
  border-color: rgb(163, 163, 163);
}

.cert-multi-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.cert-pill-btn {
  background: transparent;
  border: 1px solid rgb(163, 163, 163);
  padding: 0.45rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  color: rgb(53, 53, 53);
}

.cert-pill-btn:hover {
  background: rgb(53, 53, 53);
  color: white;
}

/* EXPANDABLE COLLAPSE ANIMATION */
.cert-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease, margin 0.35s ease;
  margin-top: 0;
}

.cert-more-grid.open {
  max-height: 2500px;
  opacity: 1;
  margin-top: 0.5rem;
}

.cert-toggle-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.cert-toggle-btn {
  width: auto;
  min-width: 14rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: 2rem;
  cursor: pointer;
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 74vh;
  position: relative;
  box-sizing: border-box;
  padding: 2rem 0;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

.contact-info-container a {
  cursor: pointer;
}

.contact-info-container a:hover {
  text-underline-offset: 0.5rem;
}

/* FOOTER SECTION */

footer {
  height: auto;
  min-height: fit-content;
  padding: 3rem 1rem;
  margin: 0;
}

footer p {
  text-align: center;
}

.footer-repo {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.footer-repo a {
  color: rgb(85, 85, 85);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-repo a:hover {
  color: black;
}

/* ======================== */
/* DARK THEME STYLES        */
/* ======================== */

body.dark-theme {
  background-color: #0f172a;
  color: #f8fafc;
}

body.dark-theme p {
  color: #94a3b8;
}

body.dark-theme .title,
body.dark-theme .logo,
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme .project-title {
  color: #f8fafc;
}

body.dark-theme .experience-sub-title,
body.dark-theme .section-text-p1,
body.dark-theme .section-text-p2,
body.dark-theme .project-desc,
body.dark-theme .duration-text {
  color: #94a3b8;
}

body.dark-theme b,
body.dark-theme strong {
  color: #f8fafc;
}

body.dark-theme .project-subtitle {
  color: #94a3b8;
}

body.dark-theme .tech-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-theme .project-bullets {
  color: #cbd5e1;
}

body.dark-theme .project-bullets li::before {
  color: #38bdf8;
}

body.dark-theme a {
  color: #f8fafc;
  text-decoration-color: #0f172a;
}

body.dark-theme a:hover {
  color: #cbd5e1;
  text-decoration-color: #cbd5e1;
}

body.dark-theme .details-container,
body.dark-theme .color-container,
body.dark-theme .contact-info-upper-container {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

body.dark-theme .menu-links {
  background-color: #1e293b;
  border-color: #334155;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

body.dark-theme .menu-links a {
  color: #f8fafc;
}

body.dark-theme .btn-color-1 {
  background: #f8fafc;
  color: #0f172a;
  border-color: #f8fafc;
}

body.dark-theme .btn-color-1:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
}

body.dark-theme .btn-color-2 {
  background: transparent;
  color: #f8fafc;
  border-color: #475569;
}

body.dark-theme .btn-color-2:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #f8fafc;
}

body.dark-theme .theme-btn {
  border-color: #475569;
  color: #fbbf24;
}

body.dark-theme .theme-btn:hover {
  border-color: #fbbf24;
  background-color: rgba(251, 191, 36, 0.1);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.3);
}

/* Invert monochrome black icons to clean white in dark theme */
body.dark-theme .icon,
body.dark-theme .hamburger-icon span {
  filter: invert(1) brightness(1.2);
}

/* Ensure personal photos and project artwork are not inverted */
body.dark-theme .project-img,
body.dark-theme #profile .section-pic-container img {
  filter: none !important;
}

/* Dark theme for Certifications */
body.dark-theme .cert-title {
  color: #f8fafc;
}

body.dark-theme .cert-issuer {
  color: #cbd5e1;
}

body.dark-theme .cert-desc {
  color: #94a3b8;
}

body.dark-theme .cert-badge-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

body.dark-theme .cert-badge-tag.cert-highlight {
  background: #10b98125;
  color: #34d399;
  border-color: #10b98150;
}

body.dark-theme .cert-pill-btn {
  border-color: #475569;
  color: #e2e8f0;
}

body.dark-theme .cert-pill-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #f8fafc;
}