	@font-face {
	font-family: copperPlate;
	src: url(./font/CopperplateCC-Bold.ttf) url(./font/CopperplateCC-Bold.ttf) format('ttf');
}
@font-face {
	font-family: 'PromptRegular';
	src: url('./font/Prompt-Light.ttf') format('truetype');
}
@font-face {
	font-family: 'frutiger';
	font-style: normal;
	font-weight: normal;
	src: url('./font/Frutiger.woff'), url('Frutiger.woff') format('woff');
	}

.masterBody {
	background-color: black;
	margin: 0px;
}

.master {
	max-width: 100vw;
	color: rgb(211, 211, 211);
}

/* Web-component wrappers render the shared header/footer (see js/components.js).
   Make them transparent block containers so the layout inside is unaffected. */
site-header,
site-footer {
	display: block;
}

.masterHeader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 72%; /* Page Width */
	max-width: 1600px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 50px;
}

.branding {
	display: flex;
	flex-shrink: 0;
	font-family: Copperplate;
}

.logoImg {
	width: 100px;
	height: 100px;
	padding-top: 20px;
	padding-bottom: 20px;
}

.nameAndTag{ margin-left: 3px; }

.nameAndTag .brandName {
	margin-right: 5px;
	margin-left: 5px;
	font-size: 45px;
	font-weight: bold;
	margin-top: 20px;
	margin-bottom: 0px;
}

.nameAndTag .brandTag {
	text-align: right;
	margin-right: 5px;
	margin-top: 8px;
	font-size: 28px;
	font-weight: bold;
	margin-bottom: 0px;
}

/* Visually-hidden but screen-reader/SEO accessible — used for a page's
   real <h1> when the visible design has no natural place for one. */
.srOnly {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.navbar{
	margin-top: 46px;
}

.linkButtons {
	display: flex;
	flex-shrink: 0;
	color: lightgray;
	margin-left: 100px;
	gap: 20px;
}

.navbar a {
	font-family: copperplate-light;		
	font-size: 18px;
	color: lightgray;	/*top boarder color wrong or in wrong spot*/
	background-color: black;
	padding-block: 10px;
	text-align: center;
	text-decoration: none;
	border: 1px solid transparent;
	margin-top: 10px;
	margin-bottom: 10px;
	transition: all 0.4s ease;
	position: relative;
}

.navbar a::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	width: 0;
	height: 1px; 
	background-color: darkgrey;
	transition: width 0.4s ease, left 0.4s ease;
}

.navbar a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 1px;
	background-color: darkgrey;
	transition: width 0.4s ease, left 0.4s ease;
}

.navbar a:hover {
	transition: width 0.4s ease, left 0.4s ease;
}

.navbar a:hover::before,
.navbar a:hover::after {
	width:79%;  /* Expands the line from the center */
	left: 10%;  
}

hr { margin: 0px;}

@media (max-width: 768px) {
	.masterHeader {
		flex-direction: column;
		align-items: center;
		width: 100%;
		padding: 0 20px;
	}

	.branding {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.nameAndTag .brandName { font-size: 28px; }
	.nameAndTag .brandTag { font-size: 18px; text-align: center; }

	.navbar { margin-top: 12px; }

	.linkButtons {
		margin-left: 0;
		gap: 12px;
		flex-wrap: wrap;
		justify-content: center;
	}

	.navbar a { font-size: 15px; }

	.firstRow {
		margin: 20px 0;
		height: 260px;
	}

	.pageTitle { font-size: 36px; }

	.thirdRow {
		margin-top: 40px;
		margin-bottom: 40px;
	}

	.currentWorks {
		flex-direction: column;
		gap: 24px;
	}

	.imageBox {
		width: 100%;
	}

	footer {
		flex-direction: column;
		align-items: center;
		width: 90%;
		gap: 8px;
		text-align: center;
		padding: 16px 0;
	}
}
@keyframes gifFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes cmdFadeOut {
	from { opacity: 1; }
	to   { opacity: 0; }
}

@keyframes cursorBlink {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0; }
}

.mainPage {
	width: 88%;
	max-width: 1400px;
	margin: 0 auto;
}

