:root {
  --bg-main: #f4f1ea;
  --text-dark: #0e0e0e;
  --text-muted: #6a6862;
  --accent-dark: #2f2c27;
  --card-bg: rgba(255, 255, 255, 0.65);
  --border-soft: rgba(0, 0, 0, 0.06);
}

/* GLOBAL */
body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background: var(--bg-main);
  padding-top: 100px;
  margin-top: 50px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* PAGE HEADER */
.page-header {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeUp 0.8s ease;
}

.page-header h1 {
  font-family: "Inconsolata", monospace;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 50;
  color: var(--text-dark);
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: -2px;
  margin-bottom: 18px;
}

.page-header p {
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
}

/* FILTERS */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.project-filters a {
  text-decoration: none !important;
}

.filter-btn {
  border: none;
  background: #ffffff;
  color: var(--text-dark);
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.filter-btn:hover {
  transform: translateY(-3px);
  background: #ffffff;
  color: var(--accent-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.filter-btn.active {
  background: var(--accent-dark);
  color: #ffffff !important;
}

/* PROJECT GRID FIX */
.row.g-4 {
  align-items: stretch;
}

.row.g-4 > [class*="col-"] {
  display: flex;
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  width: 100%;
}

.project-link:hover {
  color: inherit;
}

.project-card {
  width: 100%;
  height: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  overflow: hidden;
  transition: 0.4s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.035);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

/* PROJECT IMAGE */
.project-img {
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8e2d8;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.08);
}

/* PROJECT CONTENT */
.project-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-content span {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
  font-weight: 500;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-content h4 {
  color: var(--text-dark);
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 12px;
  font-weight: 700;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 54px;
}

.project-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
  font-size: 15px;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 77px;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* PROCESS SECTION */
.process-section {
  padding: 100px 20px;
  margin-top: 90px;
  background: rgba(244, 241, 234, 0.75);
}

.process-header {
  text-align: center;
  margin-bottom: 60px;
}

.process-header h2 {
  font-family: "Inconsolata", monospace;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 50;
  color: var(--text-dark);
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -1.5px;
  margin-bottom: 15px;
}

.process-header p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 16px;
}

/* TIMELINE */
.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(47, 44, 39, 0.18);
}

.timeline-item {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item .icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: #ffffff;
  color: var(--accent-dark);
  border: 2px solid var(--accent-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  z-index: 2;
}

.timeline-item .content {
  width: 100%;
  background: rgba(255, 255, 255, 0.72);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  transition: 0.3s ease;
}

.timeline-item .content:hover {
  transform: translateX(6px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.timeline-item h3 {
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 700;
}

.timeline-item p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

/* CTA SECTION */
.cta-section {
  padding: 120px 20px;
  background: var(--bg-main);
}

.cta-box {
  max-width: 900px;
  margin: auto;
  text-align: center;
  padding: 70px 50px;
  border-radius: 32px;
  background: var(--accent-dark);
  color: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.cta-box span {
  opacity: 0.8;
  letter-spacing: 2px;
  font-size: 14px;
  display: block;
  text-transform: uppercase;
}

.cta-box h2 {
  font-size: clamp(32px, 5vw, 46px);
  margin: 20px 0;
  font-weight: 700;
  letter-spacing: -1.5px;
}

.cta-box p {
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.82;
  line-height: 1.8;
  font-size: 16px;
}

.cta-buttons {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* CTA BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--accent-dark);
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s ease;
}

.btn-primary:hover {
  color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s ease;
  font-weight: 600;
}

.btn-secondary:hover {
  background: #ffffff;
  color: var(--accent-dark);
}

/* KEYFRAMES */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  body {
    padding-top: 90px;
    margin-top: 35px;
  }

  .project-img {
    height: 210px;
  }

  .process-section {
    margin-top: 70px;
    padding: 85px 20px;
  }

  .cta-section {
    padding: 95px 20px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 85px;
    margin-top: 25px;
  }

  .page-header {
    margin-bottom: 42px;
  }

  .page-header h1 {
    letter-spacing: -1px;
  }

  .page-header p {
    font-size: 16px;
  }

  .project-filters {
    gap: 10px;
    margin-bottom: 42px;
  }

  .filter-btn {
    padding: 11px 18px;
    font-size: 14px;
  }

  .project-img {
    height: 230px;
  }

  .project-content h4 {
    min-height: auto;
  }

  .project-content p {
    min-height: auto;
  }

  .timeline::before {
    left: 22px;
  }

  .timeline-item {
    gap: 16px;
  }

  .timeline-item .icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    font-size: 18px;
  }

  .timeline-item .content {
    padding: 19px;
  }

  .cta-box {
    padding: 55px 28px;
    border-radius: 26px;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 75px;
    margin-top: 20px;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-header {
    margin-bottom: 36px;
  }

  .page-header h1 {
    font-size: 38px;
  }

  .page-header p {
    font-size: 15px;
    line-height: 1.7;
  }

  .project-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    margin-bottom: 36px;
  }

  .project-filters::-webkit-scrollbar {
    height: 4px;
  }

  .project-filters::-webkit-scrollbar-thumb {
    background: rgba(47, 44, 39, 0.25);
    border-radius: 999px;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .project-card {
    border-radius: 20px;
  }

  .project-img {
    height: 215px;
  }

  .project-content {
    padding: 19px;
  }

  .process-section {
    padding: 75px 16px;
    margin-top: 60px;
  }

  .process-header {
    margin-bottom: 45px;
  }

  .timeline-item {
    margin-bottom: 30px;
  }

  .timeline-item .content:hover {
    transform: none;
  }

  .cta-section {
    padding: 80px 16px;
  }

  .cta-box {
    padding: 48px 22px;
  }

  .cta-box span {
    font-size: 12px;
  }

  .cta-box p {
    font-size: 15px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}