/* ================================================
   RESPONSIVE PORTFOLIO CSS - MOBILE FIRST
   fabioqueiros.com
   
   CRITICAL: All animation timings, easing functions, 
   and visual styles preserved from original.
   Only responsive scaling added.
   ================================================ */

/* Reset & Base Styles (normalize.css embedded) */
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}
audio,canvas,video{display:inline-block;}
audio:not([controls]){display:none;height:0;}[hidden]{display:none;}
html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}
body{margin:0;}
a:focus{outline:thin dotted;}
a:active,a:hover{outline:0;}
h1{font-size:2em;margin:0.67em 0;}
abbr[title]{border-bottom:1px dotted;}
b,strong{font-weight:bold;}
dfn{font-style:italic;}
hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}
mark{background:#ff0;color:#000;}
code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}
pre{white-space:pre-wrap;}
q{quotes:"\201C" "\201D" "\2018" "\2019";}
small{font-size:80%;}
sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}
sup{top:-0.5em;}
sub{bottom:-0.25em;}
img{border:0;}
svg:not(:root){overflow:auto;}
figure{margin:0;}
fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}
legend{border:0;padding:0;}
button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;}
button,input{line-height:normal;}
button,select{text-transform:none;}
button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}
button[disabled],html input[disabled]{cursor:default;}
input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}
input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}
input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}
button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}
textarea{overflow:auto;vertical-align:top;}
table{border-collapse:collapse;border-spacing:0;}

*,
*::after,
*::before {
	box-sizing: border-box;
}

/* Root fluid typography */
html {
  font-size: clamp(14px, 1.2vw, 16px);
}

body {
	--color-text: #f1f1f1;
    --color-bg: #0c0c0c;
    --color-link: #6678a2;
    --color-link-hover: #baaed8;
	--color-deco: rgba(46, 72, 80, 0.15);
	--color-side: #bbc6e8;
	font-family: Arial, Helvetica, sans-serif;
	min-height: 100vh;
	color: #57585c;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding: 0;
}

/* ================================================
   LOADER ANIMATION - PRESERVED EXACTLY
   Duration: 0.5s
   Easing: cubic-bezier(0.680, -0.550, 0.265, 1.550)
   ================================================ */

.js .loading::before {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 50%;
	left: 50%;
	/* Responsive size while keeping animation identical */
	width: clamp(40px, 8vw, 60px);
	height: clamp(40px, 8vw, 60px);
	margin: calc(clamp(40px, 8vw, 60px) / -2) 0 0 calc(clamp(40px, 8vw, 60px) / -2);
	pointer-events: none;
	border-radius: 33%;
	opacity: 0.4;
	background: #dedede;
	/* PRESERVED: exact animation timing and easing */
	animation: loaderAnim 0.5s cubic-bezier(0.680, -0.550, 0.265, 1.550) infinite alternate forwards;
	-webkit-transform-origin: 0px 5.1em;
	transform-origin: 0px 5.1em;
}

@keyframes loaderAnim {
	from {
		opacity: 1;
		transform: scale3d(0.3,0.3,1);
		transform-origin: 60px 5.1em;
	}
	to {
		opacity: 0;
		transform: scale3d(0.7,0.7,1);
		transform-origin: 10px 5.1em;
	}
}

/* ================================================
   LINKS
   ================================================ */

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
}

