/* ===== GOOGLE FONTS ===== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

/* ===== ROOT VARIABLES ===== */
:root {
  --header-height: 3.5rem;
  --font-main: "Poppins", sans-serif;
  
  /* Theme colors */
  --bg-main: #f7f7f5;    /* warm off-white */
  --bg-card: #ffffff;    /* pure white for cards */
  --accent-1: #d8cfc0;   /* light beige */
  --accent-2: #0d47a1;   /* deep blue for trust */
  
  /* Derived colors */
  --color-primary: var(--accent-2);
  --color-primary-dark: #09347c;
  --color-dark: #1e1e2f;
  --color-light: var(--bg-main);
  --color-accent: var(--accent-1);
  
  /* Text colors */
  --text-color: #333;
  --text-color-light: #666;
  
  /* Legacy color mapping */
  --first-color: var(--color-primary);
  --first-color-alt: var(--color-primary-dark);
  
  /* Typography */
  --font-size-lg: 2rem;
  --font-size-md: 1.25rem;
  --font-size-sm: 1rem;
  
  /* Animation durations */
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s ease;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--color-dark);
  line-height: 1.6;
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  width: 100%;
  display: block;
}

/* ===== HEADER ===== */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 999;
  transition: transform 0.3s ease;
}

.l-header.hide {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav__logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.nav__menu {
  display: block;
}

.nav__list {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav__item {
  list-style: none;
}

.nav__link {
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--color-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__toggle {
  display: none;
}

/* ===== HOME SECTION ===== */
.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 3rem;
  text-align: center;
  position: relative;
}

.home__data {
  max-width: 600px;
  margin: 0 auto;
}

.home__title {
  font-size: var(--font-size-lg);
  margin-bottom: 1rem;
}

.home__subtitle {
  font-size: 1.2rem;
  color: var(--text-color-light);
  margin-bottom: 2rem;
}

.home__title-color {
  color: var(--color-primary);
}

.home__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.home__social {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  justify-content: center;
}

.home__social-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.home__social-icon:hover {
  color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.home__img {
  max-width: 300px;
  margin-top: 2rem;
  position: relative;
}

.home__blob {
  width: 100%;
  max-width: 400px;
  height: auto;
  fill: var(--color-primary);
  opacity: 0.85;
  transition: opacity 0.3s ease;
  filter: brightness(1.05);
}

.home__blob:hover {
  opacity: 0.95;
  filter: brightness(1.1);
}

.home__blob-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.02);
}

/* ===== BUTTONS ===== */
.button {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 5px;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}
.button:hover {
  background-color: #3542c3;
}

/* ===== SECTION WRAPPER ===== */
.section {
  position: relative;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  scroll-margin-top: var(--header-height);
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60px;
  height: 2px;
  background: var(--accent-1);
  transform: translateX(-50%);
  opacity: 0.6;
  transition: width var(--transition-normal);
}

.section:hover::after {
  width: 100px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--color-primary);
}

/* Alternating section backgrounds */
.section:nth-of-type(odd) {
  background: var(--bg-main);
}

.section:nth-of-type(even) {
  background: var(--bg-card);
}

/* ===== ABOUT ===== */
.about__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 2rem 0;
}

.about__img-container {
  position: relative;
  text-align: center;
}

.about__img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  margin: 0 auto;
  overflow: hidden;
  border: 4px solid var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.about__img:hover {
  transform: scale(1.05);
}

.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.about__social-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.about__social-icon:hover {
  color: var(--color-primary-dark);
  transform: translateY(-3px);
}

.about__content {
  max-width: 800px;
  margin: 0 auto;
}

.about__subtitle {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.about__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 2rem;
}

.about__highlights {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.about__highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-light);
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about__highlight-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about__highlight-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  width: 100%;
}

.about__highlight-header i {
  font-size: 1.25rem;
  color: var(--color-primary);
}

.about__highlight-header h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  flex-grow: 1;
}

