/* =========================================
   ILHAM ENGINEERING PORTFOLIO
   Clean Industrial Professional Theme
========================================= */

:root {
  --navy: #071B35;
  --navy-light: #102D50;
  --blue: #1769AA;
  --gold: #E5B638;
  --white: #FFFFFF;
  --light: #F3F6FA;
  --text: #26364A;
  --muted: #64748B;
  --content-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
}
a { text-decoration: none; }
button { font: inherit; }
section[id] { scroll-margin-top: 90px; }
.container, .experience-container { width: min(var(--content-width), 100%); margin: 0 auto; }

/* NAVIGATION */
.header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.navbar {
  width: min(var(--content-width), 100%);
  min-height: 76px;
  margin: auto;
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.navbar-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo {
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  white-space: nowrap;
}
.logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-links a {
  color: #DCE6F1;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .25s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold); }

/* Profile appears outside Home */
.navbar-profile {
  width: 0;
  height: 40px;
  opacity: 0;
  overflow: hidden;
  flex: 0 0 auto;
  border: 2px solid var(--gold);
  border-radius: 50%;
  transform: translateX(-10px) scale(.75);
  pointer-events: none;
  transition: width .4s ease, opacity .3s ease, transform .4s ease;
}
.navbar-profile img { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.header.show-profile .navbar-profile {
  width: 40px;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.navbar-profile:hover { box-shadow: 0 0 14px rgba(229,182,56,.6); }

/* HOME */
.hero {
  min-height: 650px;
  padding: 85px 7%;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(23,105,170,.35), transparent 35%),
    linear-gradient(135deg, var(--navy), var(--navy-light));
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(229,182,56,.25);
  transform: rotate(45deg);
  right: -130px;
  bottom: -180px;
}
.hero-container {
  width: min(1250px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr .7fr;
  align-items: center;
  gap: 55px;
}
.hero-content { position: relative; z-index: 1; }
.hero-label, .section-label {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 12px;
}
.hero h1 { font-size: clamp(38px, 5.5vw, 70px); line-height: 1.1; font-weight: 800; margin-bottom: 18px; }
.hero h2 { font-size: clamp(19px, 2.5vw, 27px); font-weight: 600; margin-bottom: 22px; }
.hero-description { color: #D0DCE9; max-width: 650px; font-size: 17px; margin-bottom: 20px; }
.tagline { color: var(--gold); font-weight: 700; letter-spacing: 2px; margin-bottom: 28px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 700;
  transition: .25s ease;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #F5CF64; transform: translateY(-3px); }
.btn-secondary { color: var(--white); border: 1px solid var(--gold); }
.btn-secondary:hover { background: var(--gold); color: var(--navy); }
.hero-photo {
  width: 100%;
  max-width: 300px;
  height: 420px;
  justify-self: center;
  overflow: hidden;
  border: 4px solid var(--white);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 15px 40px rgba(0,0,0,.3);
  animation: slideFromRight 1s .25s both;
}
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* SECTION BASE */
.section { padding: 90px 7%; }
.section-heading h2, .section h2 { color: var(--navy); font-size: clamp(30px, 4vw, 38px); line-height: 1.2; margin-bottom: 20px; }
.section-heading { margin-bottom: 25px; }

/* ABOUT - restored two-column content and information cards */
.about-section { max-width: none; background: var(--light); }
.about-container {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.about-container > .section-heading { margin: 0; }
.about-intro { max-width: 440px; color: #526276; font-size: 17px; line-height: 1.8; }
.about-content > p { color: #526276; font-size: 16px; margin-bottom: 18px; }
.about-details { display: grid; gap: 14px; margin-top: 26px; }
.about-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: 10px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 5px 20px rgba(7,27,53,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.about-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(7,27,53,.1); }
.about-icon { font-size: 26px; line-height: 1.4; }
.about-card h3 { color: var(--navy); font-size: 17px; margin-bottom: 3px; }
.about-card p { color: #26364A; font-size: 14px; font-weight: 650; }
.about-card small { color: #78889A; font-size: 13px; }

/* EXPERIENCE */
.experience-section { max-width: none; background: var(--light); }
.experience-heading { max-width: 750px; margin: 0 auto 38px; }
.experience-heading h2 { margin-bottom: 12px; }
.experience-heading > p:last-child { color: #526276; }
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  width: min(var(--content-width), 100%);
  margin: auto;
}
.experience-item { min-width: 0; width: 100%; order: 1; }
.experience-item.active { grid-column: 1 / -1; order: 0; }
.experience-grid .experience-card {
  width: 100%;
  min-height: 275px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  text-align: left;
  font-family: inherit;
  color: inherit;
  background: var(--white);
  border: 1px solid #E1E7EF;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.experience-grid .experience-card:hover { border-color: var(--blue); box-shadow: 0 12px 30px rgba(7,27,53,.12); }
.experience-item.active .experience-card {
  border: 2px solid var(--blue);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #F5F9FF;
  box-shadow: 0 12px 30px rgba(23,105,170,.12);
}
.experience-card-icon { font-size: 36px; }
.experience-grid .experience-card h3 { color: var(--navy); font-size: 21px; margin-top: 4px; }
.experience-grid .experience-card h4 { color: var(--blue); font-size: 15px; }
.experience-grid .experience-card p { color: #68778A; font-size: 14px; }
.experience-type { display: inline-block; padding: 7px 10px; border-radius: 20px; font-size: 10px; font-weight: 800; letter-spacing: .8px; }
.experience-type.internship { background: #E5F1FF; color: var(--blue); }
.experience-type.casual { background: #FFF4DC; color: #A56B00; }
.experience-view { display: flex; align-items: center; gap: 8px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .7px; margin-top: auto; padding-top: 8px; }
.experience-view span { font-size: 20px; transition: transform .3s ease; }
.experience-item.active .experience-view span { transform: rotate(45deg); }
.experience-detail {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--blue);
  border-top: 1px solid #DCE5EF;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 12px 30px rgba(23,105,170,.12);
  overflow: hidden;
}
.experience-detail[hidden] { display: none; }
.experience-detail-content { padding: 30px; animation: slideFromBottom .4s ease both; }
.experience-detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.detail-label { margin-bottom: 5px; }
.experience-detail-header h3 { color: var(--navy); font-size: 24px; margin: 5px 0; }
.experience-detail-header h4 { color: var(--blue); font-size: 16px; }
.experience-close {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 0; border-radius: 50%; background: #EDF2F7; color: var(--navy);
  font-size: 25px; cursor: pointer; transition: .25s ease;
}
.experience-close:hover { background: var(--navy); color: var(--white); transform: rotate(90deg); }
.experience-detail .experience-description { color: #59697C; line-height: 1.8; margin-bottom: 22px; }
.experience-detail h5 { color: var(--navy); font-size: 16px; margin-bottom: 10px; }
.experience-detail ul { padding-left: 22px; color: #59697C; line-height: 1.8; }
.experience-detail li { margin-bottom: 7px; }
.experience-detail .experience-footer {
  margin-top: 20px; padding: 13px 17px; background: var(--light);
  border-left: 4px solid var(--blue); border-radius: 6px; color: #34465B; font-size: 14px;
}

/* EXPERIENCE GALLERY */
.experience-gallery { margin-top: 35px; padding-top: 28px; border-top: 1px solid #E1E7EF; }
.gallery-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.gallery-heading h4 { color: var(--navy); font-size: 21px; }
.gallery-heading .section-label { margin-bottom: 3px; }
.gallery-counter { color: var(--blue); font-size: 14px; font-weight: 700; }
.gallery-image-container { position: relative; width: 100%; height: 420px; overflow: hidden; background: var(--navy); border-radius: 12px; }
.gallery-image-container img { width: 100%; height: 100%; display: block; object-fit: contain; cursor: zoom-in; transition: opacity .25s ease; }
.gallery-image-container img.changing { opacity: 0; }
.gallery-caption { margin-top: 16px; }
.gallery-caption h5 { color: var(--navy); font-size: 17px; margin-bottom: 5px; }
.gallery-caption p { color: #68778A; font-size: 14px; }
.gallery-navigation { display: flex; justify-content: center; align-items: center; margin-top: 16px; }
.gallery-dots { display: flex; justify-content: center; gap: 9px; }
.gallery-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #CBD5E1; cursor: pointer; }
.gallery-dot.active { background: var(--blue); transform: scale(1.3); }
.gallery-hint { color: #8995A5; font-size: 12px; text-align: center; margin-top: 12px; }

/* PROJECTS */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.content-card {
  margin-top: 0;
  padding: 26px;
  background: var(--light);
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  transition: transform .25s ease, box-shadow .25s ease;
}
.content-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(7,27,53,.1); }
.content-card h3 { color: var(--navy); font-size: 19px; margin-bottom: 9px; }
.content-card p { color: #526276; }

/* SKILLS */
.skills-section { background: var(--light); }
.skills-list { display: flex; flex-wrap: wrap; gap: 14px; }
.skills-list span { padding: 11px 18px; background: var(--navy-light); color: var(--white); border-radius: 5px; border-bottom: 3px solid var(--gold); font-size: 14px; font-weight: 600; }

/* CONTACT + FOOTER */
.contact-section { background: #EAF0F6; }
.contact-content p { max-width: 700px; color: #526276; margin-bottom: 15px; }
.contact-content a { color: var(--blue); font-weight: 700; overflow-wrap: anywhere; }
.footer { padding: 25px 15px; background: var(--navy); color: #AAB8C8; text-align: center; font-size: 13px; }
.footer p + p { margin-top: 4px; color: var(--gold); }

/* LIGHTBOX */
.photo-lightbox {
  position: fixed; inset: 0; z-index: 10000; padding: 35px;
  display: flex; justify-content: center; align-items: center;
  background: rgba(0,0,0,.93); animation: fadeIn .25s ease;
}
.photo-lightbox[hidden] { display: none; }
.photo-lightbox img { max-width: 95%; max-height: 90vh; object-fit: contain; border-radius: 8px; }
#lightboxClose { position: absolute; top: 15px; right: 28px; border: 0; background: transparent; color: white; font-size: 42px; cursor: pointer; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideFromRight { from { opacity: 0; transform: translateX(45px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideFromBottom { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
.hero-label, .hero h1, .hero h2, .hero-description, .tagline, .hero-buttons { animation: slideFromBottom .75s ease both; }
.hero-label { animation-delay: .1s; }
.hero h1 { animation-delay: .2s; }
.hero h2 { animation-delay: .3s; }
.hero-description { animation-delay: .4s; }
.tagline { animation-delay: .5s; }
.hero-buttons { animation-delay: .6s; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .navbar { padding-inline: 20px; gap: 15px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .hero-container { gap: 30px; }
  .about-container { gap: 35px; }
}
@media (max-width: 768px) {
  .navbar { min-height: auto; flex-wrap: wrap; justify-content: center; padding: 12px 4%; }
  .navbar-brand { justify-content: center; }
  .nav-links { justify-content: center; flex-wrap: wrap; gap: 8px 16px; }
  .nav-links a { font-size: 12px; }
  .logo { font-size: 21px; }
  .navbar-profile { height: 34px; }
  .navbar-profile img { width: 30px; height: 30px; }
  .header.show-profile .navbar-profile { width: 34px; }
  .hero { min-height: auto; padding: 65px 7%; }
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-description { margin-inline: auto; font-size: 15px; }
  .hero-buttons { justify-content: center; }
  .hero-photo { width: 65%; max-width: 250px; height: 340px; }
  .section { padding: 65px 7%; }
  .about-container { grid-template-columns: 1fr; gap: 28px; }
  .about-intro { max-width: none; }
  .experience-grid { grid-template-columns: 1fr; gap: 16px; }
  .experience-item, .experience-item.active { grid-column: 1; }
  .experience-grid .experience-card { min-height: 0; padding: 23px; }
  .experience-detail-content { padding: 22px; }
  .experience-detail-header h3 { font-size: 21px; }
  .project-grid { grid-template-columns: 1fr; }
  .gallery-image-container { height: 280px; }
  .photo-lightbox { padding: 15px; }
}
@media (max-width: 420px) {
  .nav-links { gap: 7px 12px; }
  .nav-links a { font-size: 11px; }
  .hero-photo { width: 75%; height: 310px; }
  .gallery-heading h4 { font-size: 18px; }
  .gallery-dots { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ABOUT ME - DESCRIPTION POSITION */
.about-description {
    margin-top: 22px;
}

.about-description p {
    color: #526276;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-container {
    align-items: center;
}

.about-content {
    width: 100%;
}

.about-details {
    margin-top: 0;
}

/* FIX NAVBAR PROFILE PHOTO */
.navbar-profile {
    display: flex !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #E5B638;
    border-radius: 50%;
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: width .4s ease, opacity .4s ease,
                transform .4s ease, margin .4s ease;
}

.navbar-profile img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 50%;
}

/* Hide photo only in Home section */
.header.on-home .navbar-profile {
    width: 0 !important;
    min-width: 0;
    opacity: 0;
    transform: translateX(-12px) scale(.7);
    border-width: 0;
    pointer-events: none;
}

/* AUTO SCROLL EXPERIENCE */
.experience-item {
    scroll-margin-top: 110px;
}

/* ACTIVE NAVIGATION MENU */
.nav-links a {
    transition: color 0.3s ease;
}

.nav-links a.active {
    color: #E5B638 !important;
    font-weight: 700;
}

.nav-links a:hover {
    color: #E5B638;
}


/* =================================
   PROJECT SHOWCASE
================================= */

.projects-description {
    color: #526276;
    margin-top: 12px;
    line-height: 1.7;
}

.project-grid {
    grid-template-columns: repeat(2, 1fr);
}

.project-card {
    width: 100%;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    background: #FFFFFF;
    padding: 28px;
    transition: transform .3s ease,
                box-shadow .3s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(7, 27, 53, .13);
}

.project-category {
    display: inline-block;
    color: #C49A20;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.project-view {
    display: inline-block;
    color: #1769AA;
    font-weight: 700;
    font-size: 14px;
    margin-top: 18px;
}


/* =================================
   PROJECT DETAIL MODAL
================================= */

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;
    background: rgba(3, 15, 31, .76);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .3s ease,
                visibility .3s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.project-modal-content {
    position: relative;
    width: 100%;
    max-width: 950px;
    max-height: 85vh;
    overflow-y: auto;

    background: #FFFFFF;
    border-radius: 14px;
    padding: 40px;

    transform: translateY(25px) scale(.97);
    transition: transform .3s ease;

    box-shadow: 0 25px 80px rgba(0, 0, 0, .3);
}

.project-modal.active .project-modal-content {
    transform: translateY(0) scale(1);
}


/* PROJECT MODAL CLOSE BUTTON */

.project-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;

    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;

    background: #EDF1F6;
    color: #071B35;

    font-size: 27px;
    line-height: 1;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: .2s ease;
}

.project-modal-close:hover {
    background: #E5B638;
    color: #071B35;
}

.modal-project-category {
    color: #C49A20;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.modal-project-title {
    color: #071B35;
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.modal-project-description {
    color: #526276;
    line-height: 1.8;
    margin-bottom: 25px;
}

.modal-project-section {
    margin-top: 25px;
}

.modal-project-section h3 {
    color: #071B35;
    font-size: 18px;
    margin-bottom: 12px;
}

.modal-project-section p,
.modal-project-section li {
    color: #526276;
    line-height: 1.8;
    font-size: 14px;
}

.modal-project-section ul {
    padding-left: 20px;
}

.modal-project-photo {
    width: 100%;
    min-height: 180px;
    border: 2px dashed #C8D2DF;
    border-radius: 10px;
    background: #F3F6FA;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #718096;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}


/* PROJECT RESPONSIVE */

@media (max-width: 768px) {

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-modal {
        padding: 12px;
    }

    .project-modal-content {
        padding: 25px 20px;
        max-height: 90vh;
    }

    .modal-project-title {
        font-size: 23px;
    }

}


/* PROJECT MODAL - SIMPLE FOUR-PART LAYOUT */
.modal-project-title {
  padding-right: 48px;
  margin-bottom: 26px;
}
.modal-project-section {
  margin-top: 28px;
}
.modal-project-section h3 {
  margin-bottom: 12px;
}
.modal-project-section p,
.modal-project-section li {
  color: #526276;
  line-height: 1.8;
  font-size: 15px;
}
.modal-project-section ul {
  padding-left: 21px;
}
.modal-project-photo {
  width: 100%;
  min-height: 230px;
  border: 2px dashed #C8D2DF;
  border-radius: 10px;
  background: #F3F6FA;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #718096;
  text-align: center;
}


/* =========================================
   PROJECT PHOTO GALLERY (SWIPEABLE)
========================================= */
.project-gallery { margin: 0; }

.pg-viewport {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0a1a33;
}

.pg-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  outline: none;
}
.pg-track::-webkit-scrollbar { display: none; }
.pg-track.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }

.pg-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  aspect-ratio: 16 / 10;
}
.pg-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
}

.pg-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 26, 51, .75);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
.pg-btn:hover { background: #E5B638; color: #0a1a33; }
.pg-btn:disabled { opacity: .3; cursor: default; pointer-events: none; }
.pg-prev { left: 12px; }
.pg-next { right: 12px; }

.pg-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(10, 26, 51, .75);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.pg-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.pg-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c5cedd;
  cursor: pointer;
  transition: background .2s, width .2s;
}
.pg-dot.active { width: 24px; border-radius: 999px; background: #E5B638; }

@media (max-width: 640px) {
  .pg-btn { width: 34px; height: 34px; font-size: 22px; }
  .pg-slide { aspect-ratio: 4 / 3; }
}


/* EXPERIENCE GALLERY - arrows placed on the photo */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 26, 51, .75);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.gallery-arrow:hover { background: #E5B638; color: #0a1a33; }
.gallery-arrow:disabled { display: none; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

@media (max-width: 640px) {
  .gallery-arrow { width: 34px; height: 34px; font-size: 22px; }
}

/* zoom cursor on project gallery photos */
.pg-slide img { cursor: zoom-in; }
.pg-track.dragging .pg-slide img { cursor: grabbing; }

/* project gallery: zoom button + hint */
.pg-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 26, 51, .75);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.pg-zoom:hover { background: #E5B638; color: #0a1a33; }
.pg-hint { margin: 10px 0 0; text-align: center; font-size: 12px; color: #8995A5; }


/* =========================================
   CERTIFICATES
========================================= */
.certificates-section { background: var(--light); }

.cert-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 30px;
}
.cert-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #D3DCE8;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.cert-tab:hover { border-color: var(--blue); color: var(--blue); }
.cert-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.cert-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(7, 27, 53, .08);
  font-size: 12px;
  text-align: center;
}
.cert-tab.active .cert-count { background: rgba(255, 255, 255, .2); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 22px;
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  background: #fff;
  padding: 26px;
}
.cert-card[hidden] { display: none; }
.cert-card h3 { font-size: 18px; line-height: 1.4; }

.cert-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.cert-category,
.cert-award {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}
.cert-competition { background: #FFF4D6; color: #9A7410; }
.cert-competency  { background: #DDF3EE; color: #0F766E; }
.cert-training    { background: #E3F0FB; color: #1769AA; }
.cert-award       { background: var(--gold); color: var(--navy); }

.cert-issuer { color: var(--navy-light) !important; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.cert-date { color: var(--muted); font-size: 13px; }
.cert-card .project-view { margin-top: auto; padding-top: 18px; }
.cert-card .project-view small { color: var(--muted); font-weight: 600; }

.cert-modal-meta { color: #526276; font-size: 14px; line-height: 1.7; margin-bottom: 6px; }
.cert-modal-meta strong { color: var(--navy); }

/* gallery with a single photo: no arrows, dots, counter */
.project-gallery.single .pg-btn,
.project-gallery.single .pg-dots,
.project-gallery.single .pg-counter { display: none; }
.project-gallery.single .pg-track { cursor: zoom-in; }


/* small phones: keep the navbar logo inside the screen */
@media (max-width: 430px) {
  .navbar-brand { max-width: 100%; min-width: 0; }
  .logo { font-size: 17px; letter-spacing: .5px; white-space: normal; text-align: center; }
}


/* =========================================
   SKILLS (hard + soft) & CONTACT BUTTONS
========================================= */
.skills-subtitle {
  color: var(--navy);
  font-size: 22px;
  margin: 34px 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  line-height: 1.2;
}
.skills-subtitle:first-of-type { margin-top: 10px; }

.skills-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.skills-group {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(7, 27, 53, .05);
}
.skills-group h4 {
  color: #C49A20;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.skills-group .skills-list { gap: 10px; }
.skills-group .skills-list span { padding: 9px 14px; font-size: 13px; }

.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.soft-skill-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 4px 16px rgba(7, 27, 53, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.soft-skill-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(7, 27, 53, .1); }
.soft-skill-icon { display: block; font-size: 26px; margin-bottom: 12px; }
.soft-skill-card h4 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.soft-skill-card p { color: #526276; font-size: 14px; line-height: 1.7; }

.contact-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 18px; }
.contact-content .contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.contact-content .contact-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(7, 27, 53, .18); filter: brightness(1.08); }
.contact-btn-email    { background: var(--navy); }
.contact-btn-linkedin { background: #0A66C2; }
.contact-btn-whatsapp { background: #128C7E; }
.contact-email-text { font-size: 14px; }

@media (max-width: 900px) {
  .soft-skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .skills-groups, .soft-skills-grid { grid-template-columns: 1fr; }
  .skills-group { padding: 20px; }
  .contact-buttons { flex-direction: column; }
  .contact-content .contact-btn { justify-content: center; width: 100%; }
}

.contact-btn-cv { background: var(--gold); color: var(--navy) !important; }


/* =========================================
   ORGANIZATIONAL EXPERIENCE
========================================= */
.org-section { width: min(var(--content-width), 100%); margin: 60px auto 0; }
.org-title { color: var(--navy); font-size: clamp(24px, 3vw, 30px); line-height: 1.2; margin: 6px 0 24px; }
.org-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.org-card {
  background: var(--white);
  border: 1px solid #E1E7EF;
  border-left: 4px solid var(--gold);
  border-radius: 16px;
  padding: 26px 28px;
  transition: box-shadow .3s ease, transform .3s ease;
}
.org-card:hover { box-shadow: 0 12px 30px rgba(7,27,53,.1); transform: translateY(-3px); }
.org-period {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #E3F0FB;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: 14px;
}
.org-card h4 { color: var(--navy); font-size: 18px; line-height: 1.4; margin-bottom: 4px; }
.org-place { color: var(--blue); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.org-card p:last-child { color: #526276; font-size: 14px; line-height: 1.75; }

@media (max-width: 760px) {
  .org-grid { grid-template-columns: 1fr; gap: 16px; }
  .org-section { margin-top: 44px; }
  .org-card { padding: 22px; }
}
