/*--------------------------------------------------------------
# Custom styles for the Syal Khan portfolio.
# Extends the iPortfolio template: download buttons, the technology
# logo grid, the portfolio detail link and the project modals.
--------------------------------------------------------------*/

/* Download and visit-site buttons */
.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 50px;
  background: var(--accent-color);
  color: var(--contrast-color);
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid var(--accent-color);
}

.btn-cv:hover {
  background: transparent;
  color: var(--accent-color);
}

.btn-cv.disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}

/* Keep the outline readable against the dark hero on hover */
.hero .btn-cv:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* Skills: "Languages & Frameworks" subheading */
.skills-subtitle {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--heading-color);
}

/* Skills: responsive grid of technology logos */
.tech-grid .tech-item {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 22px 10px 16px;
  text-align: center;
  height: 100%;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tech-grid .tech-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}

.tech-grid .tech-item img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 12px;
}

.tech-grid .tech-item span {
  display: block;
  font-family: var(--nav-font);
  font-size: 14px;
  color: var(--default-color);
}

/* About: two-column introduction */
.about-content p {
  margin-bottom: 0;
}

/* Portfolio cards */
.portfolio-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
  margin-bottom: 18px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-screenshot:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.portfolio-name {
  font-family: var(--heading-font);
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--heading-color);
}

/* Project modals */
.modal-content {
  border: none;
  border-radius: 14px;
  overflow: hidden;
}

/* Accent-coloured modal header (matches the reference) */
.project-modal-header {
  background: var(--accent-color);
  border-bottom: none;
}

.project-modal-header .modal-title {
  font-family: var(--heading-font);
  color: #ffffff;
  font-weight: 600;
  margin: 0;
}

/* "Technologies Used" heading and list inside the modal */
.modal-body .tech-heading {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 18px;
  margin-top: 22px;
  margin-bottom: 12px;
  color: var(--heading-color);
}

.tech-list {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.tech-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
