/* ============================================================
   PROJECTS PAGE STYLES
   ============================================================ */

/* ---- Hero ---- */
.projects-hero {
  padding-top: calc(var(--space-32) + var(--space-8));
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--border);
}

.projects-hero__heading {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  max-width: 16ch;
  margin-bottom: var(--space-4);
}

.projects-hero__subtext {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  max-width: 56ch;
}


/* ---- Featured Project ---- */
.featured-project {
  padding-bottom: var(--space-8);
}

.featured-project__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  transition: border-color var(--transition-base);
}
.featured-project__card:hover {
  border-color: var(--accent-border);
}

.featured-project__content {
  padding: var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-project__meta {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.featured-project__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.featured-project__body {
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-6);
}

.featured-project__highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.highlight-item__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.highlight-item strong {
  color: var(--text-primary);
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.featured-project__visual {
  background: linear-gradient(135deg, #0d1520 0%, #0a0a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.featured-project__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
}

.featured-project__visual-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8);
}

.featured-project__company-name {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: -0.02em;
  user-select: none;
}

@media (max-width: 900px) {
  .featured-project__card { grid-template-columns: 1fr; }
  .featured-project__visual { min-height: 200px; }
}

@media (max-width: 600px) {
  .featured-project__content { padding: var(--space-6); }
}


/* ---- Company Projects Grid ---- */
.company-projects {
  padding-top: 0;
}

.section-header {
  margin-bottom: var(--space-8);
}
.section-header__heading {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
}
.section-header__sub {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

.company-projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.project-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.project-card__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: var(--text-muted);
  overflow: hidden;
}
.project-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.project-card__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  flex: 1;
}

.project-card__link {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: var(--weight-medium);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
}

@media (max-width: 768px) {
  .company-projects__grid { grid-template-columns: 1fr; }
}


/* ---- Freelance Section ---- */
.freelance-projects {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.freelance-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.freelance-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.freelance-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.freelance-card__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.freelance-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.freelance-card__type {
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.freelance-card__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  .freelance-projects__grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .freelance-projects__grid { grid-template-columns: repeat(2, 1fr); }
}


/* ---- Tech Stack ---- */
.tech-stack__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.tech-stack__categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.tech-category__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.tech-category__items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tech-stack__stat {
  text-align: center;
}

.uptime-stat {
  padding: var(--space-12);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
}

.uptime-stat__value {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 6vw, 80px);
  font-weight: var(--weight-black);
  color: var(--accent-green);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.uptime-stat__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.uptime-stat__sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

@media (max-width: 768px) {
  .tech-stack__inner { grid-template-columns: 1fr; gap: var(--space-8); }
}