.about__highlight-content {
  display: none; /* Hide content by default */
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1); /* Optional separator */
  margin-top: 1rem;
}

.about__highlight-item.is-open .about__highlight-content {
  display: block; /* Show content when item is open */
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.about__highlight-item.is-open .toggle-icon {
  transform: rotate(180deg); /* Rotate icon when item is open */
}

.about__highlight-item i {
  font-size: 1.25rem;
  color: var(--color-primary);
}

.about__highlight-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.about__highlight-item p {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
}

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

.button--ghost {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.button--ghost:hover {
  background: var(--color-primary);
  color: white;
}

/* Animation for About Section */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about__content {
  animation: fadeInLeft 0.6s ease-out forwards;
}

.about__highlight-item {
  animation: fadeInLeft 0.6s ease-out forwards;
}

.about__highlight-item:nth-child(2) {
  animation-delay: 0.2s;
}

.about__highlight-item:nth-child(3) {
  animation-delay: 0.4s;
}

/* Responsive Design */
@media screen and (min-width: 768px) {
  .home {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 8rem 2rem 4rem;
  }

  .home__data {
    margin: 0;
  }

  .home__cta {
    justify-content: flex-start;
  }

  .home__social {
    justify-content: flex-start;
  }

  .home__img {
    margin-top: 0;
    max-width: 400px;
  }

  .about__container {
    grid-template-columns: 300px 1fr;
    align-items: center;
  }
  
  .about__img-container {
    text-align: left;
  }
  
  .about__social {
    justify-content: flex-start;
  }
  
  .about__cta {
    justify-content: flex-start;
  }
}

@media screen and (min-width: 1024px) {
  .home {
    padding: 10rem 2rem 6rem;
  }

  .home__img {
    max-width: 500px;
  }

  .about__container {
    gap: 4rem;
  }
  
  .about__img {
    width: 300px;
    height: 300px;
  }
}

/* ===== SKILLS ===== */

/* ---------- Skills accordion ---------- */
.skills__data-header{
  display:flex;
  align-items:center;
  gap:.6rem;
  cursor:pointer;
  padding: 1rem;
  width: 100%;
}
.skills__data-header .skills__icon{font-size:1.8rem}
.skills__data-content{
  display:none;
  padding: 0 1rem 1rem 1rem;
  border-top: 1px solid #eee;
}
.card--clickable.is-open .skills__data-content{display:block}
.skills__data-header .chevron{margin-left:auto;transition:transform .3s}
.card--clickable.is-open .chevron{transform:rotate(180deg)}

.skills__container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.skills__data {
  background-color: var(--bg-card);
  padding: 0; /* Remove padding since header has its own */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.skills__data:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.skills__data .skills__names {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.skills__icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
  display: inline-block;
}

.skills__data-header i {
  font-size: 2.5rem;
  color: var(--color-primary);
}

.skills__name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  display: inline-block;
  vertical-align: middle;
}

.skills__data .skills__text {
  margin-bottom: 1.5rem;
  color: var(--text-color);
  line-height: 1.6;
}

.skills__bar {
  height: 8px;
  border-radius: 4px;
  background: var(--accent-1);
  margin: .75rem 0;
  position: relative;
  overflow: hidden;
}

.skills__bar::before {
  content: '';
  position: absolute;
  height: 100%;
  border-radius: 4px;
  background: var(--color-primary);
  animation: fillBar 1.5s ease-in-out forwards;
}

.skills__programming::before {
  width: 95%;
}

.skills__ai::before {
  width: 90%;
}

.skills__frameworks::before {
  width: 85%;
}

.skills__data::before {
  width: 88%;
}

.skills__cloud::before {
  width: 82%;
}

.skills__analytics::before {
  width: 90%;
}

.skills__tools::before {
  width: 85%;
}

.skills__soft::before {
  width: 92%;
}

.skills__percentage {
  position: absolute;
  right: 0;
  top: -1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
}

/* Animation for skills bars */
@keyframes fillBar {
  from {
    width: 0;
  }
  to {
    /* Width will be set by individual skill classes */
  }
}

/* Responsive adjustments */
@media screen and (min-width: 768px) {
  .skills__container {
    padding: 0 2rem;
  }
  
  /* Remove duplicate skills padding rule */
}

/* ===== PROJECTS ===== */
.work__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.work__item {
  background: var(--bg-card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.work__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.work__img {
  position: relative;
  overflow: hidden;
  height: 200px;
  pointer-events: none;
}

.work__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.work__item:hover .work__img::after {
  opacity: 1;
}

.work__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  pointer-events: none;
}

.work__item:hover .work__img img {
  transform: scale(1.1);
}

/* ---------- Image fitting improvements ---------- */
/* Project grid thumbnails: slightly taller for better visibility */
.work__item .work__img {
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  max-width: 340px; /* Increase the box size a bit */
  margin: 0 auto; /* Center the image box */
}
.work__item .work__img img { 
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0.25rem;
}

/* Project links in initial view */
.work__links--initial {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: center;
}

/* Make education cards fully clickable */
.education__card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.education__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.education__header {
  padding: 1rem;
  width: 100%;
  cursor: pointer;
}

/* Work experience logos: revert to original styling */
.work__card .work__img {
  position: relative;
  overflow: hidden;
  height: 200px;
  pointer-events: none;
}

.work__card .work__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  pointer-events: none;
}

/* Make education header/card easier to click */
.education__header { padding: 1rem; }
.education__card { cursor: pointer; }

.work__content {
  padding: 1.5rem;
}

.work__list {
  list-style: disc;
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.work__list li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--text-color);
}

.work__link {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition-normal);
}

