/* =========================================================
   DMAS TECH — OUR PROJECTS
   Two-column interactive project cards.
   Uses the existing site's purple / white visual system.
   ========================================================= */

.projects-page {
  position: relative;
  padding: 3.35rem 0 4.5rem;
  background: #fff;
  overflow: hidden;
}

.projects-page-container {
  position: relative;
  z-index: 2;
  max-width: 1120px;
}

.projects-decoration-dots {
  position: absolute;
  top: 0;
  right: 12%;
  width: 250px;
  height: 180px;
  opacity: .65;
  background-image: radial-gradient(rgba(91,77,255,.18) 1.15px, transparent 1.15px);
  background-size: 11px 11px;
  mask-image: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
}

.projects-decoration-circle {
  position: absolute;
  top: 35px;
  right: -80px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(91,77,255,.06);
  pointer-events: none;
}


/* =========================================================
   PROJECT PAGE HEADING
   Same title settings as Index page .section-title
   ========================================================= */

.projects-page-heading {
  max-width: 900px;
  margin: 0 auto 2.45rem;
  text-align: center;
}

.projects-page-heading h1 {
  margin: 0 0 1rem;
  color: var(--color-dark);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: normal;
  text-align: center;
}

.projects-page-heading h1 span {
  color: var(--color-primary);
}

.projects-page-heading p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: .98rem;
  line-height: 1.65;
  text-align: center;
}


/* =========================================================
   PROJECT GRID
   ========================================================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(91,77,255,.13);
  border-radius: 1rem;
  overflow: hidden;
  color: inherit;
  box-shadow: 0 8px 30px rgba(15,23,42,.045);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(91,77,255,.38);
  box-shadow: 0 22px 50px rgba(91,77,255,.13);
  outline: none;
}


/* =========================================================
   DESKTOP PREVIEW + PHONE PREVIEW
   ========================================================= */

.project-preview {
  position: relative;
  height: 300px;
  padding: 1rem;
  background: linear-gradient(145deg, #fafaff 0%, #f4f1ff 100%);
  overflow: hidden;
}


/* Browser frame */

.browser-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dfe3eb;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
  transition:
    transform .4s cubic-bezier(.2,.8,.2,1),
    filter .3s ease;
}

.browser-toolbar {
  height: 29px;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: 0 .55rem;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ebef;
}

.browser-dots {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}

.browser-dots i {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
}

.browser-dots i:nth-child(1) {
  background: #ff5f57;
}

.browser-dots i:nth-child(2) {
  background: #ffbd2e;
}

.browser-dots i:nth-child(3) {
  background: #28c840;
}

.browser-address {
  flex: 1;
  min-width: 0;
  height: 17px;
  display: flex;
  align-items: center;
  padding: 0 .5rem;
  border-radius: 5px;
  background: #eceff3;
  color: #7b8492;
  font-size: .55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-menu {
  color: #9aa1ab;
  font-size: .62rem;
  letter-spacing: 1px;
}


/* Website screenshot */

.browser-screen {
  width: 100%;
  height: calc(100% - 29px);
  overflow: hidden;
  background: #fff;
}

.browser-screen img {
  width: 100%;
  height: 100%;
  display: block;

  /* FULL COVER */
  object-fit: cover;
  object-position: top center;

  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}


/* =========================================================
   HOVER
   ========================================================= */

.project-card:hover .browser-frame {
  transform: scale(1.025);
}

.project-card:hover .browser-screen img {
  transform: scale(1.035);
}


/* =========================================================
   REMOVE PHONE VIEW
   ========================================================= */

/* Hide phone completely */

.phone-frame,
.phone-notch,
.phone-screen {
  display: none !important;
}


/* =========================================================
   HOVER OVERLAY
   ========================================================= */

.project-hover {
  position: absolute;
  inset: 0;
  z-index: 4;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(15, 23, 42, .05);

  opacity: 0;

  transition:
    opacity .25s ease,
    background .25s ease;

  pointer-events: none;
}

.project-hover span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;

  padding: .7rem 1rem;

  border-radius: 999px;

  background: rgba(91, 77, 255, .96);
  color: #fff;

  font-size: .72rem;
  font-weight: 750;

  box-shadow: 0 10px 28px rgba(91, 77, 255, .3);

  transform: translateY(8px) scale(.96);

  transition: transform .25s ease;
}

