@charset "UTF-8";

/* =========================================================
   EDUARDO VERGARA — PERSONAL WEBSITE
   Main stylesheet
   ========================================================= */


/* =========================================================
   01. VARIABLES
   ========================================================= */

:root {
	--violet: #5B21B6;
	--orange: #FF5500;
	--orange-dark: #D94700;

	--navy: #202124;
	--navy-2: #2B2D30;

	--light: #F7F7F5;
	--white: #FFFFFF;

	--text: #303238;
	--muted: #6B7075;
	--line: #DFE1E4;

	--max: 1180px;

	--radius: 5px;
	--transition: .22s ease;
}


/* =========================================================
   02. RESET / BASE
   ========================================================= */

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family:
		Inter,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Arial,
		sans-serif;

	color: var(--text);
	background: var(--white);

	line-height: 1.65;

	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	text-decoration: none;
	color: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}


/* =========================================================
   03. GLOBAL LAYOUT
   ========================================================= */

.container {
	width: min(92%, var(--max));
	margin-inline: auto;
}

section {
	padding: 82px 0;
}

.light {
	background: var(--light);
}

.dark {
	background: var(--navy);
	color: var(--white);
}


/* =========================================================
   04. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	font-size: clamp(3.2rem, 6vw, 5.7rem);
	line-height: .97;
	letter-spacing: -.055em;
	margin-bottom: 0;
}

h1 span {
	color: var(--violet);
}

.heading {
	max-width: 760px;
	margin-bottom: 40px;
}

.heading h2 {
	margin: 0 0 14px;
	color: var(--navy);
	font-size: clamp(2rem, 4vw, 3.15rem);
	line-height: 1.05;
	letter-spacing: -.04em;
}

.dark h2 {
	color: var(--white);
}

.lead {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--muted);
}

.dark .lead {
	color: #bdc6cd;
}

.eyebrow {
	margin-bottom: 16px;

	color: var(--orange);

	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .15em;
	text-transform: uppercase;
}


/* =========================================================
   05. HEADER / NAVIGATION
   ========================================================= */

header {
	position: sticky;
	top: 0;
	z-index: 100;

	background: rgba(32, 33, 36, .97);

	border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav {
	min-height: 72px;

	display: flex;
	align-items: center;
	justify-content: space-between;
}

.brand {
	color: var(--white);
	font-weight: 800;
	letter-spacing: -.02em;
}

.brand span {
	color: var(--violet);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 24px;

	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	color: #dce1e5;

	font-size: .88rem;
	font-weight: 650;

	transition: color var(--transition);
}

.nav-links a:hover {
	color: var(--orange);
}

.nav-cta {
	padding: 9px 14px;

	border: 1px solid var(--orange);
	border-radius: 4px;

	transition:
		background var(--transition),
		color var(--transition);
}

.nav-cta:hover {
	background: var(--orange);
	color: var(--white);
}

.brand-group {
	display:flex;
	flex-direction:column;
	justify-content:center;
	line-height:1.15;
}

.brand-subtitle {
	margin-top:4px;
	color:#aeb6bd;
	font-size:.68rem;
	font-weight:500;
	letter-spacing:.02em;
	white-space:nowrap;
}
/* =========================================================
   06. HERO
   ========================================================= */

.hero {
	position: relative;

	min-height: 720px;

	display: flex;
	align-items: center;

	overflow: hidden;

	background: #111;
}

.hero-bg {
	position: absolute;
	inset: 0;

	background-image: url("../images/Ed-hero.jpg");
	background-size: cover;
	background-position: center center;

	z-index: 0;
}

.hero-overlay {
	position: absolute;
	inset: 0;

	background:
		linear-gradient(
			90deg,
			rgba(12, 10, 16, .96) 0%,
			rgba(12, 10, 16, .88) 28%,
			rgba(12, 10, 16, .55) 52%,
			rgba(12, 10, 16, .12) 78%,
			rgba(12, 10, 16, .02) 100%
		);

	z-index: 1;
}

.hero-grid {
	position: relative;
	z-index: 2;
}

.hero-content {
	max-width: 680px;
}

.hero-title {
	max-width: 700px;

	margin: 25px 0 16px;

	color: #e7ebee;

	font-size: 1.35rem;
	line-height: 1.35;
}

.hero-copy {
	max-width: 680px;

	color: #bdc6cd;
}


/* =========================================================
   07. BUTTONS
   ========================================================= */

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;

	margin-top: 30px;
}

