html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  background-image: url(image/singgalang.jpeg);
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  font-family: "Gabarito", sans-serif;
  scroll-behavior: smooth;
}

#container {
  background: linear-gradient(180deg, rgb(34, 40, 49, 0.9), rgb(34, 40, 49));
  display: grid;
  grid-template-columns: 80px 1fr;
  min-height: 100vh;
  width: 100%;
}

#sidebar {
  grid-column: 1 / 2;
  background-color: rgb(34, 40, 49, 0.95);
  width: 80px;
  height: 100vh;
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  gap: 1.5rem;
  z-index: 100;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

#sidebar div {
  display: flex;
  justify-content: center;
  align-items: center;
}

#sidebar svg {
  width: 28px;
  height: 28px;
  color: #eeeeee;
  opacity: 0.7;
  transition: color 0.3s ease, opacity 0.3s ease;
}

#sidebar a:hover svg {
  color: #fd7014;
  opacity: 1;
}

#right {
  grid-column: 2 / 3;
  padding: 1rem 85px 1rem 1rem;
  flex-grow: 1;
}

#home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: rgb(34, 40, 49, 0.6);
  border-radius: 0.25rem;
  padding: 2rem;
  margin: 2.5rem auto 0;
  max-width: 1200px;
  width: 90%;
  box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.07),
    0 4px 8px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.07),
    0 16px 32px rgba(0, 0, 0, 0.07), 0 32px 64px rgba(0, 0, 0, 0.07);
  overflow: visible;
  position: relative;
}

#home #welcome {
  grid-column: 1 / 2;
  margin-top: 1rem;
  padding: 2rem;
  z-index: 2;
}

#welcome h2 {
  margin: 0.5rem 0;
  font-size: 2.8rem;
  font-weight: 600;
  color: rgb(238, 238, 238);
}

#welcome p {
  font-size: 1.4rem;
  color: rgb(238, 238, 238);
  margin-bottom: 2.5rem;
}

#univ {
  color: #fd7014;
}

#welcome a {
  text-decoration: none;
  padding: 1rem 2.5rem;
  background-color: #393e46;
  font-size: 1rem;
  color: #eeeeee;
  scroll-behavior: smooth;
  border-radius: 5px;
  display: inline-block;
}

#welcome a:hover {
  color: #ffffff;
  background-color: #fd7014;
  transition: 0.4s;
}

#welcome-pict {
  grid-column: 2 / 3;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
  position: relative;
}

#welcome-pict img {
  width: 30rem;
  height: 30rem;
  margin-top: -7rem;
  margin-bottom: -2rem;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* ORGANIZATION SLIDER STYLES */
#organization-card {
  max-width: 1200px;
  width: 90%;
  margin: 1.5rem auto 5rem auto;
  padding: 1rem 0;
  background-color: rgba(45, 51, 60, 0.7);
  border-radius: 0.25rem;
  position: relative;
  z-index: 5;
}

.org-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.org-slider::before,
.org-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.org-slider::before {
  left: 0;
  background: linear-gradient(to left, rgba(45, 51, 60, 0), rgb(45, 51, 60));
}

.org-slider::after {
  right: 0;
  background: linear-gradient(to right, rgba(45, 51, 60, 0), rgb(45, 51, 60));
}

.org-slide-track {
  display: flex;
  width: calc(200px * 14);
  animation: scroll 40s linear infinite;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.org-slider:hover .org-slide-track {
    animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0) translateZ(0);
  }
  100% {
    transform: translateX(calc(-200px * 7)) translateZ(0);
  }
}

.org-slide {
  height: 60px;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.org-slide img {
  height: 35px;
  width: auto;
  filter: brightness(0) invert(0.9) grayscale(1);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.org-slide:hover img {
    opacity: 1;
}


/* NEW ABOUT ME CARD STYLES */
#about-me-card {
  background-color: rgb(34, 40, 49, 0.6);
  border-radius: 0.25rem;
  padding: 2rem;
  margin: 2.5rem auto 0;
  max-width: 1200px;
  width: 90%;
  box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.07),
    0 4px 8px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.07),
    0 16px 32px rgba(0, 0, 0, 0.07), 0 32px 64px rgba(0, 0, 0, 0.07);
}