a:hover,
a:focus {
	color: var(--color-link-hover);
	outline: none;
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

.hidden {
	position: absolute;
	overflow: hidden;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* ================================================
   MESSAGE OVERLAY - Mobile Warning
   ================================================ */

.message {
	position: relative;
	z-index: 100;
	display: none;
	padding: 1em;
	text-align: center;
	color: var(--color-bg);
	background: var(--color-text);
}

/* Show on very small screens */
@media (max-width: 479px), (max-height: 500px) {
	.message {
		position: fixed;
		overflow: hidden;
		width: 100%;
		height: 100%;
		z-index: 1001;
		background: #0C0C0C;
		display: flex;
		justify-content: center;
		align-items: center;
		color: #ffffff;
		padding: 2rem;
		text-align: center;
	}
}

/* ================================================
   ICONS
   ================================================ */

.icon {
	display: block;
	width: 1.5em;
	height: 1.5em;
	margin: 0 auto;
	fill: currentColor;
}

/* ================================================
   FRAME - Top Navigation (kept minimal for mobile)
   ================================================ */

.frame {
	position: fixed;
	z-index: 10000;
	top: 1rem;
	left: 0;
	width: 100%;
	max-width: none;
	min-height: 0;
	height: auto;
	padding: 1rem;
	pointer-events: none;
}

.frame a {
	pointer-events: auto;
}

.links {
	position: relative;
	display: flex;
	justify-content: flex-end;
	align-items: left;
	white-space: nowrap;
}

.icon {
	display: inline-block;
	padding: 0.25em;
	margin: 0.25em 0 0 0;
}

/* ================================================
   SLIDESHOW - MOBILE FIRST
   Base: Single column for mobile
   768px+: Restore 3-column layout
   ================================================ */

.slideshow {
	position: relative;
	overflow: hidden;
	margin: 0;
	height: 100vh;
	width: 100%;
	display: grid;
	/* Mobile: single column */
	grid-template-columns: 100%;
	grid-template-rows: 100%;
	grid-template-areas: 'slide';
	gap: 0;
}

/* ================================================
   SLIDE - MOBILE FIRST
   ================================================ */

.slide {
	width: 100%;
	display: flex;
	pointer-events: none;
	cursor: pointer;
	position: relative;
	height: 100%;
	grid-area: slide;
	/* Mobile: center content with padding */
	padding: 5vh 1rem;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.slideshow--previewopen .slide {
	cursor: default;
}

.slide--current {
	pointer-events: auto;
}

/* ================================================
   SLIDE IMAGE WRAP - Responsive height
   ================================================ */

.slide__img-wrap {
	width: 100%;
	overflow: hidden;
	z-index: 100;
	position: absolute;
	/* Mobile: larger relative height */
	height: 70%;
	top: 15%;
	/* Performance optimization */
	will-change: transform;
}

.slideshow__deco {
	grid-area: slide;
	background: var(--color-deco);
	width: 100%;
	height: 80%;
	align-self: center;
	position: relative;
	margin: -40px 0 0 0;
	right: -20px;
}

/* ================================================
   NAVIGATION BUTTONS - Touch-friendly sizing
   ================================================ */

.nav {
	position: absolute;
	background: none;
	/* Minimum 48x48px touch target */
	width: clamp(3rem, 10vw, 4rem);
	height: clamp(3rem, 10vw, 4rem);
	z-index: 1000;
	border: 0;
	padding: 0;
	margin: 0;
	pointer-events: none;
	/* PRESERVED: exact transition timing */
	transition: transform 0.8s, opacity 0.8s;
	transition-timing-function: cubic-bezier(0.7,0,0.3,1);
}

.nav--next {
	bottom: clamp(1rem, 3vw, 2rem);
	right: clamp(1rem, 3vw, 2rem);
}

.icon--navarrow-next {
	transform: rotate(45deg);
}

.nav--prev {
	top: clamp(1rem, 3vw, 2rem);
	left: clamp(1rem, 3vw, 2rem);
}

.icon--navarrow-prev {
	transform: rotate(-135deg);
}

/* PRESERVED: exact animation for preview open */
.slideshow--previewopen .nav {
	opacity: 0;
	transition-duration: 0.4s;
}

.slideshow--previewopen .nav--next {
	transform: translate3d(100%, 100%, 0);
}

.slideshow--previewopen .nav--prev {
	transform: translate3d(-100%, -100%, 0);
}

/* ================================================
   SLIDE IMAGE - Scale preserved
   ================================================ */

.slide__img {
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background-size: cover;
	background-position: 50% 50%;
	position: absolute;
	pointer-events: none;
	/* PRESERVED: exact scale value */
	transform: scale3d(1.01,1.01,1);
	will-change: transform;
}

/* ================================================
   SLIDE VISIBILITY STATES
   ================================================ */

.js .slide__img-wrap, 
.js .slide__title-wrap,
.js .slide__side {
	opacity: 0;
	pointer-events: none;
}

.js .slide--current .slide__img-wrap {
	opacity: 1;
	pointer-events: auto;
}

.slide--visible .slide__img-wrap {
	pointer-events: auto;
}

/* ================================================
   SLIDE TEXT ELEMENTS - Fluid typography
   ================================================ */

.slide__title-wrap {
	justify-self: flex-end;
	width: 100%;
	position: relative;
	z-index: 1000;
	will-change: transform;
}

.slide__number {
	display: block;
	/* Fluid scaling */
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: bold;
	padding-top: 5vh;
}

.slide__number::before {
	content: "\2014";
	display: inline-block;
	margin: 0 1rem 0 0;
}

/* Hide title/subtitle/side on mobile by default */
.slide__title,
.slide__subtitle,
.slide__side {
	display: none;
}

/* ================================================
   CONTENT PANEL - MOBILE FIRST
   ================================================ */

.content {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 100;
}

.content__item {
	position: absolute;
	top: 0;
	right: 0;
	/* Mobile: full width with padding */
	width: 100%;
	height: auto;
	padding: 8vh 1.5rem 5vh;
	overflow: auto;
}

.content__text:last-child { 
	margin-bottom: 100px;
}

.content__item--current,
.content__item--current ~ .content__close {
	pointer-events: auto;
}

/* ================================================
   CONTENT CLOSE BUTTON - Mobile positioning
   ================================================ */

.content__close {
	position: absolute;
	/* Mobile: top-left corner */
	top: 1rem;
	left: 1rem;
	background: none;
	color: currentColor;
	border: 0;
	margin: 0;
	padding: 0.5rem;
	/* Larger touch target */
	min-width: 48px;
	min-height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.icon--longarrow {
	width: 2rem;
}

.content__close:focus {
	outline: none;
}

/* ================================================
   CONTENT TEXT ELEMENTS - Fluid typography
   ================================================ */

.content__number {
	font-weight: bold;
	font-size: clamp(1.5rem, 3vw, 2rem);
	display: block;
	margin-bottom: 1rem;
}

.content__number::before {
	content: "\2014";
	display: inline-block;
	margin: 0 1rem 0 0;
}

.content__title {
	margin: 0.5rem 0;
	/* Fluid scaling with max */
	font-size: clamp(1.75rem, 4vw, 3rem);
}

.content__subtitle {
	margin: 0 0 0.5rem;
	font-size: clamp(1rem, 2vw, 1.15rem);
	font-weight: normal;
}

.content__highlight {
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: bold;
	color: #6678a2;
}

.content__text {
	/* Fluid scaling */
	font-size: clamp(0.85rem, 1.5vw, 0.95rem);
	max-width: 100%;
	/* Mobile: no fixed height */
	max-height: none;
	overflow: visible;
	column-count: 1;
	text-align: left;
	padding-top: 3px;
	padding-right: 10px;
	padding-bottom: 50px;
}

/* ================================================
   FORM STYLES - Responsive
   ================================================ */

input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
  color: #aca49c;
  font-size: 0.875em;
}

input:focus::-webkit-input-placeholder, textarea:focus::-webkit-input-placeholder {
  color: #bbb5af;
}

input::-moz-placeholder, textarea::-moz-placeholder {
  color: #aca49c;
  font-size: 0.875em;
}

input:focus::-moz-placeholder, textarea:focus::-moz-placeholder {
  color: #bbb5af;
}

input::placeholder, textarea::placeholder {
  color: #aca49c;
  font-size: 0.875em;
}

input:focus::placeholder, textarea::focus:placeholder {
  color: #bbb5af;
}

input::-ms-placeholder, textarea::-ms-placeholder {
  color: #aca49c;
  font-size: 0.875em;
}

input:focus::-ms-placeholder, textarea:focus::-ms-placeholder {
  color: #bbb5af;
}

input:hover::-webkit-input-placeholder, textarea:hover::-webkit-input-placeholder {
  color: #e2dedb;
  font-size: 0.875em;
}

input:hover:focus::-webkit-input-placeholder, textarea:hover:focus::-webkit-input-placeholder {
  color: #cbc6c1;
}

input:hover::-moz-placeholder, textarea:hover::-moz-placeholder {
  color: #e2dedb;
  font-size: 0.875em;
}

input:hover:focus::-moz-placeholder, textarea:hover:focus::-moz-placeholder {
  color: #cbc6c1;
}

input:hover::placeholder, textarea:hover::placeholder {
  color: #e2dedb;
  font-size: 0.875em;
}

input:hover:focus::placeholder, textarea:hover:focus::placeholder {
  color: #cbc6c1;
}

input:hover::placeholder, textarea:hover::placeholder {
  color: #e2dedb;
  font-size: 0.875em;
}

input:hover:focus::-ms-placeholder, textarea:hover::focus:-ms-placeholder {
  color: #cbc6c1;
}

#form {
  position: relative;
  width: 100%;
  margin: 50px auto 100px auto;
} 

input {
  font-size: 0.875em;
  width: 100%;
  height: 50px;
  padding: 0px 15px 0px 15px;
  background: transparent;
  outline: none;
  color: #726659;
  border: solid 1px #b3aca7;
  border-bottom: none;
  /* PRESERVED: exact transition */
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
}

input:hover {
  background: #b3aca7;
  color: #e2dedb;
}

textarea {
  width: 100%;
  height: 110px;
  max-height: 110px;
  padding: 15px;
  background: transparent;
  outline: none;
  color: #726659;
  font-size: 0.875em;
  border: solid 1px #b3aca7;
  /* PRESERVED: exact transition */
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
}

textarea:hover {
  background: #b3aca7;
  color: #ff9800;
}

#submit {
  width: 100%;
  padding: 0;
  margin: 0px 0px 0px 0px;
  font-family: 'Lato', sans-serif;
  font-size: 0.875em;
  color: #ff9800;
  outline:none;
  cursor: pointer;
  border: solid 1px #b3aca7;
  border-top: none;
}

#submit:hover {
  color: #e2dedb;
}

