body {
	  background-image: url('/images/complexsystem4.png'); /* put your image in /static/images/ */
	    background-size: auto;
	      background-repeat: repeat-y;
	        background-position: center center;
		background-attachment: fixed;
	}

/* Project cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  border: 1px solid #ffc7ec;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 199, 236, 0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  box-shadow: 0 0 18px rgba(255, 199, 236, 0.35);
  transform: translateY(-3px);
}

.project-preview {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-info {
  padding: 1rem;
}

.project-title {
  color: #ffc7ec;
  margin: 0 0 0.5rem;
  font-size: 0.9em;
}

.project-description {
  font-size: 0.7em;
  color: #f2edef;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tag {
  background: rgba(255, 199, 236, 0.12);
  border: 1px solid rgba(255, 199, 236, 0.4);
  color: #ffc7ec;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.6em;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-link {
  color: #ffc7ec;
  font-size: 0.7em;
  text-decoration: none;
  border: 1px solid #ffc7ec;
  padding: 4px 14px;
  border-radius: 4px;
  transition: background 0.2s;
}

.project-link:hover {
  background: rgba(255, 199, 236, 0.2);
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Clickable card wrapper */
.project-card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.project-card-link:visited {
  color: inherit;
}

.project-link-details {
  margin-left: auto;
  cursor: pointer;
}

/* Project detail page */
.project-detail-hero {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.project-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-desc {
  font-size: 0.85em;
  color: #f2edef;
  margin: 0.5rem 0 1rem;
}

.project-detail-links {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
}

.project-detail-body img {
  border-radius: 6px;
  margin: 1rem 0;
}

.project-detail-body video {
  border-radius: 6px;
  margin: 1rem 0;
}

.project-back {
  margin-top: 2rem;
}

/* ── Resume toggle page ── */
.resume-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

.resume-toggle-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.resume-toggle-label {
  color: #ffc7ec;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.resume-toggle-switch {
  display: flex;
  border: 1px solid #ffc7ec;
  border-radius: 6px;
  overflow: hidden;
}

.toggle-btn {
  background: transparent;
  color: #ffc7ec;
  border: none;
  padding: 6px 18px;
  font-size: 0.8em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.toggle-btn:not(:last-child) {
  border-right: 1px solid #ffc7ec;
}

.toggle-btn.active {
  background: #ffc7ec;
  color: #1a1a2e;
  font-weight: 600;
}

.toggle-btn:hover:not(.active) {
  background: rgba(255, 199, 236, 0.15);
}

.resume-download-btn {
  margin-left: auto;
  color: #ffc7ec;
  border: 1px solid #ffc7ec;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.8em;
  text-decoration: none;
  transition: background 0.2s;
}

.resume-download-btn:hover {
  background: rgba(255, 199, 236, 0.15);
}

.resume-view.hidden {
  display: none;
}

.resume-header {
  border-bottom: 1px solid rgba(255, 199, 236, 0.3);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.resume-header h1 {
  color: #ffc7ec;
  margin: 0 0 0.4rem;
  font-size: 1.6em;
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78em;
  color: #ccc;
  margin-bottom: 0.5rem;
}

.resume-contact i {
  color: #ffc7ec;
  margin-right: 4px;
}

.resume-tagline {
  font-size: 0.82em;
  color: #ffc7ec;
  opacity: 0.8;
  margin: 0.25rem 0 0;
  font-style: italic;
}

.resume-section {
  margin-bottom: 1.75rem;
}

.resume-section h2 {
  color: #ffc7ec;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 199, 236, 0.25);
  padding-bottom: 0.3rem;
  margin-bottom: 0.75rem;
}

.resume-item {
  margin-bottom: 1rem;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.resume-item-title {
  color: #f2edef;
  font-weight: 600;
  font-size: 0.85em;
}

.resume-item-date {
  color: #aaa;
  font-size: 0.75em;
  white-space: nowrap;
}

.resume-item-sub {
  color: #aaa;
  font-size: 0.78em;
  display: block;
  margin-bottom: 0.3rem;
}

.resume-item ul {
  margin: 0.4rem 0 0 1.2rem;
  padding: 0;
}

.resume-item li {
  font-size: 0.8em;
  color: #ddd;
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.resume-item p {
  font-size: 0.8em;
  color: #ddd;
  margin: 0.3rem 0 0;
  line-height: 1.5;
}

.resume-skills-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-group {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.8em;
}

.skill-group-label {
  color: #ffc7ec;
  font-weight: 600;
  min-width: 110px;
  flex-shrink: 0;
}

.skill-tags {
  color: #ddd;
}

@media (max-width: 600px) {
  .resume-toggle-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .resume-download-btn {
    margin-left: 0;
  }
  .resume-item-header {
    flex-direction: column;
  }
  .skill-group {
    flex-direction: column;
    gap: 0.2rem;
  }
  .skill-group-label {
    min-width: unset;
  }
}