#about-me-card h2 {
  margin: 0.5rem 0;
  font-size: 2.8rem;
  font-weight: 600;
  color: rgb(238, 238, 238);
  margin-bottom: 1rem;
}

#about-me-card h2 .highlight {
  color: #fd7014;
}

#about-me-card .tagline {
  font-size: 1.4rem;
  color: rgb(238, 238, 238);
  margin-bottom: 1.5rem;
}

#about-me-card .description {
  font-size: 1.1rem;
  color: #c9c9c9;
  line-height: 1.6;
  margin-bottom: 0;
}


/* EXPERTISE GALLERY STYLES */
#about {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  margin: 0rem auto 0;
  max-width: 1200px;
  width: 90%;
}

#about h2 {
  flex-basis: 100%;
  text-align: center;
  margin-top: 2rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: #eeeeee;
  margin-bottom: 2rem;
}

.expertise-gallery {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 0.25rem;
  overflow: hidden;
  background-color: rgb(57, 62, 70, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  aspect-ratio: 1 / 1;
  grid-column: span 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  padding: 2rem;
  transition: transform 0.4s ease;
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
  color: #eeeeee;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-overlay h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-item-overlay p {
  font-size: 1rem;
  color: #c9c9c9;
  margin-bottom: 0;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-item-overlay h3,
.gallery-item:hover .gallery-item-overlay p {
  transform: translateY(0);
}

/* --- INTERACTIVE EXPERIENCE TIMELINE V5 --- */
#experience {
    padding: 2rem 0;
    margin: 2.5rem auto 0;
    max-width: 1200px;
    width: 90%;
    text-align: center;
    overflow: hidden;
}

#experience h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #eeeeee;
    margin-bottom: 0.5rem;
}

#experience .section-subtitle {
    font-size: 1.1rem;
    color: #c9c9c9;
    margin-bottom: 2rem;
}

.experience-timeline-wrapper {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 3rem 0;
}

.timeline-items-container {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 83.33%;
    z-index: 3;
}

.timeline-line, .timeline-line-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 8px;
    border-radius: 4px;
}

.timeline-line {
    background-color: #393e46;
    width: 83.33%;
    z-index: 1;
}