/* ================================================
   JS VISIBILITY STATES
   ================================================ */

.js .content__title,
.js .content__subtitle,
.js .content__number,
.js .content__text,
.js .content__close {
	opacity: 0;
}

/* ================================================
   LARGE MOBILE - 480px+
   ================================================ */

@media (min-width: 480px) {
	.slide {
		padding: 6vh 1.5rem;
	}
	
	.slide__img-wrap {
		height: 72%;
		top: 14%;
	}
}

/* ================================================
   LARGE MOBILE - 600px+
   ================================================ */

@media (min-width: 600px) {
	.slide {
		padding: 7vh 2rem;
	}
	
	.slide__img-wrap {
		height: 75%;
		top: 12.5%;
	}
	
	.slide__number {
		padding-top: 7vh;
	}
	
	.content__item {
		width: 90%;
		padding: 8vh 2.5rem 5vh;
		right: 5%;
	}
	
	.content__close {
		left: 2rem;
		top: 2rem;
	}
	
	.content__text {
		text-align: justify;
		max-height: 60vh;
		overflow: auto;
	}
}

/* ================================================
   TABLET PORTRAIT - 768px+
   Restore 3-column grid and desktop features
   ================================================ */

@media (min-width: 768px) {
	body {
		padding: 0;
	}

	.frame {
		top: 0;
		display: grid;
		align-items: start;
		justify-items: end;
		grid-template-columns: 50% 50%;
		grid-template-rows: 100%;
		height: 100vh;
	}
	
	/* Restore 3-column slideshow grid */
	.slideshow {
		height: 100vh;
		grid-template-columns: 27% 27% 27%;
		grid-column-gap: 9.5%;
		grid-template-areas: '... slide ...';
	}
	
	.slide {
		padding: 10vh 0 7vh;
		flex-direction: column;
		justify-content: space-between;
		align-items: flex-start;
	}
	
	/* Restore desktop image wrap dimensions */
	.slide__img-wrap {
		height: 80%;
		top: 10%;
	}
	
	.slide__number {
		padding-top: 10vh;
	}
	
	/* Show side text as vertical */
	.slide__side {
		display: block;
		margin: 0 0 0 -1.85rem;
		color: var(--color-side);
		position: relative;
		-webkit-writing-mode: vertical-rl;
		writing-mode: vertical-rl;
		transform: rotate(180deg);
		z-index: 1000;
	}
	
	.slide__title-wrap {
		margin: 0 0 0 -1.85rem;
	}
	
	.slide__title,
	.slide__subtitle {
		display: block;
	}
	
	.slide__title {
		/* Fluid scaling */
		font-size: clamp(2rem, 5vw, 3.25rem);
		margin: 0 0 0.25rem;
	}
	
	.slide__subtitle {
		font-weight: normal;
		margin: 0;
		min-height: 50px;
	}
	
	.content {
		top: 0;
		height: 100%;
	}
	
	.content__item {
		padding: calc(10vh + 5rem) 0 7vh;
		width: 70%;
		right: 15%;
		overflow: visible;
	}
	
	.content__close {
		left: 20%;
		top: calc(10vh + 1rem);
		padding: 0;
	}
	
	.content__number {
		position: absolute;
		top: 7vh;
		right: 0;
		font-size: 2rem;
	}
	
	.content__title {
		font-size: clamp(2rem, 4vw, 3rem);
	}
	
	.content__subtitle {
		font-size: 1.15rem;
		margin-bottom: 4.5vh;
	}
	
	.content__text {
		font-size: 0.95rem;
		column-count: 0;
		column-gap: 2rem;
		max-width: 850px;
		text-align: justify;
		overflow: auto;
		max-height: 500px;
		padding-top: 3px;
		padding-right: 10px;
		padding-bottom: 50px;
	}
	
	.content__img {
		padding-top: 40px;
		padding-bottom: 40px;
		padding-left: 10px;
		padding-right: 10px;
	}

	/* Scrollbar styling for desktop */
	::-webkit-scrollbar {
		width: 3px;
	}
	 
	::-webkit-scrollbar-track {
		-webkit-box-shadow: inset 0 0 1px rgba(255,255,255,0.3);
	}
	 
	::-webkit-scrollbar-thumb {
		background: rgba(255,255,255,0.8);
	}

	::-webkit-scrollbar-thumb:window-inactive {
		background: rgba(255,255,255,0.1);
	}
}