.btn {
	min-height: 47px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	padding: 0 20px;

	border-radius: 4px;

	font-size: .9rem;
	font-weight: 750;

	transition:
		transform var(--transition),
		background var(--transition),
		border-color var(--transition),
		color var(--transition);
}

.btn:hover {
	transform: translateY(-1px);
}

.primary {
	background: var(--orange);
	color: var(--white);
}

.primary:hover {
	background: var(--orange-dark);
}

.outline {
	border: 1px solid rgba(255,255,255,.35);
	color: var(--white);
}

.outline:hover {
	border-color: var(--orange);
	color: var(--white);
}


/* =========================================================
   08. PROFILE
   ========================================================= */

.profile-grid {
	display: grid;
	grid-template-columns: .82fr 1.18fr;

	gap: 55px;

	align-items: center;
}

.photo {
	height: 520px;

	padding: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	overflow: hidden;

	border-radius: var(--radius);

	background: #e9ecee;
}

.photo img {
	width: 100%;
	height: 100%;

	display: block;

	object-fit: cover;
	object-position: center 20%;

	transition: transform .5s ease;
}

.photo:hover img {
	transform: scale(1.015);
}

.profile-photo {
	display:flex;
	flex-direction:column;
}

.photo-caption {
	padding-top:14px;
	color:var(--muted);
	font-size:.82rem;
	line-height:1.45;
	letter-spacing:.01em;
}
/* =========================================================
   09. ROLES
   ========================================================= */

.roles {
	margin-top: 25px;

	border-top: 1px solid var(--line);
}

.role {
	display: grid;
	grid-template-columns: 175px 1fr;

	gap: 20px;

	padding: 14px 0;

	border-bottom: 1px solid var(--line);
}

.role span {
	color: var(--muted);
	font-size: .92rem;
}


/* =========================================================
   10. GENERAL GRIDS
   ========================================================= */

.grid3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.grid4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}


/* =========================================================
   11. CARDS
   ========================================================= */

.card {
	min-height: 220px;

	padding: 27px;

	background: var(--white);

	border: 1px solid var(--line);

	transition:
		transform var(--transition),
		box-shadow var(--transition),
		border-color var(--transition);
}

.card:hover {
	transform: translateY(-2px);

	border-color: #d4d7da;

	box-shadow: 0 10px 28px rgba(16,24,32,.07);
}

.card h3 {
	margin: 14px 0 9px;

	color: var(--navy);

	font-size: 1.15rem;
	line-height: 1.25;
}

.card p {
	margin: 0;

	color: var(--muted);

	font-size: .94rem;
	line-height: 1.65;
}


/* =========================================================
   12. DIFFERENTIATORS
   ========================================================= */

.diff {
	padding-top: 18px;

	border-top: 3px solid var(--violet);
}

.diff h3 {
	margin: 0 0 7px;
}

.diff p {
	margin: 0;

	color: #bdc6cd;

	font-size: .92rem;
	line-height: 1.6;
}


/* =========================================================
   13. EXPERIENCE / PROJECTS
   ========================================================= */

.projects {
	display: grid;
	grid-template-columns: repeat(2, 1fr);

	gap: 24px;
}

.project {
	background: var(--white);

	border: 1px solid var(--line);

	overflow: hidden;

	transition:
		transform var(--transition),
		box-shadow var(--transition);
}

