/* Shared dark theme for portfolio, profile, contract pages */

/* ── Body override ── */
body:has(.dk-page) {
  background: #0e0e0e;
  color: #d4d4d4;
}

body:has(.dk-page) .animated-bg {
  display: none;
}

body:has(.dk-page) #root {
  background: #0e0e0e;
}

.dk-page {
  min-height: 100vh;
  background: #0e0e0e;
  color: #d4d4d4;
  font-family: 'Arial', sans-serif;
  overflow-x: hidden;
}

/* ── Hero ── */
.dk-hero {
  position: relative;
  min-height: 40vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.dk-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(14,14,14,1) 100%);
}

.dk-hero__content {
  position: relative;
  z-index: 1;
  padding: 32px 24px 40px;
  width: 100%;
}

.dk-hero__label {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ff5500;
  margin-bottom: 8px;
}

.dk-hero__title {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.2;
}

.dk-hero__sub {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
}

.dk-hero__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid #ff5500;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(255, 85, 0, 0.35);
  margin-bottom: 16px;
}

/* ── Section ── */
.dk-section {
  padding: 32px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.dk-section--alt {
  background: #141414;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  padding: 32px 24px;
}

.dk-section__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ff5500;
  margin-bottom: 24px;
}

/* ── Card ── */
.dk-card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dk-card:hover {
  border-color: rgba(255, 85, 0, 0.35);
  box-shadow: 0 4px 24px rgba(255, 85, 0, 0.1);
}

.dk-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.dk-card__body {
  padding: 16px 18px;
}

.dk-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.dk-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255, 85, 0, 0.12);
  color: #ff5500;
  border: 1px solid rgba(255, 85, 0, 0.25);
}

.dk-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.35;
}

.dk-card__title a {
  color: inherit;
  text-decoration: none;
}

.dk-card__title a:hover {
  color: #ff5500;
}

.dk-card__desc {
  font-size: 0.82rem;
  color: #777;
  line-height: 1.6;
  margin: 0;
}

.dk-card__client {
  font-size: 0.75rem;
  color: #ff5500;
  margin-bottom: 4px;
  text-decoration: none;
}

.dk-card__footer {
  padding: 10px 18px;
  border-top: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dk-card__meta {
  font-size: 0.72rem;
  color: #555;
}

/* ── Project grid ── */
.dk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ── Profile layout ── */
.dk-profile-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

@media (max-width: 900px) {
  .dk-profile-row {
    grid-template-columns: 1fr;
  }
}

/* ── Info block (experiences, education) ── */
.dk-info-block {
  background: #141414;
  border: 1px solid #222;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.dk-info-block__header {
  padding: 12px 18px;
  border-bottom: 1px solid #222;
}

.dk-info-block__header h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ff5500;
  margin: 0;
}

.dk-info-block__body {
  padding: 16px 18px;
}

/* ── Experience item ── */
.dk-exp-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #222;
}

.dk-exp-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.dk-exp-item__logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}

.dk-exp-item__role {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 2px;
}

.dk-exp-item__company {
  font-size: 0.8rem;
  color: #ff5500;
  margin: 0 0 2px;
  text-decoration: none;
}

.dk-exp-item__meta {
  font-size: 0.72rem;
  color: #555;
  margin: 0;
}

/* ── Skills icons ── */
.dk-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dk-skill {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.dk-skill:hover {
  border-color: #ff5500;
}

.dk-skill img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ── Client logos ── */
.dk-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.dk-client-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  padding: 4px;
}

/* ── Contract detail hero ── */
.dk-detail-hero {
  background: #0e0e0e;
  border-bottom: 1px solid #222;
  padding: 40px 24px 32px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.dk-detail-hero__img {
  width: 180px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #222;
}

.dk-detail-hero__client {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff5500;
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
}

.dk-detail-hero__title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.dk-detail-hero__desc {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.7;
  margin: 0 0 16px;
}

.dk-detail-hero__meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.dk-detail-hero__meta-item {
  font-size: 0.75rem;
  color: #555;
}

.dk-detail-hero__meta-item i {
  color: #fff;
  margin-right: 5px;
}

/* ── Comment item ── */
.dk-comment {
  padding: 14px 0;
  border-bottom: 1px solid #222;
}

.dk-comment:last-child {
  border-bottom: none;
}

.dk-comment__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
}

.dk-comment__text {
  font-size: 0.82rem;
  color: #777;
  line-height: 1.6;
  margin: 0 0 6px;
}

.dk-comment__date {
  font-size: 0.7rem;
  color: #444;
}

/* ── Btn ── */
.dk-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.dk-btn--primary {
  background: #ff5500;
  color: #fff;
}

.dk-btn--ghost {
  background: transparent;
  border: 1px solid #333;
  color: #888;
}

.dk-btn:hover {
  opacity: 0.85;
}

/* ── Swiper override (similar projects) ── */
.dk-swiper-wrap {
  background: #141414;
  border: 1px solid #222;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .dk-detail-hero {
    flex-direction: column;
  }

  .dk-detail-hero__img {
    width: 100%;
    height: 160px;
  }

  .dk-section {
    padding: 24px 16px;
  }
}
