
/* ==========================================
   PROJECT DETAILS PAGE
   Ekramul Haque Portfolio
========================================== */

.project-details-page {
  --d-bg: #080d18;
  --d-panel: #101a2b;
  --d-panel-light: #142138;
  --d-cyan: #49e3f0;
  --d-purple: #b49aff;
  --d-text: #f3f7ff;
  --d-muted: #a1aec2;
  --d-border: rgba(151, 180, 215, 0.16);

  background: var(--d-bg);
  color: var(--d-text);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

.project-details-page *,
.project-details-page *::before,
.project-details-page *::after {
  box-sizing: border-box;
}

.project-details-page a {
  text-decoration: none;
}

.details-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* HEADER */

.details-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 24, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.details-header .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 82px;
}

.project-details-page .brand-logo {
  color: #f4f7ff;
  font: 700 25px "Space Grotesk", sans-serif;
  letter-spacing: -2px;
  white-space: nowrap;
}

.project-details-page .brand-logo span {
  color: var(--d-cyan);
}

.details-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.details-nav a {
  position: relative;
  padding: 10px 0;
  color: #a9b5c8;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.25s;
}

.details-nav a:hover,
.details-nav a.active {
  color: var(--d-cyan);
}

.details-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 3px;
  background: var(--d-cyan);
}

.details-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--d-border);
  border-radius: 8px;
  background: transparent;
  color: white;
  cursor: pointer;
}

/* BUTTONS */

.details-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid rgba(73, 227, 240, 0.5);
  border-radius: 8px;
  background: linear-gradient(110deg, #49e3f0, #a4e6ff);
  color: #07121b !important;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.25s, box-shadow 0.25s;
}

.details-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(73, 227, 240, 0.2);
}

.nav-cta {
  padding: 11px 15px;
}

.details-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #dce7f7;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.2s;
}

.details-text-link:hover {
  color: var(--d-cyan);
}

.details-text-link i {
  color: var(--d-cyan);
}

/* SHARED STYLES */

.details-gradient {
  background: linear-gradient(100deg, #49e3f0, #92d6ff 48%, #b49aff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.details-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--d-cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.glow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--d-cyan);
  box-shadow: 0 0 13px rgba(73, 227, 240, 0.7);
}

/* BREADCRUMB */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  color: #75869f;
  font-size: 11px;
}

.breadcrumb a {
  color: #9baac0;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--d-cyan);
}

.breadcrumb i {
  font-size: 8px;
  color: #52647e;
}

.breadcrumb span {
  color: var(--d-cyan);
}

/* HERO */

.details-hero {
  position: relative;
  padding: 68px 0 75px;
  background:
    radial-gradient(ellipse at 5% 20%, rgba(49, 184, 206, 0.09), transparent 40%),
    radial-gradient(ellipse at 90% 35%, rgba(130, 94, 255, 0.1), transparent 38%);
}

.details-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 55px;
}

.project-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding: 8px 11px;
  border: 1px solid var(--d-border);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  color: #c0cde0;
  font-size: 10px;
}

.project-type i {
  color: var(--d-cyan);
}

.details-hero-copy h1 {
  margin: 21px 0;
  font: 700 clamp(48px, 6vw, 75px)/1.04 "Space Grotesk", sans-serif;
  letter-spacing: -4px;
}

.details-intro {
  max-width: 525px;
  margin: 0;
  color: var(--d-muted);
  font-size: 14px;
  line-height: 1.95;
}

.details-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 23px;
  margin-top: 28px;
}

.details-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-top: 42px;
  padding-top: 23px;
  border-top: 1px solid var(--d-border);
}

.details-meta > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.details-meta span {
  color: #7f90a8;
  font-size: 8px;
  letter-spacing: 1px;
}

.details-meta strong {
  color: #e3ebf8;
  font-size: 10px;
  font-weight: 600;
}

.status-ready {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-ready i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #66e5b6;
  box-shadow: 0 0 9px rgba(102, 229, 182, 0.4);
}

/* HERO PREVIEW */

.details-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 390px;
}

.art-glow {
  position: absolute;
  width: 85%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(59, 190, 220, 0.09);
  filter: blur(55px);
}

.preview-browser {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(151, 180, 215, 0.25);
  border-radius: 12px;
  background: #111b2b;
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.35);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
}