.project-card:hover .project-hover,
.project-card:focus-visible .project-hover {
  opacity: 1;
  background: rgba(15, 23, 42, .16);
}

.project-card:hover .project-hover span,
.project-card:focus-visible .project-hover span {
  transform: translateY(0) scale(1);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-preview {
    height: 340px;
  }

  .browser-frame {
    width: 100%;
    height: 100%;
  }
}


@media (max-width: 560px) {

  .project-preview {
    height: 255px;
    padding: .7rem;
  }

  .browser-toolbar {
    height: 25px;
  }

  .browser-screen {
    height: calc(100% - 25px);
  }

  .project-content {
    padding: .9rem .95rem 1rem;
  }
}


/* =========================================================
   PROJECT COPY
   ========================================================= */

.project-content {
  padding: 1.1rem 1.2rem 1.2rem;
}

.project-category {
  display: inline-flex;
  align-items: center;
  margin-bottom: .5rem;
  padding: .24rem .58rem;
  border-radius: 999px;
  background: var(--color-primary-light);
  border: 1px solid rgba(91,77,255,.12);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: .52rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .04em;
}

.project-content h2 {
  margin: 0 0 .38rem;
  color: var(--color-dark);
  font-size: 1.22rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
}

.project-content p {
  min-height: 3.05em;
  margin: 0 0 .75rem;
  color: var(--color-text-muted);
  font-size: .76rem;
  line-height: 1.55;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--color-primary);
  font-size: .7rem;
  font-weight: 750;
  transition: gap .2s ease;
}

.project-card:hover .project-link {
  gap: .48rem;
}


/* =========================================================
   CTA
   ========================================================= */

.projects-cta {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid #e2dcff;
  border-radius: .85rem;
  background: linear-gradient(100deg, #faf9ff, #f4f0ff);
}

.cta-icon {
  width: 45px;
  height: 45px;
  border-radius: .65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.1rem;
}

.cta-copy small {
  color: var(--color-primary);
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.cta-copy h2 {
  margin: .08rem 0 .15rem;
  color: var(--color-dark);
  font-size: .98rem;
  line-height: 1.2;
  font-weight: 800;
}

.cta-copy p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: .61rem;
  line-height: 1.45;
}

.cta-button {
  padding: .62rem .95rem;
  border-radius: .42rem;
  background: var(--color-primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}

.cta-button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  .projects-page {
    padding-top: 2.8rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-preview {
    height: 340px;
  }

  .browser-frame {
    width: calc(100% - 55px);
    height: 270px;
  }

  .phone-frame {
    width: 92px;
    height: 184px;
    right: 1.15rem;
    bottom: -18px;
  }
}


@media (max-width: 560px) {

  .projects-page {
    padding: 2.35rem 0 3.25rem;
  }

  .projects-page-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .projects-page-heading {
    margin-bottom: 1.7rem;
  }

  /* SAME INDEX TITLE SIZE ON MOBILE */
  .projects-page-heading h1 {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .projects-page-heading p {
    font-size: .78rem;
  }

  .project-preview {
    height: 255px;
    padding: .7rem .7rem 0;
  }

  .browser-frame {
    width: calc(100% - 35px);
    height: 205px;
  }

  .browser-toolbar {
    height: 25px;
  }

  .browser-screen {
    height: calc(100% - 25px);
  }

  .phone-frame {
    width: 69px;
    height: 139px;
    right: .65rem;
    bottom: -12px;
    border-radius: 13px;
  }

  .phone-screen {
    border-radius: 9px;
  }

  .phone-notch {
    top: 4px;
    width: 23px;
    height: 6px;
  }

  .project-content {
    padding: .9rem .95rem 1rem;
  }

  .project-content h2 {
    font-size: 1.08rem;
  }

  .project-content p {
    min-height: 0;
    font-size: .72rem;
  }

  .projects-cta {
    grid-template-columns: auto 1fr;
    gap: .7rem;
    padding: .85rem;
  }

  .cta-button {
    grid-column: 1 / -1;
    text-align: center;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .project-card,
  .browser-frame,
  .browser-screen img,
  .phone-frame,
  .project-hover,
  .project-hover span,
  .project-link,
  .cta-button {
    transition: none !important;
  }
}
/* ==========================================
   NAVBAR LOGO ANIMATION
   ========================================== */

header .logo-icon {
  transition:
    transform 0.2s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

header .logo-icon-changing {
  transform: scale(0.75);
}