/* =========================================================
   Javier Crespo Portfolio - Easy Edit CSS
   Main colors are in :root below.
   Big slideshow size is controlled by .hero-slider.
   Project image cards are controlled by .project-visual.
   ========================================================= */

:root {
  --bg: #030712;
  --panel: rgba(8, 13, 28, 0.76);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --purple: #a855f7;
  --gold: #fbbf24;
  --radius: 28px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 70% 15%,
      rgba(88, 80, 236, 0.28),
      transparent 28%
    ),
    radial-gradient(
      circle at 25% 40%,
      rgba(34, 211, 238, 0.13),
      transparent 25%
    ),
    linear-gradient(180deg, #020617 0%, #050816 48%, #020617 100%);
  color: var(--text);
  font-family: Inter, sans-serif;
  overflow-x: hidden;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.65) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size:
    110px 110px,
    190px 190px;
  background-position:
    20px 30px,
    80px 70px;
  opacity: 0.22;
  pointer-events: none;
}
a {
  color: inherit;
  text-decoration: none;
}
.page {
  width: min(1440px, calc(100% - 48px));
  margin: 28px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(2, 6, 23, 0.72);
  box-shadow: 0 0 80px rgba(34, 211, 238, 0.12);
  backdrop-filter: blur(18px);
}
.navbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
}
.logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.16),
    rgba(168, 85, 247, 0.18)
  );
  font-size: 24px;
  font-weight: 900;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 28px rgba(168, 85, 247, 0.28);
}
.nav-links {
  display: flex;
  gap: 34px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links a:hover {
  color: var(--cyan);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow:
    0 0 30px rgba(34, 211, 238, 0.32),
    0 0 34px rgba(168, 85, 247, 0.28);
}
.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(340px, 560px) 1fr;
  gap: 42px;
  align-items: center;
  padding: 70px 58px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.58)),
    radial-gradient(
      circle at 76% 45%,
      rgba(34, 211, 238, 0.18),
      transparent 22%
    ),
    radial-gradient(
      circle at 68% 35%,
      rgba(168, 85, 247, 0.22),
      transparent 28%
    );
}
.eyebrow {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow:before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 2px;
  margin-right: 14px;
  vertical-align: middle;
  background: var(--cyan);
}
h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(46px, 5.8vw, 82px);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(34, 211, 238, 0.18);
}
.hero p,
.intro-section p,
.essay-section p,
.project-info p {
  color: var(--muted);
  line-height: 1.82;
  font-size: 16px;
}
.hero p {
  max-width: 540px;
  margin-bottom: 28px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.55);
} /* HERO SLIDESHOW BOX - change height here if you want it bigger/smaller */
.hero-slider {
  position: relative;
  height: 72vh;
  min-height: 600px;
  max-height: 850px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(34, 211, 238, 0.18);
  background: #020617;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active {
  opacity: 1;
} /* SLIDE IMAGE FIT - cover fills the frame. The first image is portrait, so it uses contain below. */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Keeps your cartoon portrait from cropping badly */
.slide:first-child img {
  object-fit: contain;
  background: #000;
}
.slide:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(2, 6, 23, 0.82));
}
.slide-caption {
  position: absolute;
  left: 30px;
  bottom: 30px;
  z-index: 2;
  padding: 12px 18px;
  backdrop-filter: blur(8px);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}
.intro-section,
.essay-section {
  padding: 56px 58px;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.46);
}
.section-label {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.projects-panel.full {
  padding: 56px 58px;
  border-bottom: 1px solid var(--line);
}
.project-head {
  margin-bottom: 30px;
}
.project-detail {
  display: grid;
  grid-template-columns: minmax(260px, 430px) 1fr;
  gap: 32px;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.78),
    rgba(2, 6, 23, 0.92)
  );
  margin-bottom: 28px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}
.featured-project {
  border-color: rgba(251, 191, 36, 0.34);
  box-shadow:
    0 0 48px rgba(251, 191, 36, 0.08),
    0 18px 44px rgba(0, 0, 0, 0.35);
}
.project-visual {
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}
.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-visual.wide img {
  object-fit: cover;
}
.project-visual.placeholder {
  background:
    radial-gradient(
      circle at 55% 35%,
      rgba(34, 211, 238, 0.25),
      transparent 24%
    ),
    linear-gradient(135deg, #020617, #111827);
  color: #cbd5e1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}
.project-info h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 30px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.caption {
  color: #e2e8f0 !important;
  font-weight: 700;
}
.award {
  display: inline-block;
  color: #fde68a !important;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 999px;
  padding: 9px 14px;
  margin-bottom: 18px;
  font-weight: 900;
}
.project-info h4 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin: 22px 0 8px;
}
.project-info p {
  margin-bottom: 12px;
}
.coming-soon {
  opacity: 0.88;
}
.essay-section {
  max-width: none;
}
.essay-section p {
  margin-bottom: 18px;
  max-width: 1000px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 26px 34px;
  background: rgba(15, 23, 42, 0.55);
}
.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 76px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}
.stat-icon {
  font-size: 32px;
}
.stat strong {
  display: block;
  font-size: 31px;
  color: var(--purple);
}
.stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 44px 28px;
  }
  .hero-slider {
    height: 62vh;
    min-height: 480px;
  }
  .project-detail {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
  .intro-section,
  .essay-section,
  .projects-panel.full {
    padding: 44px 28px;
  }
}
@media (max-width: 640px) {
  .page {
    width: calc(100% - 24px);
    margin: 12px auto;
  }
  .navbar {
    padding: 0 18px;
  }
  .brand span {
    display: none;
  }
  .btn {
    padding: 12px 16px;
    font-size: 12px;
  }
  .hero {
    padding: 36px 20px;
  }
  h1 {
    font-size: 43px;
  }
  .hero-slider {
    height: 58vh;
    min-height: 420px;
  }
  .project-detail {
    padding: 18px;
  }
  .project-visual {
    min-height: 310px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
/* LIGHTBOX STYLE */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* hover effect (optional but nice) */
.clickable {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.clickable:hover {
  transform: scale(1.02);
}