.preview-browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 43px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #162237;
  color: #7588a1;
  font-size: 10px;
}

.preview-dots {
  display: flex;
  gap: 5px;
}

.preview-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fa777f;
}

.preview-dots span:nth-child(2) {
  background: #f6c66b;
}

.preview-dots span:nth-child(3) {
  background: #56dba0;
}

.preview-url {
  flex: 1;
  padding: 6px 10px;
  border-radius: 5px;
  background: #0c1524;
  text-align: center;
  font-size: 9px;
}

.preview-url i {
  margin-right: 4px;
  color: #67dcb3;
}

.portfolio-screen {
  position: relative;
  min-height: 315px;
  padding: 19px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 50%, rgba(75, 180, 221, 0.13), transparent 38%),
    linear-gradient(135deg, #0b1423, #13243a);
}

.screen-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #dce7f7;
  font-size: 8px;
}

.screen-logo {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.screen-logo span {
  color: var(--d-cyan);
}

.screen-links {
  color: #a1b2c9;
  font-size: 7px;
}

.screen-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  min-height: 245px;
}

.screen-copy {
  position: relative;
  z-index: 2;
}

.screen-kicker {
  color: var(--d-cyan);
  font-size: 7px;
  letter-spacing: 2px;
}

.screen-copy h2 {
  margin: 12px 0;
  color: #f5f8ff;
  font: 700 clamp(24px, 3vw, 37px)/1.08 "Space Grotesk", sans-serif;
  letter-spacing: -1.5px;
}

.screen-copy h2 span {
  color: var(--d-cyan);
}

.screen-copy p {
  color: #98abc4;
  font-size: 8px;
}

.screen-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 4px;
  background: var(--d-cyan);
  color: #07121b;
  font-size: 8px;
  font-weight: 700;
}

.screen-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 170px;
}

.screen-orb {
  width: clamp(90px, 13vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 22%, #e1ffff, #63d6e5 25%, #6569c8 60%, #20243f 77%);
  box-shadow: 0 0 50px rgba(73, 227, 240, 0.14);
}

.screen-code {
  position: absolute;
  top: 18%;
  right: 2%;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #142138;
  color: var(--d-cyan);
  font-size: 18px;
}

.screen-mini-card {
  position: absolute;
  bottom: 12%;
  left: -5%;
  padding: 9px 10px;
  border: 1px solid rgba(151, 180, 215, 0.2);
  border-radius: 6px;
  background: #111e31;
  color: #c7d5e7;
  font-size: 8px;
}

.screen-mini-card i {
  margin-right: 4px;
  color: #64e5b5;
}

.screen-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #7f94ad;
  font-size: 7px;
  letter-spacing: 1px;
}

.screen-bottom i {
  color: #67e5b4;
  font-size: 6px;
}

.floating-tech {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(151, 180, 215, 0.2);
  border-radius: 8px;
  background: #111c2e;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  color: #e5edfa;
  font-size: 10px;
  font-weight: 700;
  animation: detailFloat 5s ease-in-out infinite;
}

.floating-tech i {
  font-size: 17px;
}

.floating-html {
  top: 8px;
  left: -13px;
  color: #ff9a70;
}

.floating-css {
  top: 62px;
  right: -12px;
  color: #7abaff;
  animation-delay: -1.5s;
}

.floating-js {
  bottom: 10px;
  left: 15px;
  color: #f4d86b;
  animation-delay: -2.5s;
}

/* QUICK OVERVIEW */

.quick-overview {
  padding: 23px 0;
  border-top: 1px solid var(--d-border);
  border-bottom: 1px solid var(--d-border);
  background: rgba(15, 24, 40, 0.55);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.quick-icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(73, 227, 240, 0.17);
  border-radius: 9px;
  background: rgba(73, 227, 240, 0.06);
  color: var(--d-cyan);
  font-size: 15px;
}

.quick-item > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.quick-item small {
  color: #7d8da4;
  font-size: 8px;
  letter-spacing: 1px;
}

.quick-item strong {
  color: #dfe8f6;
  font-size: 10px;
  font-weight: 600;
}

/* SECTIONS */

.details-section {
  padding: 95px 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 90px;
  align-items: start;
}