/* ================================================
   TABLET LANDSCAPE - 834px+
   ================================================ */

@media (min-width: 834px) {
	.content__item {
		width: 60%;
		right: 20%;
	}
	
	.content__close {
		left: 30%;
	}
}

/* ================================================
   SMALL DESKTOP - 1024px+
   Restore original desktop layout
   ================================================ */

@media (min-width: 1024px) {
	.content__item {
		padding: calc(10vh + 5rem) 0 7vh;
		width: 50.5%;
		right: 7.5%;
		overflow: visible;
	}
	
	.content__close {
		left: 42%;
		top: calc(10vh + 1rem);
	}
	
	.content__text {
		max-width: 850px;
		max-height: 500px;
	}
}

/* ================================================
   DESKTOP - 1200px+
   ================================================ */

@media (min-width: 1200px) {
	/* Fine-tuning for large screens if needed */
}

/* ================================================
   LARGE DESKTOP - 1440px+
   ================================================ */

@media (min-width: 1440px) {
	/* Fine-tuning for extra large screens if needed */
}

/* ================================================
   REDUCED MOTION SUPPORT
   Respects OS accessibility settings
   ================================================ */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ================================================
   PRINT STYLES
   ================================================ */

@media print {
	.nav,
	.content__close,
	.slideshow__deco {
		display: none;
	}
	
	body {
		background: white;
		color: black;
	}
}
