* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0b0d10;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #e8edf3;
  line-height: 1.5;
  padding: 2rem 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* header / intro */
.intro {
  margin-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.intro h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(145deg, #f0f5ff, #b6c9f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.intro .tagline {
  font-size: 1.2rem;
  font-weight: 400;
  color: #a8bbc9;
  border-left: 4px solid #32608b;
  padding-left: 1rem;
  margin-top: 0.25rem;
}

.intro .badge {
  background: #1e2630;
  padding: 0.5rem 1.2rem;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #cddcec;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  border: 1px solid #2d3742;
  margin-top: 0.5rem;
}

/* About Me box */
.about-box {
  background: #141b24;
  border: 1px solid #26313d;
  border-radius: 0;
  padding: 1.8rem 2.2rem;
  margin: 0.5rem 0 2.5rem 0;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.8rem;
  transition: border-color 0.2s;
}

.about-box:hover {
  border-color: #3f4d5e;
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #e0ecfe;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.about-content p {
  color: #b4c7db;
  font-size: 1rem;
  max-width: 700px;
  line-height: 1.6;
}

.about-content .highlight {
  color: #d4b87a;
  font-weight: 450;
}

.about-content .contact-links {
  margin-top: 0.6rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.about-content .contact-links a {
  color: #8ba0b5;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  transition: 0.1s;
  font-weight: 450;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.about-content .contact-links a:hover {
  color: #d6e8ff;
  border-bottom-color: #c9a84c;
}

.about-content .contact-links svg {
  fill: #8ba0b5;
  transition: fill 0.15s;
}
.about-content .contact-links a:hover svg {
  fill: #d6e8ff;
}

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

@media (max-width: 800px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .intro {
    flex-direction: column;
  }
  .about-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.8rem;
  }
}

/* card — dark */
.project-card {
  background: #141b24;
  border-radius: 0;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0,0,0,0.4);
  padding: 1.8rem 1.8rem 2rem 1.8rem;
  transition: all 0.25s ease;
  border: 1px solid #26313d;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: 0 24px 48px -16px #000000cc;
  border-color: #3f4d5e;
  background: #18212b;
}

/* ----- FLAGSHIP with subtle golden glow ----- */
.project-card.flagship {
  background: #151e29;
  border: 1px solid #4a3f2a;
  box-shadow: 0 0 30px -6px rgba(212, 175, 55, 0.08), 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  position: relative;
  transition: all 0.25s ease;
}

.project-card.flagship:hover {
  box-shadow: 0 0 45px -8px rgba(212, 175, 55, 0.15), 0 24px 48px -16px #000000cc;
  border-color: #6a5a32;
}

.project-card.flagship::before {
  content: "★ FLAGSHIP";
  position: absolute;
  top: -0.6rem;
  right: 1.8rem;
  background: #2a241a;
  color: #d4b87a;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 1.2rem;
  border-radius: 0;
  border: 1px solid #4a3f2a;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(4px);
}

.project-card.flagship .project-title {
  background: #d4b87a;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-card.flagship .project-links a {
  color: #b8a06a;
}
.project-card.flagship .project-links a:hover {
  color: #e8d5a0;
  border-bottom-color: #c9a84c;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.project-title {
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  background: #b4cef0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-tech {
  background: #1f2a35;
  padding: 0.2rem 0.9rem;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #b4cbe3;
  border: 1px solid #354252;
  white-space: nowrap;
  margin-top: 0.2rem;
}

.project-card.flagship .project-tech {
  border-color: #4a3f2a;
  color: #d4b87a;
  background: #1f1a10;
}

.screenshot {
  background: #10171f;
  border-radius: 0;
  margin: 1rem 0 1.2rem 0;
  text-align: center;
  border: 1px solid #26313d;
  transition: 0.1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  background-image: radial-gradient(circle at 20% 30%, #26313d 1px, transparent 1px);
  background-size: 24px 24px;
}

.project-card.flagship .screenshot {
  border-color: #3a3222;
  background-image: radial-gradient(circle at 20% 30%, #3a3222 1px, transparent 1px);
}

.screenshot img {
  max-width: 100%;
  border-radius: 0;
}

.desc {
  margin: 0.8rem 0 1rem 0;
  color: #c7d8ea;
  font-size: 0.98rem;
  line-height: 1.6;
  flex: 1;
}

.desc-short {
  margin-bottom: 0.5rem;
}

.desc-full {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #2a3847;
  color: #bdd3ec;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-more-btn {
  background: transparent;
  border: 1px solid #3f4d5e;
  color: #b4cbe3;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 1.1rem;
  border-radius: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.5rem 0 0.2rem 0;
  transition: all 0.2s ease;
  background: #1b2430;
  letter-spacing: 0.02em;
  align-self: flex-start;
}

.view-more-btn:hover {
  background: #263240;
  border-color: #5a6f8c;
  color: #e0ecfe;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.project-card.flagship .view-more-btn {
  border-color: #4a3f2a;
  color: #d4b87a;
  background: #1f1a10;
}

.project-card.flagship .view-more-btn:hover {
  border-color: #c9a84c;
  background: #2a241a;
  color: #f5e2b0;
}

/* project links at bottom */
.project-links {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid #26313d;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
}

.project-links a {
  color: #8ba0b5;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 450;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s, border-color 0.15s;
  border-bottom: 2px solid transparent;
}

.project-links a:hover {
  color: #d6e8ff;
  border-bottom-color: #4f8cf7;
}

/* footer */
.footer-note {
  margin-top: 4.5rem;
  border-top: 1px solid #26313d;
  padding-top: 2rem;
  text-align: center;
  color: #8ba0b5;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.footer-note a {
  color: #b8cee8;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: 0.1s;
}

.footer-note a:hover {
  border-bottom-color: #c9a84c;
  color: #d6e8ff;
}

.profile-image {
  width: 96px;
  height: 96px;
  border-radius: 0;
  border: 2px solid #3f4d5e;
  object-fit: cover;
  transition: all 0.3s ease;
  background: #18212b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(79, 140, 247, 0.4);
  box-shadow: 0 0 20px rgba(79, 140, 247, 0.05);
}

/* skills */
.skills-box {
  background: #141b24;
  border: 1px solid #26313d;
  border-radius: 0;
  padding: 1.5rem 2.2rem 1.7rem 2.2rem;
  margin: 0 0 2.5rem 0;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s;
}

.skills-box:hover {
  border-color: #3f4d5e;
}

.skills-box h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #e0ecfe;
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  background: #1f2a35;
  border: 1px solid #354252;
  color: #b4cbe3;
  padding: 0.3rem 0.95rem;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 500;
}

/* stats line inside flagship card */
.stats-line {
  color: #b8a06a;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

/* paragraph rhythm inside expanded descriptions */
.desc-full p {
  margin: 0.65rem 0;
}

.desc-full img {
  margin: 0.5rem 0;
}

/* expandable banner screenshots (single full screenshot, cropped via object-position) */
.banner-expand {
  position: relative;
  cursor: zoom-in;
  aspect-ratio: 1920 / 250;
  transition: aspect-ratio 0.45s ease;
  margin: 0.7rem 0;
}

.banner-expand.expanded {
  aspect-ratio: 1920 / 1080;
  cursor: zoom-out;
}

/* image crop lives in its own layer so overflow:hidden doesn't clip the
   corner brackets below, which are meant to overhang the edge slightly */
.banner-expand-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.banner-expand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--banner-pos, 50%);
  display: block;
  margin: 0;
}

/* art-deco corner brackets, replacing the plain border */
.banner-expand .corner {
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid #d4b87a;
  position: absolute;
}

.banner-expand .corner::after,
.banner-expand .corner::before {
  content: "";
  position: absolute;
}

.banner-expand .corner::after {
  width: 2.5rem;
  height: calc(1rem - 1px);
}

.banner-expand .corner::before {
  width: calc(1rem - 1px);
  height: 2.5rem;
}

.banner-expand .corner.left {
  left: -0.5rem;
}
.banner-expand .corner.left::after {
  left: calc(-2px + 1rem);
  border-left: 1px solid #d4b87a;
}
.banner-expand .corner.left::before {
  left: -1px;
  border-left: 1px solid #d4b87a;
}

.banner-expand .corner.right {
  right: -0.5rem;
}
.banner-expand .corner.right::after {
  right: calc(-2px + 1rem);
  border-right: 1px solid #d4b87a;
}
.banner-expand .corner.right::before {
  right: -1px;
  border-right: 1px solid #d4b87a;
}

.banner-expand .corner.top {
  top: -0.5rem;
}
.banner-expand .corner.top::after {
  top: -1px;
  border-top: 1px solid #d4b87a;
}
.banner-expand .corner.top::before {
  top: calc(-2px + 1rem);
  border-top: 1px solid #d4b87a;
}

.banner-expand .corner.bottom {
  bottom: -0.5rem;
}
.banner-expand .corner.bottom::after {
  bottom: -1px;
  border-bottom: 1px solid #d4b87a;
}
.banner-expand .corner.bottom::before {
  bottom: calc(-2px + 1rem);
  border-bottom: 1px solid #d4b87a;
}

.banner-hint {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: #0b0d10cc;
  color: #cddcec;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 0;
  border: 1px solid #354252;
  backdrop-filter: blur(2px);
  pointer-events: none;
  transition: opacity 0.2s;
}

.banner-expand.expanded .banner-hint {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .banner-expand {
    transition: none;
  }
}

/* placeholder text still needing real content */
.tba {
  color: #3a2f10;
  background: #ffe999;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

/* centered inline diagrams (specificity has to beat .desc-full img's margin rule) */
.desc-full img.centered-img {
  max-width: 100%;
  display: block;
  margin: 0.6rem auto;
}

/* 3-column image-over-text layout for compact diagram breakdowns */
.feature-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: start;
  margin: 0.9rem 0;
}

.feature-columns .feature-col img {
  width: 100%;
  height: auto;
  border-radius: 0;
  border: 1px solid #26313d;
  background: #10171f;
  display: block;
  margin-bottom: 0.5rem;
}

.feature-columns .feature-col p {
  margin: 0;
  font-size: 0.92rem;
}

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