.work__link i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

.work__link:hover {
  color: var(--color-primary-dark);
}

/* Project card animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.work__item {
  animation: fadeInUp 0.6s ease-out forwards;
}

.work__item:nth-child(2) {
  animation-delay: 0.2s;
}

.work__item:nth-child(3) {
  animation-delay: 0.4s;
}

.work__item:nth-child(4) {
  animation-delay: 0.6s;
}

/* Hide project container initially */
#projects-container {
    /* Reverted to not hide initially to restore visibility */
}

.project__context{
  display:inline-block;
  margin-bottom:.75rem;
  padding:.15rem .6rem;
  background:var(--accent-1);
  color:var(--color-dark);
  font-size:.75rem;
  border-radius:.35rem;
  letter-spacing:.2px;
}

/* ===== CONTACT ===== */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}
.contact__input {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.contact__button {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 5px;
  transition: 0.3s;
}
.contact__button:hover {
  background-color: #2f38b3;
}

/* accordion */
/* Remove duplicate skills rules - they're already defined above */

/* ===== FOOTER ===== */
.footer {
  background-color: var(--color-accent);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}
.footer__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.footer__icon {
  font-size: 1.2rem;
  margin: 0 0.5rem;
  color: #fff;
  transition: 0.3s;
}
.footer__icon:hover {
  color: var(--color-primary);
}
.footer__copy {
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* Experience Section */
.experience__container {
    gap: 2.5rem;
    padding: 1rem;
}

.experience__item {
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.experience__item:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.experience__role {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.experience__date {
    display: block;
    font-size: 0.875rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.experience__list {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.experience__list li {
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.5;
}

.experience__list li::before {
    content: "•";
    color: var(--color-primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.experience__link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-block;
    margin-top: 0.5rem;
    transition: .3s;
}

.experience__link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Certificate Links */
.certificate-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-block;
    margin-top: 0.5rem;
    transition: .3s;
}

.certificate-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Responsive Design */
@media screen and (min-width: 768px) {
    .experience__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .extra__card {
        min-height: 160px;
    }
}

@media screen and (min-width: 1024px) {
    .experience__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    .extra__card {
        min-height: 170px;
    }
    
    .experience__item {
        padding: 2rem;
    }
}

/* ===== CARD STYLES ===== */
.card--clickable {
  cursor: pointer;
  position: relative;
  background: var(--bg-card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  margin-bottom: 1.5rem;
}

.card--clickable:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.work__initial {
  padding: 1.5rem;
  position: relative;
  background: var(--bg-card);
}

.work__initial h3 {
  margin-top: 1rem;
  color: var(--color-primary);
  font-size: 1.25rem;
  pointer-events: none;
}

.card__detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1.5rem;
  transition: all 0.4s ease-in-out;
  background: var(--bg-card);
  position: relative;
}

.card--clickable.is-open .card__detail {
  max-height: 1000px;
  opacity: 1;
  padding: 0 1.5rem 1.5rem;
}

.work__date {
  display: block;
  font-size: 0.875rem;
  color: var(--text-color-light);
  margin-bottom: 1rem;
  pointer-events: none;
}

.work__links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.work__link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-normal);
  position: relative;
  pointer-events: auto;
}

.work__link:hover {
  color: var(--color-primary-dark);
}

/* Ensure images don't interfere with clicks */
.work__img {
  pointer-events: none;
}

.work__img img {
  pointer-events: none;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--accent-2);
  width: 0;
  z-index: 1000;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== SCROLL REVEAL HELPERS ===== */
.sr {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sr[data-sr="bottom"] {
  transform: translateY(20px);
}

.sr[data-sr="left"] {
  transform: translateX(-20px);
}

.sr[data-sr="right"] {
  transform: translateX(20px);
}

.sr[data-sr="scale"] {
  transform: scale(0.95);
}

.sr.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Extras section - horizontal cards */
#extras .experience__container{
    display:grid;
    grid-auto-flow:column;
    overflow-x:auto;
    gap:1.25rem;
    padding-bottom:.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.extra__card-header{
    display:flex;
    align-items:center;
    gap:.75rem;
    cursor:pointer;
}

.extra__card-header .extra__icon {
    font-size: 1.5rem; /* Adjust size as needed */
    color: var(--color-primary); /* Use primary color or adjust */
}

.extra__card-content{
    display:none;
    padding-top:1rem;
}

.card--clickable.is-open .extra__card-content{
    display:block;
}

/* ---------- ABOUT accordion tweak ---------- */
.about__highlight-header i{font-size:1.25rem}

/* ---------- PROJECT context badge ---------- */
.project__context{display:inline-block;margin-bottom:.75rem;padding:.15rem .6rem;background:var(--accent-1);color:var(--color-dark);font-size:.75rem;border-radius:.35rem}

/* ---------- Skills & Extras accordions ---------- */
.skills__data-header,
.extra__card-header{display:flex;align-items:center;gap:.8rem;cursor:pointer}
.skills__data-content,
.extra__card-content{display:none;padding-top:1rem;border-top:1px solid #eee}
.card--clickable.is-open .skills__data-content,
.card--clickable.is-open .extra__card-content{display:block}
#extras .skills__container{display:grid;grid-auto-flow:column;overflow-x:auto;gap:1.25rem;padding-bottom:.5rem}

/*========== EDUCATION ==========*/
.about__education {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.education__card {
  background-color: var(--card-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.education__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.education__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.education__icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.education__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
}

.education__header i:first-child {
  font-size: 1.5rem;
  color: var(--first-color);
}

.education__title {
  flex: 1;
}

.education__title h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.education__degree {
  font-size: 0.9rem;
  color: var(--text-color-light);
}

.education__content {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.education__card.is-open .education__content {
  display: block;
}

.education__timeline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-color-light);
}

.education__details {
  color: var(--text-color);
}

.education__details h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--first-color);
}

.education__courses {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.education__courses li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.education__courses li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--first-color);
}

.education__achievements {
  background-color: var(--card-color-alt);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.education__achievements h4 {
  margin-bottom: 0.5rem;
}

.education__achievements ul {
  list-style: none;
  padding-left: 0;
}

.education__achievements li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.education__achievements li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--first-color);
}

.education__card .chevron {
  transition: transform 0.3s ease;
}

.education__card.is-open .chevron {
  transform: rotate(180deg);
}

/* Responsive adjustments for 2x2 layout */
@media screen and (min-width: 768px) {
    .work__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem; /* Keep consistent gap or adjust */
    }
}

@media screen and (min-width: 1024px) {
    .work__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem; /* Keep consistent gap or adjust */
    }
}

/* ---------- Extras grid ---------- */
.extra__grid{
  display:grid;
  gap:1.5rem;
}
@media (min-width:600px){ .extra__grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));}}
.extra__card{
  background:var(--bg-card);
  border-radius:.9rem;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  display:flex;flex-direction:column;
  min-height:260px;           /* equal height */
  transition:transform .3s;
}
.extra__card:hover{transform:translateY(-4px)}