.section-heading h2,
.tech-copy h2 {
  margin: 18px 0 0;
  font: 700 clamp(34px, 4.3vw, 49px)/1.16 "Space Grotesk", sans-serif;
  letter-spacing: -2px;
}

.overview-copy > p {
  margin: 0 0 18px;
  color: var(--d-muted);
  font-size: 13px;
  line-height: 2;
}

.overview-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 25px;
  padding: 18px;
  border: 1px solid rgba(73, 227, 240, 0.17);
  border-radius: 9px;
  background: rgba(73, 227, 240, 0.035);
}

.overview-note > i {
  margin-top: 3px;
  color: var(--d-cyan);
  font-size: 18px;
}

.overview-note p {
  margin: 0;
  color: var(--d-muted);
  font-size: 12px;
  line-height: 1.8;
}

.overview-note strong {
  color: var(--d-text);
  font-size: 13px;
}

/* FEATURES */

.features-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(58, 116, 166, 0.07), transparent 50%),
    rgba(12, 19, 32, 0.45);
}

.centered-heading {
  max-width: 650px;
  margin: 0 auto 42px;
  text-align: center;
}

.centered-heading .details-eyebrow {
  justify-content: center;
}

.centered-heading h2 {
  margin-top: 17px;
}

.centered-heading > p {
  margin: 15px 0 0;
  color: var(--d-muted);
  font-size: 13px;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.feature-card {
  position: relative;
  min-height: 220px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--d-border);
  border-radius: 11px;
  background: linear-gradient(145deg, #111c2f, #0c1422);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(73, 227, 240, 0.35);
  background: linear-gradient(145deg, #142239, #0d1727);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(73, 227, 240, 0.2);
  border-radius: 10px;
  background: rgba(73, 227, 240, 0.08);
  color: var(--d-cyan);
  font-size: 17px;
}

.purple-icon {
  color: #c0a5ff;
  border-color: rgba(180, 154, 255, 0.2);
  background: rgba(180, 154, 255, 0.08);
}

.blue-icon {
  color: #83bcff;
  border-color: rgba(131, 188, 255, 0.2);
  background: rgba(131, 188, 255, 0.08);
}

.pink-icon {
  color: #f0a9dd;
  border-color: rgba(240, 169, 221, 0.2);
  background: rgba(240, 169, 221, 0.08);
}

.green-icon {
  color: #7de5bb;
  border-color: rgba(125, 229, 187, 0.2);
  background: rgba(125, 229, 187, 0.08);
}

.orange-icon {
  color: #ffb886;
  border-color: rgba(255, 184, 134, 0.2);
  background: rgba(255, 184, 134, 0.08);
}

.feature-number {
  position: absolute;
  top: 25px;
  right: 23px;
  color: #52647c;
  font: 600 13px "Space Grotesk", sans-serif;
}

.feature-card h3 {
  margin: 21px 0 9px;
  font: 600 17px "Space Grotesk", sans-serif;
}

.feature-card p {
  margin: 0;
  color: var(--d-muted);
  font-size: 11px;
  line-height: 1.9;
}

/* TECHNOLOGY */

.tech-section {
  background: radial-gradient(ellipse at 100% 30%, rgba(130, 94, 255, 0.06), transparent 40%);
}

.tech-layout {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 90px;
  align-items: center;
}

.tech-copy > p {
  max-width: 420px;
  margin: 20px 0 0;
  color: var(--d-muted);
  font-size: 13px;
  line-height: 1.95;
}

.tech-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.tech-stack-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid var(--d-border);
  border-radius: 9px;
  background: rgba(17, 27, 45, 0.78);
  transition: transform 0.25s, border-color 0.25s;
}

.tech-stack-item:hover {
  transform: translateX(5px);
  border-color: rgba(73, 227, 240, 0.3);
}

.tech-logo {
  display: grid;
  flex: 0 0 43px;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 23px;
}

.html-logo {
  color: #ff926a;
}

.css-logo {
  color: #72baff;
}

.js-logo {
  color: #f3d76b;
}

.git-logo {
  color: #ff967d;
}

.tech-stack-item > div:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.tech-stack-item strong {
  color: #edf3ff;
  font-size: 13px;
}

.tech-stack-item small {
  color: var(--d-muted);
  font-size: 10px;
  line-height: 1.6;
}

.tech-check {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(100, 229, 181, 0.09);
  color: #67e5b6;
  font-size: 9px;
}

/* PROCESS TIMELINE */

.process-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(13, 21, 35, 0.5);
}

