/* =====================================================
   CODEUP WEBSITES | PROJECTS PAGE
   Responsive, accessible, and matched to projects.html
   ===================================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --page-bg: #0d0b1d;
  --surface: #17142c;
  --surface-2: #1d1937;
  --text: #f8f7ff;
  --muted: #aaa6c3;
  --brand: #35e0a1;
  --brand-light: #8bffcf;
  --line: rgba(255, 255, 255, 0.09);
  --radius: 22px;
  --ease: 280ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(
      ellipse at 12% 0%,
      rgba(105, 72, 190, 0.17),
      transparent 38rem
    ),
    radial-gradient(
      ellipse at 95% 35%,
      rgba(53, 224, 161, 0.06),
      transparent 32rem
    ),
    var(--page-bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--brand);
  color: #07150f;
}
a {
  color: inherit;
  text-decoration: none;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 5px;
  border-radius: 5px;
}
img {
  display: block;
  max-width: 100%;
}

/* Navigation — matches the <nav> in the supplied HTML */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  padding: 17px clamp(20px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 11, 29, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.logo {
  flex-shrink: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -1px;
  white-space: nowrap;
}
.logo span,
footer p span {
  color: var(--brand);
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(14px, 2.2vw, 30px);
}
.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--ease);
}
.nav-links a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 5px;
  background: var(--brand);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-light);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links .nav-contact {
  padding: 10px 17px;
  border: 1px solid rgba(53, 224, 161, 0.38);
  border-radius: 999px;
  color: var(--brand-light);
  transition:
    background var(--ease),
    color var(--ease),
    transform var(--ease);
}
.nav-links .nav-contact:hover {
  transform: translateY(-2px);
  background: var(--brand);
  color: #07150f;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 24px 72px;
  text-align: center;
}
.hero::before {
  position: absolute;
  z-index: -1;
  top: 20px;
  left: 50%;
  width: min(70vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(116, 74, 255, 0.14);
  filter: blur(85px);
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 15px;
  border: 1px solid rgba(53, 224, 161, 0.24);
  border-radius: 999px;
  background: rgba(53, 224, 161, 0.07);
  color: var(--brand-light);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.tag::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand);
  content: "";
}
.hero h1 {
  max-width: 900px;
  margin: 0 auto 22px;
  font-size: clamp(2.65rem, 6.4vw, 5.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.055em;
}
.hero h1 span,
.section-heading h2 span,
.cta h2 span {
  color: transparent;
  background: linear-gradient(100deg, #35e0a1 5%, #a0ffd6 55%, #b29aff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero p {
  max-width: 670px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.95;
}

/* Project listing */
.projects {
  width: min(1250px, 100%);
  margin: 0 auto;
  padding: 20px clamp(20px, 7vw, 100px) 100px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.3;
}
.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.project-count {
  flex-shrink: 0;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

/* Card base: theme variables are overridden by each preview class */
.project-card {
  --accent: #35e0a1;
  --accent-soft: rgba(53, 224, 161, 0.12);
  --accent-border: rgba(53, 224, 161, 0.34);
  --preview-bg: #10251f;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 55%),
    var(--surface);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.16);
  transition:
    transform var(--ease),
    border-color var(--ease),
    box-shadow var(--ease);
}
.project-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  content: "";
}
.project-card:hover {
  transform: translateY(-7px);
  border-color: var(--accent-border);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
}
.preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 245px;
  margin: 12px 12px 0;
  overflow: hidden;
  border: 1px solid var(--accent-border);
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 66%),
    var(--preview-bg);
}
.preview::before,
.preview::after {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  opacity: 0.27;
  content: "";
  pointer-events: none;
}
.preview::before {
  top: -105px;
  left: -55px;
}
.preview::after {
  right: -70px;
  bottom: -120px;
}
.preview-label {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  padding: 5px 9px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: rgba(10, 10, 20, 0.4);
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.salon-screen,
.photo-screen,
.lashes-screen,
.hardware-screen {
  position: relative;
  z-index: 1;
  display: flex;
  width: 82%;
  max-width: 400px;
  min-height: 165px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(12, 12, 25, 0.82);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 450ms ease;
}
.project-card:hover .salon-screen,
.project-card:hover .photo-screen,
.project-card:hover .lashes-screen,
.project-card:hover .hardware-screen {
  transform: scale(1.025) translateY(-3px);
}
.salon-screen small,
.photo-screen small,
.lashes-screen small,
.hardware-screen small {
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 2px;
}
.salon-screen h3,
.photo-screen h3,
.lashes-screen h3,
.hardware-screen h3 {
  margin: 9px 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.salon-screen > span,
.photo-screen > span,
.lashes-screen > span,
.hardware-screen > span {
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.61rem;
  letter-spacing: 1px;
}
.project-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px 25px 26px;
}
.project-type {
  display: inline-block;
  margin-bottom: 9px;
  padding: 5px 10px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.69rem;
  font-weight: 600;
}
.project-info h3 {
  margin: 0 0 9px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.4;
}
.project-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.85;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}
.tech-tags span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #c7c3dc;
  font-size: 0.67rem;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
  transition:
    gap var(--ease),
    color var(--ease);
}
.project-link span {
  display: inline-block;
  font-size: 1.05rem;
  transition: transform var(--ease);
}
.project-link:hover {
  gap: 13px;
}
.project-link:hover span {
  transform: translate(2px, -2px);
}

