/* ============================================================
   SWELL VISUALS — portfolio.css
   Portfolio page styles only (base.css handles nav/footer/buttons)
   ============================================================ */

/* ── HERO ── */
/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../imgs/header.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* filter: brightness(0.35); */
  z-index: 0;
}

.hero-eyebrow,
.hero h1,
.hero-sub,
.hero-ctas {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(43,129,186,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(43,129,186,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero h1 span { color: var(--blue); }

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.35s;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.5s;
}

/* ── SECTIONS ── */
section {
  padding: 96px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.skill-category {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.skill-category:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.skill-category h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 14px;
  font-weight: 600;
}

.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }

.skill-pill {
  background: rgba(43, 129, 186, 0.1);
  color: var(--text);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

/* ── FEATURED CARD ── */
.featured-card {
  background: var(--card-bg);
  border: 1px solid var(--blue);
  border-radius: 14px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}

.featured-card::before {
  content: 'FEATURED';
  position: absolute;
  top: 20px; right: 20px;
  font-size: 10px;
  letter-spacing: 0.2em;
  background: var(--blue);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
}

.featured-card-glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(43,129,186,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.featured-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 12px;
}

.featured-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.featured-card > div > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.featured-preview {
  background: var(--mid);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-bar { display: flex; gap: 6px; margin-bottom: 8px; }
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot.red    { background: #ff5f57; }
.preview-dot.yellow { background: #ffbd2e; }
.preview-dot.green  { background: #28c840; }

.preview-row {
  background: rgba(43,129,186,0.08);
  border-radius: 5px;
  height: 10px;
}
.preview-row.short  { width: 60%; }
.preview-row.medium { width: 80%; }
.preview-row.full   { width: 100%; }
.preview-row.highlight {
  background: rgba(43,129,186,0.25);
  height: 32px;
  border-radius: 6px;
}

.preview-table-row { display: flex; gap: 8px; }
.preview-cell {
  background: rgba(43,129,186,0.08);
  border-radius: 4px;
  height: 28px;
  flex: 1;
}
.preview-cell.blue-cell { background: rgba(43,129,186,0.3); }

/* ── PROJECT GRID ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.port-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.port-card:hover {
  border-color: var(--blue);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.port-card:nth-child(1) { animation-delay: 0.05s; }
.port-card:nth-child(2) { animation-delay: 0.1s; }
.port-card:nth-child(3) { animation-delay: 0.15s; }
.port-card:nth-child(4) { animation-delay: 0.2s; }
.port-card:nth-child(5) { animation-delay: 0.25s; }
.port-card:nth-child(6) { animation-delay: 0.3s; }
.port-card:nth-child(7) { animation-delay: 0.35s; }
.port-card:nth-child(8) { animation-delay: 0.4s; }
.port-card:nth-child(9) { animation-delay: 0.45s; }

.card-img-wrap {
  background: #f0f4f8;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.card-img-wrap img {
  max-height: 80px;
  max-width: 180px;
  object-fit: contain;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-type {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 8px;
}

.card-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}

.card-body p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  background: rgba(43,129,186,0.1);
  color: var(--muted);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid rgba(43,129,186,0.15);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}

.card-link:hover { gap: 12px; color: var(--white); }
.card-link i { font-size: 11px; }

/* ── ABOUT SECTION ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
}

.about-text p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.stat-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.stat-box .num {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.stat-box .label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-photo-wrap { position: relative; }

.about-photo-wrap img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 3/4;
  filter: grayscale(20%);
  display: block;
}

.about-photo-frame {
  position: absolute;
  top: 16px; left: 16px; right: -16px; bottom: -16px;
  border: 2px solid var(--blue);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.4;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .hero { padding: 100px 24px 60px; }
  section { padding: 60px 24px; }
  .featured-card { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .featured-preview { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { display: none; }
}