.timeline-line-progress {
    background: linear-gradient(90deg, #8f94fb, #4e54c8);
    width: 0;
    left: 8.33%; /* (100% - 83.33%) / 2 */
    z-index: 2;
    transition: width 0.4s ease-in-out;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.timeline-point {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #222831;
    border: 4px solid #5c636e;
    color: #a0a0a0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.4s ease;
    position: relative;
    z-index: 4;
}

.timeline-connector {
   display: none;
}

/* Completed State */
.timeline-item.completed .timeline-point {
    border-color: #8f94fb;
    background-color: #4e54c8;
    color: #ffffff;
}

/* Active State */
.timeline-item.active .timeline-point {
    border-color: #a1a5fc;
    background: linear-gradient(135deg, #8f94fb, #4e54c8);
    color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(143, 148, 251, 0.7);
}

.timeline-card-container {
    margin-top: 3rem; 
    position: relative;
    min-height: 450px;
}

.timeline-card {
    display: none;
    flex-direction: row;
    gap: 2rem;
    background-color: rgb(34, 40, 49, 0.6);
    border: 1px solid #393e46;
    border-radius: 10px;
    padding: 2rem;
    text-align: left;
    animation: fadeIn 0.5s ease-in-out;
    min-height: 400px; /* MODIFICATION: Set a minimum height for all cards */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.timeline-card.active {
    display: flex;
}

.card-gallery {
    flex: 1;
    max-width: 50%;
    overflow: hidden; /* MODIFICATION: Prevents image overflow */
    border-radius: 8px; /* MODIFICATION: Apply border radius to the container */
}

.card-gallery img {
    width: 100%;
    height: 100%; /* MODIFICATION: Make image fill the container's height */
    object-fit: cover; /* MODIFICATION: Crop image to fit without distortion */
    border-radius: 0; /* MODIFICATION: Remove radius from image as container has it */
}

.card-details {
    flex: 1;
}

.card-date {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #eeeeee;
    margin: 0.25rem 0;
}

.card-company {
    font-size: 1.1rem;
    color: #fd7014;
    font-weight: 500;
    margin-bottom: 1rem;
}

.card-description {
    font-size: 1rem;
    color: #c9c9c9;
    line-height: 1.6;
}

.timeline-navigation {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.timeline-navigation button {
    background-color: #393e46;
    color: #eeeeee;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.timeline-navigation button:hover:not(:disabled) {
    background-color: #fd7014;
}

.timeline-navigation button:disabled {
    background-color: #2d333b;
    color: #5c636e;
    cursor: not-allowed;
}


/* --- Activities & Skills Section --- */
#activities-skills {
  padding: 2rem 0;
  margin: 2.5rem auto 0;
  max-width: 1200px;
  width: 90%;
}

#activities-skills h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #eeeeee;
  margin-bottom: 0.5rem;
}

#activities-skills .section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #c9c9c9;
  margin-bottom: 2.5rem;
}

.activities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.content-box {
  background-color: rgb(34, 40, 49, 0.6);
  border: 1px solid #393e46;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden; /* Fixes potential overflow issues */
}

.content-box h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #eeeeee;
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #fd7014;
  padding-bottom: 0.5rem;
  display: inline-block;
  flex-shrink: 0;
}

.info-box-content {
    overflow-y: auto;
    padding-right: 10px;
    min-height: 0;
    flex-grow: 1;
}

.info-box-content::-webkit-scrollbar {
  width: 6px;
}
.info-box-content::-webkit-scrollbar-track {
  background: transparent;
}
.info-box-content::-webkit-scrollbar-thumb {
  background-color: #393e46;
  border-radius: 10px;
}
.info-box-content::-webkit-scrollbar-thumb:hover {
  background-color: #fd7014;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-details > * {
    margin: 0;
}

.activity-details h4 {
    font-size: 1.1rem;
    font-weight: 550;
    color: #eeeeee;
    margin-bottom: 0.25rem;
}

.activity-item .role-title {
  font-size: 1rem;
  color: #fd7014;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.activity-item .date {
  font-size: 0.9rem;
  color: #a0a0a0;
}


/* --- Technical Skills Section (REVISED) --- */
.skills-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.skill-toggle-btn {
  background-color: #393e46;
  border: 1px solid #5c636e;
  color: #eeeeee;
  border-radius: 5px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
}

.skill-toggle-btn:hover {
  background-color: #4a515c;
}

/* --- NEW FILTER DROPDOWN STYLES --- */
.filter-dropdown {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #393e46;
}

.filter-dropdown-toggle {
    width: 100%;
    background-color: transparent;
    border: 1px solid #393e46;
    color: #a0a0a0;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-dropdown-toggle:hover {
    color: #eeeeee;
    border-color: #5c636e;
}

.filter-dropdown-toggle svg {
    transition: transform 0.3s ease;
}

.filter-dropdown.open .filter-dropdown-toggle svg {
    transform: rotate(180deg);
}

.filter-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #393e46;
    border: 1px solid #5c636e;
    border-radius: 5px;
    margin-top: 0.25rem;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

.filter-dropdown-menu.show {
    display: block;
}

.filter-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #a0a0a0;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-dropdown-item:hover {
    background-color: #4a515c;
    color: #eeeeee;
}

.filter-dropdown-item.active {
    color: #ffffff;
    background-color: #fd7014;
}

#skills-container {
    overflow-y: auto;
    padding: 0 10px 0 5px;
    min-height: 0;
    flex-grow: 1;
}

#skills-container::-webkit-scrollbar {
  width: 6px;
}
#skills-container::-webkit-scrollbar-track {
  background: transparent;
}
#skills-container::-webkit-scrollbar-thumb {
  background-color: #393e46;
  border-radius: 10px;
}
#skills-container::-webkit-scrollbar-thumb:hover {
  background-color: #fd7014;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category h4 {
    display: none;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 1.5rem;
  transition: all 0.4s ease;
}

.skill-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.skill-item img {
  height: 32px;
  width: 32px;
  transition: all 0.3s ease;
  filter: brightness(0) invert(1);
}