/* 1 — Capital Salon: black and gold */
.salon-preview,
.project-card--salon {
  --accent: #e8bd68;
  --accent-soft: rgba(232, 189, 104, 0.12);
  --accent-border: rgba(232, 189, 104, 0.38);
  --preview-bg: #17120d;
}
.salon-preview {
  background:
    radial-gradient(
      ellipse at 50% 20%,
      rgba(188, 134, 48, 0.23),
      transparent 65%
    ),
    #110e0a;
}
.salon-screen {
  background: linear-gradient(150deg, #20180f, #090807);
}
.salon-screen h3 {
  color: #f0d49c;
  font-family: Georgia, serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* 2 — Photo Time Studio: warm sepia */
.photo-preview,
.project-card--photo {
  --accent: #f0c6a5;
  --accent-soft: rgba(240, 198, 165, 0.12);
  --accent-border: rgba(240, 198, 165, 0.36);
  --preview-bg: #30211e;
}
.photo-preview {
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(211, 153, 122, 0.24),
      transparent 50%
    ),
    #211715;
}
.photo-screen {
  background: linear-gradient(135deg, #48312b, #1c1313);
}
.photo-screen h3 {
  color: #ffe5d0;
  font-family: Georgia, serif;
  font-style: italic;
  letter-spacing: 1px;
}

/* 3 — Lashes by Madison: rose pink */
.lashes-preview,
.project-card--lashes {
  --accent: #ff91bc;
  --accent-soft: rgba(255, 145, 188, 0.13);
  --accent-border: rgba(255, 145, 188, 0.38);
  --preview-bg: #301523;
}
.lashes-preview {
  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(255, 105, 170, 0.2),
      transparent 60%
    ),
    #25111d;
}
.lashes-screen {
  background: linear-gradient(135deg, #50253d, #1c1018);
}
.lashes-screen h3 {
  color: #ffd6e7;
  font-family: Georgia, serif;
  font-style: italic;
  letter-spacing: 1px;
}

/* 4 — World Style Studio: royal purple */
.world-style-preview,
.project-card--world {
  --accent: #c2a3ff;
  --accent-soft: rgba(194, 163, 255, 0.13);
  --accent-border: rgba(194, 163, 255, 0.38);
  --preview-bg: #1e1535;
}
.world-style-preview {
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(142, 92, 255, 0.24),
      transparent 60%
    ),
    #171025;
}
.world-style-preview .photo-screen {
  background: linear-gradient(140deg, #30204b, #130f20);
}
.world-style-preview .photo-screen h3 {
  color: #e5d8ff;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: normal;
  letter-spacing: 2px;
}

/* 5 — Happy Hooked Creations: ocean blue */
.crochet-prview,
.project-card--crochet {
  --accent: #80d7ff;
  --accent-soft: rgba(72, 183, 255, 0.15);
  --accent-border: rgba(105, 201, 255, 0.4);
  --preview-bg: #0d203c;
}
.crochet-prview {
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(63, 158, 255, 0.25),
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 85%,
      rgba(111, 119, 255, 0.2),
      transparent 45%
    ),
    linear-gradient(145deg, #10294b, #09162d);
}
.crochet-prview::before,
.crochet-prview::after {
  border-style: dashed;
  opacity: 0.4;
}
.crochet-prview .photo-screen {
  border-color: rgba(128, 215, 255, 0.32);
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(91, 174, 255, 0.17),
      transparent 75%
    ),
    linear-gradient(145deg, #18385f, #0b1930);
}
.crochet-prview .photo-screen::before,
.crochet-prview .photo-screen::after {
  position: absolute;
  color: rgba(128, 215, 255, 0.2);
  font-size: 4rem;
  line-height: 1;
  content: "◌";
  pointer-events: none;
}
.crochet-prview .photo-screen::before {
  top: 3px;
  left: 8px;
  transform: rotate(-25deg);
}
.crochet-prview .photo-screen::after {
  right: 8px;
  bottom: 0;
  transform: rotate(25deg);
}
.crochet-prview .photo-screen h3 {
  color: #b9e9ff;
  font-style: italic;
  letter-spacing: 0.5px;
}
.crochet-prview .photo-screen small {
  color: #80d7ff;
}

/* 6 — Hitachi Tools: industrial orange */
.hardware-preview,
.project-card--hardware {
  --accent: #ffae62;
  --accent-soft: rgba(255, 174, 98, 0.13);
  --accent-border: rgba(255, 174, 98, 0.38);
  --preview-bg: #282017;
}
.hardware-preview {
  background:
    linear-gradient(135deg, rgba(255, 128, 35, 0.14), transparent 65%), #19150f;
}
.hardware-screen {
  background: linear-gradient(135deg, #3c2a17, #17120c);
}
.hardware-screen h3 {
  color: #ffd0a0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Call to action — matches .cta and .cta-btn in the HTML */
.cta {
  position: relative;
  isolation: isolate;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto 85px;
  padding: clamp(38px, 6vw, 62px) 28px;
  overflow: hidden;
  border: 1px solid rgba(53, 224, 161, 0.25);
  border-radius: 28px;
  background:
    radial-gradient(
      ellipse at 90% 0%,
      rgba(53, 224, 161, 0.14),
      transparent 45%
    ),
    linear-gradient(135deg, #1a1735, #111027);
  text-align: center;
}
.cta::before {
  position: absolute;
  z-index: -1;
  right: -90px;
  bottom: -170px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(53, 224, 161, 0.12);
  border-radius: 50%;
  content: "";
}
.cta h2 {
  margin: 0 0 13px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.25;
}
.cta p {
  max-width: 570px;
  margin: 0 auto 25px;
  color: var(--muted);
  font-size: 0.93rem;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: #07150f;
  font-size: 0.88rem;
  font-weight: 700;
  transition:
    transform var(--ease),
    background var(--ease),
    box-shadow var(--ease);
}
.cta-btn:hover {
  transform: translateY(-3px);
  background: var(--brand-light);
  box-shadow: 0 10px 30px rgba(53, 224, 161, 0.2);
}

/* Footer — matches the simple footer in the supplied HTML */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 25px;
  padding: 26px clamp(20px, 7vw, 100px);
  border-top: 1px solid var(--line);
  background: rgba(9, 8, 20, 0.5);
}
footer .logo {
  font-size: 1.2rem;
}
footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
}

/* Responsive layout */
@media (max-width: 900px) {
  nav {
    padding-inline: 5%;
    gap: 18px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-links a {
    font-size: 0.81rem;
  }
  .projects {
    padding-inline: 5%;
  }
  .project-info {
    padding: 21px;
  }
  .preview {
    min-height: 220px;
  }
}
@media (max-width: 680px) {
  nav {
    position: relative;
    flex-direction: column;
    justify-content: center;
    gap: 13px;
    padding: 17px 5%;
  }
  .nav-links {
    justify-content: center;
    gap: 12px 19px;
  }
  .nav-links a {
    font-size: 0.8rem;
  }
  .nav-links .nav-contact {
    padding: 8px 12px;
  }
  .hero {
    padding: 70px 6% 55px;
  }
  .hero h1 {
    font-size: clamp(2.45rem, 10.5vw, 4rem);
    letter-spacing: -0.05em;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .projects {
    padding: 12px 5% 65px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 1.7rem;
  }
  .section-heading p {
    font-size: 0.8rem;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .preview {
    min-height: 235px;
  }
  .project-info {
    padding: 22px;
  }
  .project-info h3 {
    font-size: 1.3rem;
  }
  .cta {
    width: calc(100% - 32px);
    margin-bottom: 60px;
    padding: 40px 20px;
  }
  footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 380px) {
  .nav-links {
    gap: 10px 14px;
  }
  .nav-links a {
    font-size: 0.74rem;
  }
  .project-count {
    padding: 6px 9px;
    font-size: 0.68rem;
  }
  .preview {
    min-height: 205px;
  }
  .project-info {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
