@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap");

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

:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --primary: #0a0a0a;
  --primary-foreground: #ffffff;
}

body {
  font-family: "DM Sans", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==================== Navigation ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--foreground);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ==================== Section ==================== */
.section {
  padding: 5rem 0;
}

.border-top {
  border-top: 1px solid var(--border);
}

.hero {
  padding-top: 10rem;
}

/* ==================== Back Link ==================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--foreground);
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ==================== Grid Hero ==================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

/* ==================== Typography ==================== */
.title {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ==================== Illustration ==================== */
.illustration-container {
  display: none;
}

.illustration {
  width: 100%;
  max-width: 24rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ==================== Projects Grid ==================== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* ==================== Project Card ==================== */
.project-card {
  border: 2px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}

.project-card:hover {
  border-color: var(--foreground);
  transform: translateY(-4px);
}

.project-card-inner {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.project-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.project-number {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.08);
  line-height: 1;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-desc {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* ==================== Project Button ==================== */
.project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  border: 2px solid var(--primary);
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-foreground);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.project-btn:hover {
  background-color: transparent;
  color: var(--foreground);
}

.project-btn .icon {
  stroke: currentColor;
}

/* ==================== Footer ==================== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==================== Project Page Specific ==================== */
.project-hero {
  padding-top: 8rem;
  padding-bottom: 3rem;
}

.project-hero-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.project-hero-icon {
  width: 4rem;
  height: 4rem;
}

.project-hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
}

.project-hero-desc {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 700px;
}

/* ==================== Documents Section ==================== */
.documents-section {
  padding: 3rem 0 5rem;
}

.documents-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.subfolder-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subfolder-title .icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ==================== Document Card ==================== */
.document-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--border);
  text-decoration: none;
  color: var(--foreground);
  transition: all 0.3s;
}

.document-card:hover {
  border-color: var(--foreground);
  background-color: var(--muted);
}

.document-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--muted);
  border-radius: 0.5rem;
}

.document-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.document-info {
  flex-grow: 1;
}

.document-name {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.document-type {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.document-arrow {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
  transition: transform 0.3s, color 0.3s;
}

.document-card:hover .document-arrow {
  transform: translateX(4px);
  color: var(--foreground);
}

/* ==================== PDF Badge Colors ==================== */
.document-icon.pdf {
  background-color: #fee2e2;
  color: #dc2626;
}

.document-icon.image {
  background-color: #dbeafe;
  color: #2563eb;
}

.document-icon.config {
  background-color: #fef3c7;
  color: #d97706;
}

.document-icon.cert {
  background-color: #d1fae5;
  color: #059669;
}

/* ==================== Responsive ==================== */
@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .documents-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }

  .nav-container {
    padding: 0 3rem;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .illustration-container {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .documents-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background-color: var(--background);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .title {
    font-size: 2.5rem;
  }

  .project-card-inner {
    padding: 1.5rem;
  }

  .project-number {
    font-size: 2rem;
  }

  .project-title {
    font-size: 1.25rem;
  }

  .project-hero-title {
    font-size: 2rem;
  }

  .project-hero-icon {
    width: 3rem;
    height: 3rem;
  }
}