.skill-item:hover img {
    filter: invert(60%) sepia(99%) saturate(1353%) hue-rotate(349deg) brightness(100%) contrast(98%);
    transform: scale(1.1);
}

.skill-name {
    display: none;
}


/* --- Card View Styles (REVISED TO MATCH CERTIFICATIONS) --- */
#skills-container.show-cards .skills-grid {
  grid-template-columns: 1fr;
  gap: 0; /* Remove gap as margin is now on items */
}

#skills-container.show-cards .skill-item {
    background-color: #2d333b;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: default;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #393e46;
}

#skills-container.show-cards .skill-item:last-child {
    margin-bottom: 5px;
}

#skills-container.show-cards .skill-item .skill-name {
    display: block;
    color: #eeeeee;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 2;
}

#skills-container.show-cards .skill-item img {
    height: 24px;
    width: auto;
    max-width: 28px;
    object-fit: contain;
    filter: brightness(0) invert(0.8);
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
    z-index: 2;
}

#skills-container.show-cards .skill-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
}

#skills-container.show-cards .skill-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: #ffffff;
    border-color: transparent;
}

#skills-container.show-cards .skill-item:hover::after {
    opacity: 1;
}

#skills-container.show-cards .skill-item:hover img {
    opacity: 1;
    filter: brightness(0) invert(1);
    transform: scale(1); /* Disable scale on hover for card view logo */
}