.extra__header{
  display:flex;align-items:center;gap:.6rem;
  padding:1rem 1.25rem;cursor:pointer;
  font-weight:600;color:var(--color-primary);
  border-bottom:1px solid #eee;
}
.extra__header i:first-child{font-size:1.4rem}
.extra__header .chevron{margin-left:auto;transition:transform .3s}

.extra__content{
  display:none;padding:1rem 1.25rem;flex:1;
  font-size:.95rem;color:var(--text-color);
  line-height:1.55;
}
.extra__card.is-open .extra__content{display:block}
.extra__card.is-open .chevron{transform:rotate(180deg)}
.extra__content a{color:var(--color-primary);font-size:.85rem}

.extra__date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-color-light);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.extra__certificates {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.extra__certificates a {
    color: var(--color-primary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.extra__certificates a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* keeps all cards same height even if short text */
.extra__card:not(.is-open){overflow:hidden}

/* Additional styles for contact form inputs */
.contact__form input:not([type="submit"]),
.contact__form textarea {
  padding: 0.8rem 1rem; /* Added padding to increase height */
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 1rem;
}

.theme-toggle:hover {
  background: rgba(13, 71, 161, 0.1);
  transform: scale(1.1);
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* Light theme variables */
[data-theme="light"] {
  --bg-main: #ffffff;
  --bg-card: #f8f9fa;
  --accent-1: #e9ecef;
  --accent-2: #0d47a1;
  --color-dark: #212529;
  --color-light: #f8f9fa;
  --text-color: #212529;
  --text-color-light: #6c757d;
  --border-color: #dee2e6;
  --card-color: #ffffff;
  --card-color-alt: #f8f9fa;
  --first-color: #0d47a1;
}

/* Dark theme variables (default) */
[data-theme="dark"] {
  --bg-main: #1a1a1a;
  --bg-card: #2d2d2d;
  --accent-1: #4a4a4a;
  --accent-2: #64b5f6;
  --color-dark: #ffffff;
  --color-light: #e0e0e0;
  --text-color: #e0e0e0;
  --text-color-light: #9e9e9e;
  --border-color: #444;
  --card-color: #2d2d2d;
  --card-color-alt: #3d3d3d;
  --first-color: #64b5f6;
}

/* Smooth transitions for theme switching */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Light theme specific adjustments */
[data-theme="light"] .home__blob {
  opacity: 0.7;
  filter: brightness(0.9) contrast(1.1);
}

[data-theme="light"] .home__blob:hover {
  opacity: 0.8;
  filter: brightness(0.95) contrast(1.15);
}

[data-theme="light"] .nav__menu {
  background: var(--bg-card);
}

[data-theme="light"] .work__card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .work__item {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .skills__data {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .extra__card {
  background: var(--bg-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .extra__header {
  border-color: #dee2e6;
}

[data-theme="light"] .education__card {
  background-color: var(--card-color);
  border-color: var(--border-color);
}

[data-theme="light"] .skills__data-content {
  border-color: #dee2e6;
}

[data-theme="light"] .card__detail {
  border-color: #dee2e6;
}

