/* Global Design System - dark mode only */

:root {
  --primary: #E45B27;
  --primary-soft: rgba(228, 91, 39, 0.65);
  --bg-soft: #0E0E11;     /* dark background */
  --text-main: #F9FAFB;   /* light text on dark */
  --text-soft: #9CA3AF;
  --border-angle: 0turn;
}

html {
  background-color: var(--bg-soft);
  color-scheme: dark;
}

/* light mode removed - portfolio is dark only for now
@media (prefers-color-scheme: dark) { ... }
*/

body,
* {
  font-family: 'Flex Sans', sans-serif !important;
}

body {
  background-color: transparent !important;
  color: var(--text-main);
}

.text-soft-text {
  color: var(--text-soft) !important;
}

.bg-background {
  background-color: transparent !important;
}

/* Shared layout wrapper for main content (home + projects) */
body .bg-background {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Project pages: dark gray background matching project cards */
.project-page-bg {
  background-color: #2d2d2d !important;
}

/* Noise texture - Global */
#texture {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -99;
  width: 100%;
  height: calc(100vh + 200px);
  opacity: 0.22; /* subtle but present, tuned to ped.ro */
  pointer-events: none;
  transform: translateY(0px);
  filter: contrast(140%) brightness(110%);
}

/* Page transitions */
@keyframes pageInBlur {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.page-transition {
  position: relative;
  animation: pageInBlur 0.8s ease-out forwards;
  opacity: 0;
}

/* Common container layout */
.content-container {
  width: 100%;
  max-width: 48rem; /* Equivalent to max-w-3xl */
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .content-container {
      max-width: 48rem;
  }
}

/* Project page: centered modal-like layout (overlay or direct) */
body .bg-background {
  background-color: transparent !important;
}

.project-page-bg {
  background-color: #2d2d2d !important;
}


  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body main.prose {
  max-width: 48rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* When project opens in overlay iframe – centered content like modal */
body.in-iframe main.prose {
  padding-left: 24px;
  padding-right: 24px;
}

/* Common Header in Project Pages */
.project-header {
  text-align: center;
  padding: 80px 20px 20px 20px;
  width: 100%;
  margin: 0;
}

.project-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.project-subtitle {
  font-size: 16px;
  color: var(--text-soft);
}

/* Project Details */
.project-details {
  width: 100%;
  margin: 0 0 40px 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  text-align: left;
}

.details-item {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 12px;
  line-height: 1.6;
  max-width: 500px;
  position: relative;
  display: flex;
  gap: 12px;
}

.details-item::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
}

/* Screens Container – centered like modal images */
.screens-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.screens-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Back Link / Close Button Styling */
.back-link, #overlay-close {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 2001;
  padding: 10px 20px;
  background: var(--bg-soft);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* When project is shown in overlay iframe, hide its Back link (overlay has its own) */
body.in-iframe .back-link {
  display: none !important;
}

.back-link:hover, #overlay-close:hover {
  transform: scale(1.05);
  border-color: rgba(228, 91, 39, 0.3);
}

/* Global Gradient (Bottom) – commented out
.bg-background::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 500px;
  z-index: -100;
  pointer-events: none;
  background-image:
    radial-gradient(at 50% 100%, rgba(228, 91, 39, 0.22) 0%, transparent 58%),
    radial-gradient(at 50% 100%, rgba(37, 107, 250, 0.16) 0%, transparent 60%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(15, 23, 42, 1) 40%, rgba(15, 23, 42, 1) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(15, 23, 42, 1) 40%, rgba(15, 23, 42, 1) 100%);
}
*/