/* --- Tech Stack Hover Colors --- */
#skills-container.show-cards .skill-item[data-skill="Python"]:hover::after { background: linear-gradient(90deg, #3670A0, #30363d 120%); }
#skills-container.show-cards .skill-item[data-skill="R"]:hover::after { background: linear-gradient(90deg, #276DC3, #16437E 120%); }
#skills-container.show-cards .skill-item[data-skill="C++"]:hover::after { background: linear-gradient(90deg, #00599C, #00447A 120%); }
#skills-container.show-cards .skill-item[data-skill="Java"]:hover::after { background: linear-gradient(90deg, #E87A11, #B55A07 120%); }
#skills-container.show-cards .skill-item[data-skill="JavaScript"]:hover::after { background: linear-gradient(90deg, #f0db4f, #bdac3c 120%); }
#skills-container.show-cards .skill-item[data-skill="TypeScript"]:hover::after { background: linear-gradient(90deg, #007ACC, #005E9E 120%); }
#skills-container.show-cards .skill-item[data-skill="HTML5"]:hover::after { background: linear-gradient(90deg, #E34F26, #B93F1D 120%); }
#skills-container.show-cards .skill-item[data-skill="CSS3"]:hover::after { background: linear-gradient(90deg, #1572B6, #0F568C 120%); }
#skills-container.show-cards .skill-item[data-skill="PHP"]:hover::after { background: linear-gradient(90deg, #777BB4, #5A5E8E 120%); }
#skills-container.show-cards .skill-item[data-skill="Bash"]:hover::after { background: linear-gradient(90deg, #4EAA25, #387C1A 120%); }
#skills-container.show-cards .skill-item[data-skill="SQL"]:hover::after { background: linear-gradient(90deg, #4479A1, #325976 120%); }
#skills-container.show-cards .skill-item[data-skill="C#"]:hover::after { background: linear-gradient(90deg, #512BD4, #371D92 120%); }
#skills-container.show-cards .skill-item[data-skill="React"]:hover::after { background: linear-gradient(90deg, #61DAFB, #33A9C7 120%); }
#skills-container.show-cards .skill-item[data-skill="Next.js"]:hover::after { background: linear-gradient(90deg, #444444, #222222 120%); }
#skills-container.show-cards .skill-item[data-skill="Bootstrap"]:hover::after { background: linear-gradient(90deg, #7952B3, #563D7C 120%); }
#skills-container.show-cards .skill-item[data-skill="Node.js"]:hover::after { background: linear-gradient(90deg, #68A063, #487045 120%); }
#skills-container.show-cards .skill-item[data-skill="Express"]:hover::after { background: linear-gradient(90deg, #686868, #474747 120%); }
#skills-container.show-cards .skill-item[data-skill="Flask"]:hover::after { background: linear-gradient(90deg, #555555, #333333 120%); }
#skills-container.show-cards .skill-item[data-skill="Django"]:hover::after { background: linear-gradient(90deg, #092E20, #04120D 120%); }
#skills-container.show-cards .skill-item[data-skill="FastAPI"]:hover::after { background: linear-gradient(90deg, #009688, #00695F 120%); }
#skills-container.show-cards .skill-item[data-skill="Hapi"]:hover::after { background: linear-gradient(90deg, #fd7014, #D45F11 120%); }
#skills-container.show-cards .skill-item[data-skill="TensorFlow"]:hover::after { background: linear-gradient(90deg, #FF6F00, #C95800 120%); }
#skills-container.show-cards .skill-item[data-skill="Keras"]:hover::after { background: linear-gradient(90deg, #D00000, #9F0000 120%); }
#skills-container.show-cards .skill-item[data-skill="PyTorch"]:hover::after { background: linear-gradient(90deg, #EE4C2C, #C33B20 120%); }
#skills-container.show-cards .skill-item[data-skill="Scikit-learn"]:hover::after { background: linear-gradient(90deg, #F7931E, #C87615 120%); }
#skills-container.show-cards .skill-item[data-skill="Pandas"]:hover::after { background: linear-gradient(90deg, #150458, #0A0229 120%); }
#skills-container.show-cards .skill-item[data-skill="NumPy"]:hover::after { background: linear-gradient(90deg, #4D77CF, #37579B 120%); }
#skills-container.show-cards .skill-item[data-skill="Matplotlib"]:hover::after { background: linear-gradient(90deg, #8246AF, #5C317C 120%); }
#skills-container.show-cards .skill-item[data-skill="Seaborn"]:hover::after { background: linear-gradient(90deg, #37769F, #26536F 120%); }
#skills-container.show-cards .skill-item[data-skill="OpenCV"]:hover::after { background: linear-gradient(90deg, #CC0000, #9C0000 120%); }
#skills-container.show-cards .skill-item[data-skill="Streamlit"]:hover::after { background: linear-gradient(90deg, #FF4B4B, #D93F3F 120%); }
#skills-container.show-cards .skill-item[data-skill="YOLO"]:hover::after { background: linear-gradient(90deg, #00FFFF, #00BDBD 120%); }
#skills-container.show-cards .skill-item[data-skill="MySQL"]:hover::after { background: linear-gradient(90deg, #4479A1, #325976 120%); }
#skills-container.show-cards .skill-item[data-skill="MongoDB"]:hover::after { background: linear-gradient(90deg, #47A248, #337134 120%); }
#skills-container.show-cards .skill-item[data-skill="Power BI"]:hover::after { background: linear-gradient(90deg, #F2C811, #C7A50B 120%); }
#skills-container.show-cards .skill-item[data-skill="Tableau"]:hover::after { background: linear-gradient(90deg, #E97627, #BC5D1D 120%); }
#skills-container.show-cards .skill-item[data-skill="Looker"]:hover::after { background: linear-gradient(90deg, #4A5DFF, #2D3ED9 120%); }
#skills-container.show-cards .skill-item[data-skill="Excel"]:hover::after { background: linear-gradient(90deg, #217346, #164C2E 120%); }
#skills-container.show-cards .skill-item[data-skill="Google Sheets"]:hover::after { background: linear-gradient(90deg, #0F9D58, #0A6B3B 120%); }
#skills-container.show-cards .skill-item[data-skill="Google Cloud"]:hover::after { background: linear-gradient(90deg, #4285F4, #2A66D9 120%); }
#skills-container.show-cards .skill-item[data-skill="Firebase"]:hover::after { background: linear-gradient(90deg, #FFCA28, #D9AB1F 120%); }
#skills-container.show-cards .skill-item[data-skill="Git"]:hover::after { background: linear-gradient(90deg, #F05033, #C83C23 120%); }
#skills-container.show-cards .skill-item[data-skill="GitHub"]:hover::after { background: linear-gradient(90deg, #444444, #222222 120%); }
#skills-container.show-cards .skill-item[data-skill="AWS"]:hover::after { background: linear-gradient(90deg, #FF9900, #D17F00 120%); }
#skills-container.show-cards .skill-item[data-skill="Azure"]:hover::after { background: linear-gradient(90deg, #0078D4, #005A9E 120%); }
#skills-container.show-cards .skill-item[data-skill="Docker"]:hover::after { background: linear-gradient(90deg, #2496ED, #1A6FB2 120%); }
#skills-container.show-cards .skill-item[data-skill="Jupyter"]:hover::after { background: linear-gradient(90deg, #F37626, #C75F1B 120%); }
#skills-container.show-cards .skill-item[data-skill="Notion"]:hover::after { background: linear-gradient(90deg, #555555, #333333 120%); }
#skills-container.show-cards .skill-item[data-skill="Jira"]:hover::after { background: linear-gradient(90deg, #0052CC, #003B94 120%); }
#skills-container.show-cards .skill-item[data-skill="Trello"]:hover::after { background: linear-gradient(90deg, #0079BF, #005A8E 120%); }
#skills-container.show-cards .skill-item[data-skill="Slack"]:hover::after { background: linear-gradient(90deg, #4A154B, #2C0B2C 120%); }
#skills-container.show-cards .skill-item[data-skill="Word"]:hover::after { background: linear-gradient(90deg, #2B579A, #1C3963 120%); }
#skills-container.show-cards .skill-item[data-skill="PowerPoint"]:hover::after { background: linear-gradient(90deg, #B7472A, #8F371F 120%); }
#skills-container.show-cards .skill-item[data-skill="Google Docs"]:hover::after { background: linear-gradient(90deg, #4A90E2, #306AB5 120%); }
#skills-container.show-cards .skill-item[data-skill="Google Slides"]:hover::after { background: linear-gradient(90deg, #F4B400, #C59000 120%); }
#skills-container.show-cards .skill-item[data-skill="Postman"]:hover::after { background: linear-gradient(90deg, #FF6C37, #D95626 120%); }
#skills-container.show-cards .skill-item[data-skill="VS Code"]:hover::after { background: linear-gradient(90deg, #007ACC, #005E9E 120%); }
#skills-container.show-cards .skill-item[data-skill="Figma"]:hover::after { background: linear-gradient(90deg, #F24E1E, #C63D13 120%); }
#skills-container.show-cards .skill-item[data-skill="Canva"]:hover::after { background: linear-gradient(90deg, #00C4CC, #009399 120%); }
#skills-container.show-cards .skill-item[data-skill="Photoshop"]:hover::after { background: linear-gradient(90deg, #31A8FF, #1E7ABC 120%); }
#skills-container.show-cards .skill-item[data-skill="Illustrator"]:hover::after { background: linear-gradient(90deg, #FF9A00, #D17F00 120%); }
#skills-container.show-cards .skill-item[data-skill="Adobe Premiere Pro"]:hover::after { background: linear-gradient(90deg, #9999FF, #6666D1 120%); }
#skills-container.show-cards .skill-item[data-skill="CorelDRAW"]:hover::after { background: linear-gradient(90deg, #009A4D, #006D36 120%); }