.process-section .section-heading {
  max-width: 570px;
  margin-bottom: 40px;
}

.timeline {
  position: relative;
  max-width: 850px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 22px;
  width: 1px;
  background: linear-gradient(var(--d-cyan), rgba(180, 154, 255, 0.15));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr 30px;
  align-items: start;
  gap: 22px;
  padding-bottom: 34px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(73, 227, 240, 0.35);
  border-radius: 11px;
  background: #101b2d;
  color: var(--d-cyan);
  font: 600 12px "Space Grotesk", sans-serif;
}

.timeline-content {
  padding-top: 3px;
}

.timeline-content > span {
  color: #8091aa;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.timeline-content h3 {
  margin: 8px 0;
  font: 600 19px "Space Grotesk", sans-serif;
}

.timeline-content p {
  max-width: 610px;
  margin: 0;
  color: var(--d-muted);
  font-size: 12px;
  line-height: 1.9;
}

.timeline-icon {
  margin-top: 7px;
  color: #7f91ac;
  font-size: 17px;
}

/* NEXT PROJECT CTA */

.next-project-section {
  padding-top: 75px;
}

.next-project-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 30px;
  min-height: 300px;
  padding: clamp(28px, 5vw, 55px);
  overflow: hidden;
  border: 1px solid rgba(73, 227, 240, 0.2);
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 95% 50%, rgba(105, 94, 220, 0.15), transparent 45%),
    linear-gradient(120deg, #111d30, #0b1422);
}

.next-project-copy {
  position: relative;
  z-index: 2;
}

.next-project-copy h2 {
  margin: 17px 0 13px;
  font: 700 clamp(30px, 4vw, 43px)/1.18 "Space Grotesk", sans-serif;
  letter-spacing: -1.8px;
}

.next-project-copy > p {
  color: var(--d-muted);
  font-size: 12px;
  line-height: 1.8;
}

.next-project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 25px;
}

.next-project-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
}

.next-art-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(73, 227, 240, 0.2);
  border-radius: 50%;
  transform: rotate(25deg) scaleX(1.25);
}

.ring-two {
  width: 185px;
  height: 185px;
  border-color: rgba(180, 154, 255, 0.24);
  transform: rotate(-30deg) scaleX(0.7);
}

.next-art-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(73, 227, 240, 0.35);
  border-radius: 24px;
  background: linear-gradient(145deg, #172e45, #171d38);
  box-shadow: 0 0 45px rgba(73, 227, 240, 0.12);
  color: var(--d-cyan);
  font-size: 36px;
  transform: rotate(-8deg);
}

.next-art-tag {
  position: absolute;
  z-index: 2;
  padding: 8px 11px;
  border: 1px solid rgba(151, 180, 215, 0.18);
  border-radius: 5px;
  background: #101a2b;
  color: #d8e6f7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

.tag-one {
  top: 15%;
  left: 8%;
  color: var(--d-cyan);
}

.tag-two {
  top: 20%;
  right: 0;
  color: var(--d-purple);
}

.tag-three {
  bottom: 13%;
  right: 7%;
  color: #7de5bb;
}

.project-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 25px;
  color: #8192a9;
  font-size: 10px;
}

.project-pagination a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c5d3e5;
  transition: color 0.2s;
}

.project-pagination a:hover {
  color: var(--d-cyan);
}

.project-pagination > span {
  letter-spacing: 1px;
}

.project-pagination b {
  margin-left: 10px;
  color: var(--d-cyan);
}

/* FOOTER */

.details-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 12, 22, 0.55);
}

.footer-main,
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-main {
  padding-top: 28px;
  padding-bottom: 28px;
}

.footer-main > p {
  margin: 0;
  color: var(--d-muted);
  font-size: 11px;
}

.footer-contact {
  color: var(--d-cyan);
  font-size: 11px;
  font-weight: 600;
}

.footer-contact i {
  margin-left: 6px;
}

.footer-legal {
  padding-top: 17px;
  padding-bottom: 21px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #7e8da3;
  font-size: 10px;
}

.details-top {
  color: #a8b7ca;
}