.project:hover {
	transform: translateY(-3px);

	box-shadow: 0 12px 32px rgba(16,24,32,.07);
}

.project-img {
	height: 220px;

	background: #eceff1;

	border-bottom: 1px solid var(--line);

	overflow: hidden;
}

.project-img img {
	width: 100%;
	height: 100%;

	display: block;

	object-fit: cover;
	object-position: center;

	transition: transform .4s ease;
}

.project:hover .project-img img {
	transform: scale(1.03);
}

.project-body {
	padding: 25px 26px 27px;
}

.project-body h3 {
	margin: 0 0 8px;

	color: var(--navy);

	font-size: 1.12rem;
	line-height: 1.3;
}

.project-body p {
	margin: 0;

	color: var(--muted);

	font-size: .94rem;
	line-height: 1.65;
}


/* =========================================================
   14. STATS
   ========================================================= */

.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);

	gap: 25px;
}

.stat {
	padding-top: 18px;

	border-top: 1px solid rgba(255,255,255,.2);
}

.stat strong {
	display: block;

	margin-bottom: 10px;

	color: var(--orange);

	font-size: 2.55rem;
	line-height: 1;
	letter-spacing: -.03em;
}

.stat span {
	color: #c2cbd1;

	font-size: .9rem;
	line-height: 1.5;
}


/* =========================================================
   15. CONTACT
   ========================================================= */

.contact {
	background: var(--violet);
	color: var(--white);
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr .9fr;

	gap: 60px;

	align-items: center;
}

.contact h2 {
	color: var(--white);
}

.contact p {
	max-width: 680px;

	color: rgba(255,255,255,.88);
}

.contact-links {
	display: grid;
	gap: 11px;
}

.contact-link {
	padding: 14px 16px;

	background: rgba(0,0,0,.13);

	border: 1px solid rgba(255,255,255,.2);

	font-weight: 650;

	transition:
		background var(--transition),
		border-color var(--transition);
}

.contact-link:hover {
	background: rgba(0,0,0,.2);
	border-color: rgba(255,255,255,.35);
}


/* =========================================================
   16. FOOTER
   ========================================================= */

footer {
	padding: 28px 0;

	background: #111214;

	color: #89949d;

	font-size: .82rem;
}

.footer {
	display: flex;
	flex-wrap: wrap;

	justify-content: space-between;

	gap: 20px;
}

.footer b {
	color: var(--white);
}

.footer b span {
	color: var(--orange);
}


/* =========================================================
   17. TABLET
   ========================================================= */

@media (max-width: 900px) {

	.nav-links {
		display: none;
	}

	.hero-grid,
	.profile-grid,
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.profile-grid {
		gap: 40px;
	}

	.grid3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.grid4,
	.stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.photo {
		height: 480px;
	}

	.placeholder {
		min-height: 380px;
	}
}


/* =========================================================
   18. MOBILE
   ========================================================= */

@media (max-width: 620px) {

	section {
		padding: 62px 0;
	}

	.container {
		width: min(90%, var(--max));
	}

	.grid3,
	.grid4,
	.stats,
	.projects {
		grid-template-columns: 1fr;
	}

	h1 {
		font-size: 3.1rem;
	}

	.heading {
		margin-bottom: 32px;
	}

	.heading h2 {
		font-size: 2.15rem;
	}

	.lead {
		font-size: 1rem;
	}

	.hero {
		min-height: 650px;
	}

	.hero-title {
		font-size: 1.2rem;
	}

	.actions {
		margin-top: 25px;
	}

	.btn {
		width: 100%;
	}

	.photo {
		height: 420px;
	}

	.role {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.card {
		padding: 24px;
	}

	.project-img {
		height: 190px;
	}

	.project-body {
		padding: 22px;
	}
		.brand-subtitle {
		font-size:.58rem;
		max-width:230px;
		white-space:normal;
		line-height:1.25;
	}

}


/* =========================================================
   19. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}