/* --- Certifications Section --- */
#certifications-container {
    overflow-y: auto;
    padding-right: 10px;
    min-height: 0;
    flex-grow: 1;
}

#certifications-container::-webkit-scrollbar {
  width: 6px;
}
#certifications-container::-webkit-scrollbar-track {
  background: transparent;
}
#certifications-container::-webkit-scrollbar-thumb {
  background-color: #393e46;
  border-radius: 10px;
}
#certifications-container::-webkit-scrollbar-thumb:hover {
  background-color: #fd7014;
}

.cert-item {
  background-color: #2d333b;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  color: #eeeeee;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  cursor: pointer;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border: 1px solid #393e46;
}

.cert-item:last-child {
    margin-bottom: 5px;
}

.cert-title {
    flex-grow: 1;
    z-index: 2;
    transition: transform 0.3s ease-in-out;
}

.cert-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    margin-left: 1rem;
    filter: brightness(0) invert(0.8);
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
    z-index: 2;
}

.cert-item::after { /* For gradient overlay on hover */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
}

.cert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: #ffffff;
    border-color: transparent;
}

.cert-item:hover::after {
    opacity: 1;
}

.cert-item:hover .cert-logo {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.cert-item:hover .cert-title {
    transform: translateX(0);
}

/* Provider-specific hover styles */
.cert-item[data-provider="udemy"]:hover::after {
  background: linear-gradient(90deg, #a435f0, #6a2c9e 120%);
}
.cert-item[data-provider="deeplearning"]:hover::after {
  background: linear-gradient(90deg, #e6007e, #b30062 120%);
}
.cert-item[data-provider="dicoding"]:hover::after {
  background: linear-gradient(90deg, #2d3e50, #1a2533 120%);
}
.cert-item[data-provider="dqlab"]:hover::after {
  background: linear-gradient(90deg, #76c83a, #4a9d0a 120%);
}
.cert-item[data-provider="google"]:hover::after {
  background: linear-gradient(90deg, #4285F4, #34A853 120%);
}


/* PROJECT & FILTER STYLES */
#project {
  padding: 2rem 1rem;
  margin: 2.5rem auto 0;
  max-width: 1200px;
  width: 90%;
}

#project h2 {
  font-weight: 700;
  color: rgb(238, 238, 238);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

#project-filters {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.filter-btn {
  background-color: #393e46;
  color: #eeeeee;
  border: 2px solid #393e46;
  padding: 0.5rem 1.25rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: #4a515c;
}

.filter-btn.active {
  background-color: #fd7014;
  color: #ffffff;
  border-color: #fd7014;
}

.hidden {
  display: none;
}

#project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  aspect-ratio: 4 / 3;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card.hide {
  transform: scale(0.9);
  opacity: 0;
  display: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-overlay h4 {
  color: #eeeeee;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  transform: translateY(15px);
  transition: transform 0.4s ease;
}

.project-card-overlay p {
  color: #c9c9c9;
  font-size: 1rem;
  margin: 0;
  transform: translateY(15px);
  transition: transform 0.4s ease 0.1s;
}

.project-card:hover .project-card-overlay h4,
.project-card:hover .project-card-overlay p {
  transform: translateY(0);
}

/* CONTACT SECTION STYLES */
#contact {
  padding: 3rem 1rem;
  margin: 2.5rem auto 0;
  max-width: 1200px;
  width: 90%;
  text-align: center;
}

#contact h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #eeeeee;
  margin-bottom: 0.5rem;
}

#contact h2 span {
  color: #fd7014;
}

#contact p {
  font-size: 1.1rem;
  color: #c9c9c9;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

#contact .form-row {
  display: flex;
  gap: 1.5rem;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 1rem;
  background-color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  color: #222831;
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: #888888;
}