.firstRow {
	margin-top: 40px;
	height: 500px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.firstRowBg {
	position: absolute;
	inset: 0;
	background-image: url(../images/portfolioPictures/homePage/gif1.gif);
	background-repeat: repeat;
	background-size: 40%;
	background-position: center top;
	opacity: 0;
}

.firstRowBg.visible {
	animation: gifFadeIn 1.5s ease forwards;
}

.pageTitle {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	background-color: transparent;
	padding: 10px 20px;
	font-family: 'frutiger', monospace;
	font-size: 28px;
	color: rgb(199, 139, 7);
	min-width: 420px;
	letter-spacing: 0.04em;
}

.pageTitle.fadeOut {
	animation: cmdFadeOut 1s ease forwards;
	animation-delay: 0.8s;
}

.eosLive {
	font-size: 22px;
	color: rgb(199, 139, 7);
	border: 1px solid rgb(199, 139, 7);
	padding: 2px 8px;
	margin-right: 6px;
	flex-shrink: 0;
}

.eosCursor {
	animation: cursorBlink 1s step-end infinite;
	color: rgb(199, 139, 7);
}

/* Section labeling — matches the eyebrow+rule pattern used on about.html
   and experience.html, so home.html reads as part of the same system
   instead of an older, unlabeled design bolted onto the front. */
.sectionHeader {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 56px;
}

.sectionEyebrow {
	font-family: 'frutiger', monospace;
	font-size: 13px;
	font-weight: normal;
	letter-spacing: 0.2em;
	color: rgb(199, 139, 7);
	text-transform: uppercase;
	white-space: nowrap;
	margin: 0;
}

.sectionRule {
	flex: 1;
	height: 1px;
	background-color: #1a2830;
}

/* Grid (not flex) so both columns shrink together, proportionally, as
   the row narrows — a plain flex row routes all the squeeze into
   whichever item has flex-grow, leaving the other one rigid. */
.secondRow {
	display: grid;
	grid-template-columns: minmax(300px, 600px) minmax(380px, 700px);
	justify-content: space-between;
	gap: 24px;
	margin-top: 24px;
	align-items: start;
}

/* ── Navy card system — matches about.html / experience.html cards ──
   aboutMe shrinks fluidly (text wraps, box grows taller) while
   experienceContainer shrinks alongside it — see the stacking
   breakpoint below for where aboutMe's height catches up to it. */
.aboutMe {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	background-color: #111a20;
	border: 1px solid #1a2830;
	border-radius: 12px;
	padding: 24px;
	box-sizing: border-box;
}

.aboutMe img {
	width: 190px;
	aspect-ratio: 3 / 4;
	flex-shrink: 0;
	object-fit: cover;
	object-position: center;
	border: 1px solid #1a2830;
	border-radius: 10px;
}

.aboutMe p {
	flex: 1;
	margin: 0;
	max-width: none;
	font-size: 17px;
	font-family: 'frutiger', sans-serif;
	font-style: normal;
	color: #d3d3d3;
	line-height: 1.6;
}

.experienceContainer {
	background-color: #111a20;
	border: 1px solid #1a2830;
	border-radius: 12px;
	width: 100%;
	height: 320px;
	font-family: 'frutiger', sans-serif;
	box-sizing: border-box;
}

/* aboutMe stays a row (image left, text right) at every width — both
   columns shrink together as the row narrows (see grid-template-columns
   above), and aboutMe's text wraps taller as it does. 1179px is where
   that wrapped height first reaches experienceContainer's fixed 320px
   (measured: 1180px -> 305px tall, 1177px -> 322px tall) — stack right
   at that point instead of letting aboutMe grow past it. */
@media (max-width: 1179px) {
	.secondRow {
		grid-template-columns: 1fr;
	}

	.experienceContainer {
		height: auto;
	}
}

/* True phone widths: a 190px-wide photo leaves no room for readable text
   beside it, so fall back to photo-on-top here only. */
@media (max-width: 480px) {
	.aboutMe {
		flex-direction: column;
		align-items: center;
	}

	.aboutMe img {
		width: 100%;
		max-width: 280px;
		aspect-ratio: 3 / 4;
	}

	.aboutMe p {
		text-align: center;
	}
}

.body, .experienceFooter {
	margin: 10px 15px;
}

.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0px;
}

.body h3, .body h4, .body p, .body hr {
	margin: 0px;
}

.body hr {
	border: none;
	border-top: 1px solid #1a2830;
}

.body h3 {
	font-size: 19px;
	font-weight: normal;
	color: #d3d3d3;
}

.body h4 {
	font-family: 'frutiger', monospace;
	font-size: 14px;
	font-weight: normal;
	letter-spacing: 0.04em;
	color: #8a9ea8;
	margin-left: 10px;
	margin-top: 5px;
}

.body h5 {
	margin: 10px 0px;
	font-family: 'frutiger', monospace;
	font-size: 13px;
	font-weight: normal;
	letter-spacing: 0.08em;
	color: #c78b07;
}

.body p {
	margin-left: 40px;
	margin-bottom: 20px;
	font-size: 15px;
	color: #8a9ea8;
	font-style: normal;
}

/* CTA buttons — match the amber-outline button on experience.html. */
.experienceFooter, .footerButtons {
	background: none;
	border: 1px solid rgba(199, 139, 7, 0.4);
	border-radius: 8px;
	width: 200px;
	height: 46px;
	display: flex;
	justify-content: center;
	margin-top: 20px;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	box-sizing: border-box;
}

.experienceFooter a, .footerButtons a {
	font-family: 'frutiger', monospace;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #c78b07;
	text-decoration: none;
	margin: auto auto;
}

/* Keep the CTA text amber on hover (overrides the global a:hover rule). */
.experienceFooter a:hover, .footerButtons a:hover { color: #c78b07; }

.experienceFooter:hover, .footerButtons:hover {
	background-color: rgba(199, 139, 7, 0.12);
	border-color: #c78b07;
}

a:visited { color: lightgrey; }

a:hover { color: lightgrey; }

a:active { color: darkgrey; }

.thirdRow {
	margin-top: 24px;
	margin-bottom: 100px;
}

.currentWorks {
	display: flex;
	justify-content: space-between;
}

.imageBox {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: calc(33.33% - 20px);
	margin: 0 0px;
}

.imageBox p {
	font-family: 'frutiger', sans-serif;
	font-size: 15px;
	color: lightgray;
	margin-top: 10px;
	margin-bottom: 0px;
}

.imageBoxImg {
	width: 100%;
	aspect-ratio: 1/1;
	object-fit: cover;
	object-position: center;
	border: 1px solid #1a2830;
	border-radius: 12px;
}

/* Tall images (Light Art) — keep the square frame, crop toward the top. */
.imageBoxImgTop {
	object-position: 50% 20%;
}

.footerButtons {
	display: flex;
	align-content: center;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 60px;
}
footer {
	font-family: 'frutiger', sans-serif;
	font-size: 12px;
	color: lightgray;
	width: 72%;
	display: flex;
	justify-content: space-between;
	margin-left: auto;
	margin-right: auto;
}

footer Img {
	width: 30px;
	height: 30px;
	padding-left: 10px;
}

footer a {
	text-decoration: none;
}