.details-top:hover {
  color: var(--d-cyan);
}

.details-top i {
  margin-left: 5px;
}

/* SCROLL REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes detailFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .details-nav {
    gap: 19px;
  }

  .nav-cta {
    display: none;
  }

  .details-hero-grid {
    gap: 30px;
  }

  .details-meta {
    gap: 10px;
  }

  .overview-grid,
  .tech-layout {
    gap: 45px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }

  .feature-card {
    padding: 21px;
  }
}

@media (max-width: 760px) {
  .details-container {
    width: min(100% - 36px, 600px);
  }

  .details-header .nav-inner {
    min-height: 72px;
    flex-wrap: wrap;
  }

  .details-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .details-nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5px 0 15px;
  }

  .details-nav.open {
    display: flex;
  }

  .details-nav a {
    padding: 13px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .details-nav a.active::after {
    display: none;
  }

  .breadcrumb {
    padding-top: 20px;
    gap: 9px;
  }

  .details-hero {
    padding: 48px 0 55px;
  }

  .details-hero-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .details-hero-copy h1 {
    font-size: clamp(50px, 10vw, 70px);
    letter-spacing: -3px;
  }

  .details-intro {
    font-size: 13px;
  }

  .details-meta {
    margin-top: 30px;
  }

  .details-hero-art {
    width: 100%;
    max-width: 540px;
    min-height: 360px;
    margin: 0 auto;
  }

  .portfolio-screen {
    min-height: 290px;
  }

  .screen-main {
    min-height: 225px;
  }

  .details-section {
    padding: 70px 0;
  }

  .overview-grid,
  .tech-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading h2,
  .tech-copy h2 {
    font-size: clamp(35px, 7vw, 46px);
  }

  .centered-heading {
    margin-bottom: 30px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card {
    min-height: 205px;
  }

  .next-project-card {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .next-project-art {
    min-height: 220px;
  }

  .next-art-ring {
    width: 180px;
    height: 180px;
  }

  .ring-two {
    width: 155px;
    height: 155px;
  }
}

@media (max-width: 480px) {
  .details-container {
    width: calc(100% - 30px);
  }

  .breadcrumb {
    font-size: 10px;
  }

  .details-hero-copy h1 {
    font-size: 48px;
    letter-spacing: -2.5px;
  }

  .details-hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .details-meta {
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
  }

  .details-hero-art {
    min-height: 285px;
  }

  .preview-browser {
    transform: none;
  }

  .portfolio-screen {
    min-height: 245px;
    padding: 12px;
  }

  .screen-main {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 190px;
  }

  .screen-copy h2 {
    font-size: 23px;
    letter-spacing: -1px;
  }

  .screen-art {
    min-height: 140px;
  }

  .screen-orb {
    width: 90px;
  }

  .screen-code {
    width: 33px;
    height: 33px;
    font-size: 14px;
  }

  .screen-mini-card {
    left: -10%;
    padding: 7px;
    font-size: 7px;
  }

  .floating-tech {
    padding: 8px 10px;
    font-size: 9px;
  }

  .floating-html {
    left: -5px;
  }

  .floating-css {
    right: -5px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .quick-item strong {
    font-size: 11px;
  }

  .details-section {
    padding: 58px 0;
  }

  .section-heading h2,
  .tech-copy h2 {
    font-size: 34px;
    letter-spacing: -1.5px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
    padding: 23px;
  }

  .feature-card h3 {
    margin-top: 16px;
  }

  .timeline-item {
    grid-template-columns: 38px 1fr 18px;
    gap: 12px;
    padding-bottom: 28px;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-marker {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    font-size: 10px;
  }

  .timeline-content h3 {
    font-size: 16px;
  }

  .timeline-content p {
    font-size: 11px;
  }

  .timeline-icon {
    font-size: 14px;
  }

  .tech-stack-item {
    gap: 11px;
    padding: 12px;
  }

  .tech-stack-item small {
    font-size: 9px;
  }

  .next-project-card {
    padding: 24px 19px;
  }

  .next-project-copy h2 {
    font-size: 30px;
  }

  .next-project-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .project-pagination {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .footer-main,
  .footer-legal {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .footer-main > p {
    order: 3;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-details-page *,
  .project-details-page *::before,
  .project-details-page *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