#contact .btn-talk {
  background-color:#ff9650;
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  align-self: center;
}

#contact .btn-talk:hover {
  background-color:#fd7014;
}


/* FOOTER STYLES */
footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid #393e46;
}

footer p {
  color: #a0a0a0;
  font-size: 0.9rem;
  margin: 0;
}


/* --- QUICK LINKS BAR --- */
#quick-links {
  position: fixed;
  top: 50%;
  right: 45px;
  transform: translateY(-50%);
  background-color: rgba(57, 62, 70, 0.8);
  backdrop-filter: blur(5px);
  border-radius: 30px;
  padding: 10px 5px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.quick-link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.quick-link-item svg {
  color: #eeeeee;
  width: 24px;
  height: 24px;
  opacity: 0.8;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.quick-link-item:hover {
  background-color: rgba(253, 112, 20, 0.3);
}

.quick-link-item:hover svg {
  color: #fd7014;
  opacity: 1;
}


/* --- DROPDOWN --- */
.dropdown {
  position: relative;
}

.more-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 55px;
  bottom: 0;
  background-color: rgba(45, 51, 60, 0.9);
  backdrop-filter: blur(5px);
  border-radius: 10px;
  padding: 8px;
  width: 120px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  color: #eeeeee;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
  background-color: #fd7014;
  color: #ffffff;
}

/* --- MODAL STYLES --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  background-color: #222831;
  padding: 1rem;
  border-radius: 10px;
  max-width: 80vw;
  max-height: 90vh;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

#modal-cert-image {
  max-width: 100%;
  max-height: calc(90vh - 4rem); /* Adjust for padding */
  display: block;
  border-radius: 5px;
}

.modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  color: #000;
  background-color: #eeeeee;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  border: 2px solid #222831;
}

.modal-close:hover {
    transform: scale(1.1) rotate(90deg);
    background-color: #fd7014;
    color: #fff;
}


/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 1024px) {
  #container {
    grid-template-columns: 1fr;
  }

  #sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: center;
    padding: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  #right {
    grid-column: 1 / -1;
    padding: 1rem 40px 1rem 1rem;
  }

  #home {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  #welcome h2 {
    font-size: 2.2rem;
  }

  #welcome p {
    font-size: 1.2rem;
  }

  #welcome-pict {
    margin-top: 1rem;
    justify-content: center;
    align-items: flex-end;
  }

  #welcome-pict img {
    margin-top: -4rem;
    width: 18rem;
    height: 18rem;
  }

  #about-me-card {
    padding: 1.5rem;
  }

  #about-me-card h2 {
    font-size: 2.2rem;
  }

  #about-me-card .tagline {
    font-size: 1.2rem;
  }

  #about-me-card .description {
    font-size: 1rem;
  }

  #about {
    padding: 1.5rem 0;
  }

  .expertise-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(n) {
    grid-column: span 1;
  }
  
  .activities-grid {
    grid-template-columns: 1fr;
  }

  #project-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .timeline-card {
    flex-direction: column;
    min-height: auto; /* Let height be natural on mobile */
  }
  .card-gallery, .card-details {
    max-width: 100%;
  }
  .card-gallery {
    height: 250px; /* Give a fixed height for images on mobile stack */
  }
}


@media (max-width: 768px) {
  #right {
    padding: 1rem;
  }

  #quick-links {
    right: 5px;
    padding: 8px 4px;
    gap: 5px;
  }

  .quick-link-item {
    width: 36px;
    height: 36px;
  }

  .quick-link-item svg {
    width: 20px;
    height: 20px;
  }

  .dropdown-menu {
    right: 45px;
  }

  #home {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  #welcome h2 {
    font-size: 1.8rem;
  }

  #welcome p {
    font-size: 1rem;
  }

  #welcome-pict img {
    width: 12rem;
    height: 12rem;
    margin-top: -3rem;
  }

  #about-me-card h2,
  #about h2,
  #experience h2,
  #activities-skills h2,
  #project h2,
  #contact h2 {
    font-size: 2rem;
  }

  .content-box h3 {
      font-size: 1.3rem;
  }

  #about-me-card .tagline {
    font-size: 1rem;
  }

  #about div {
    width: 90%;
  }

  .project-card-overlay h4 {
    font-size: 1.3rem;
  }

  .project-card-overlay p {
    font-size: 0.9rem;
  }

  .org-slide-track {
    animation-duration: 30s;
  }
  .org-slide {
    width: 150px;
  }
  .org-slide-track {
    width: calc(150px * 14);
  }
  @keyframes scroll {
    100% {
      transform: translateX(calc(-150px * 7)) translateZ(0);
    }
  }

  #contact .form-row {
      flex-direction: column;
      gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  #home {
    padding: 1rem;
  }

  #welcome h2 {
    font-size: 1.6rem;
  }

  #welcome p {
    font-size: 0.9rem;
  }

  #about-me-card h2,
  #about h2,
  #experience h2,
  #activities-skills h2,
  #project h2,
  #contact h2 {
    font-size: 1.8rem;
  }

  .expertise-gallery {
    grid-template-columns: 1fr;
  }

  #project-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .org-slider::before,
  .org-slider::after {
      width: 50px;
  }
  .org-slide {
      width: 120px;
  }
  .org-slide-track {
      width: calc(120px * 14);
  }
  @keyframes scroll {
      100% {
      transform: translateX(calc(-120px * 7)) translateZ(0);
      }
  }
}

/* --- SCROLL ANIMATION --- */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}