/* Walkway Font Face Declarations */
@font-face {
	font-family: 'Walkway';
	src: url('fonts/Walkway SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
}

@font-face {
	font-family: 'Walkway';
	src: url('fonts/Walkway Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: 'Walkway';
	src: url('fonts/Walkway UltraBold.ttf') format('truetype');
	font-weight: 800;
	font-style: normal;
}

html, body {
	margin: 0px;
	padding: 0px;
	font-family: "Nirmala UI", Helvetica, sans-sarif;
	overflow-x: hidden;
}

h1 {
	display: inline;
	font-size: 950%;
	color: rgb(180, 120, 80);
	padding: 0% 5%;
	vertical-align: middle;
}

h3 {
	display: inline-block;
	float: left;
	margin: 0;
	padding: 20px 0;
	color: rgb(240, 240, 215);
	vertical-align: middle;
	font-size: 28px;
	font-family: 'Walkway', sans-serif;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

h4 {
	display: inline-block;
	color: rgb(180, 120, 80);
	padding: 2% 0 0 3%;
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
	letter-spacing: 1px;
}

.floating-text h4 {
	color: rgb(180, 120, 80);
	font-size: 22px;
	font-weight: 600;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
	letter-spacing: 1px;
	margin: 0 0 16px 0;
	padding: 0;
}

.floating-text p {
	margin: 0;
	padding: 0;
}

p {
	display: inline-block;
	color: rgb(240, 240, 215);
	text-indent: false;
	padding: 0% 0%;
	vertical-align: middle;
	
}

ul {
	list-style-type: none;
	margin: 0;
	padding: 0 12.5%;
	display: flex;
	align-items: center;
	height: 70px;
}

li {
	display: flex;
	align-items: center;
}

a {
	color: rgb(240, 240, 215);
	text-decoration: none;
}

a:hover {
	color: rgb(150, 150, 200);
}

a:visited {
	color: rgb(240, 240, 215);
}

/* CV download links styling */
.content-text-section a[download],
.floating-text a[download] {
	color: rgb(180, 120, 80);
	text-decoration: none;
	font-weight: normal;
}

.content-text-section a[download]:hover,
.floating-text a[download]:hover {
	color: rgb(200, 140, 100);
}

/* ORCID external links styling */
.content-text-section a[href*="orcid.org"],
.floating-text a[href*="orcid.org"] {
	color: rgb(180, 120, 80);
	text-decoration: none;
	font-weight: normal;
}

.content-text-section a[href*="orcid.org"]:hover,
.floating-text a[href*="orcid.org"]:hover {
	color: rgb(200, 140, 100);
}


.headbar li:first-child {
	margin-right: auto;
}

.headbar li:first-child a {
	padding: 0;
	text-decoration: none;
}

.headbar li:first-child a:hover {
	color: inherit;
}

.headbar li:nth-child(2) {
	flex: 1;
}

.headbar li:nth-child(n+3) {
	display: inline-block;
	min-width: max-content;
	text-align: center;
	margin: 0 8px;
}

li a {
	display: inline-block;
	padding: 12px 16px;
	text-decoration: none;
	color: rgb(240, 240, 215);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: color 0.2s ease;
	white-space: nowrap;
}

li a:hover {
	color: rgb(180, 120, 80);
}

li p {
	display: block;
	text-align: center;
	padding: 0% 0%;
	text-decoration: none;
	color: rgb(240, 240, 215);
}

.active {
	text-decoration: underline;
	text-decoration-color: rgb(180, 120, 80);
	text-underline-offset: 4px;
	text-decoration-thickness: 2px;
}

.headbar {
	position: fixed;
	background: linear-gradient(135deg, rgb(45, 45, 45) 0%, rgb(35, 35, 35) 100%);
	padding: 0;
	width: 100%;
	z-index: 2;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile Navigation */
.mobile-nav {
	display: none;
	justify-content: space-between;
	align-items: center;
	padding: 0 12.5%;
	height: 70px;
}

.mobile-nav h3 {
	margin: 0;
	padding: 20px 0;
	float: none;
}

.mobile-nav a {
	text-decoration: none;
	color: inherit;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.mobile-nav a:hover {
	color: inherit;
}

.mobile-menu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 30px;
	height: 24px;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.mobile-menu-toggle span {
	display: block;
	height: 0;
	width: 100%;
	border-top: 1.5px solid rgb(240, 240, 215);
	border-radius: 1px;
	transition: all 0.3s ease;
}

.mobile-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: linear-gradient(135deg, rgb(45, 45, 45) 0%, rgb(35, 35, 35) 100%);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	display: none;
	flex-direction: column;
}

.mobile-dropdown.show {
	display: flex;
}

.mobile-dropdown a {
	padding: 16px 12.5%;
	color: rgb(240, 240, 215);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(240, 240, 215, 0.1);
	transition: font-weight 0.2s ease;
}

.mobile-dropdown a:hover {
	color: rgb(180, 120, 80);
}

.mobile-dropdown a.active {
	text-decoration: underline;
	text-decoration-color: rgb(180, 120, 80);
	text-underline-offset: 4px;
	text-decoration-thickness: 2px;
}

/* Responsive Media Queries */
@media (max-width: 800px) {
    .desktop-nav {
        display: none;
    }

	.mobile-nav {
		display: flex;
	}
	
	.email-contact-text {
		display: none;
	}
	
	.email-contact {
		justify-content: flex-start;
		flex: 1;
		order: 0;
    }

    .footerbar .footercontent {
	    padding: 0 5%;
    }

    .footerbar li p {
	    font-size: 8px;
    }
    
    .footercontent .social-link {
        padding: 3px;
    }
    
    .footercontent .social-link svg {
        width: 16px;
        height: 16px;
    }
    
	
	/* Reduce content box tilt on mobile for better readability */
	.full-width-content-box {
		clip-path: polygon(0 5%, 100% 0%, 100% 100%, 0 95%) !important; /* Reduced from 15% to 8% */
	}

    .full-width-content-box .full-width-inner,
    .full-width-content-box-alt .full-width-inner {
        padding: 60px 10px !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
	
	.full-width-content-box-alt {
		clip-path: polygon(0 0%, 100% 5%, 100% 95%, 0 100%) !important; /* Reduced from 15% to 8% */
	}
	
	[data-component="full-width-image-only"] {
		clip-path: polygon(0 5%, 100% 0%, 100% 100%, 0 95%) !important; /* Reduced tilt for images too */
	}

	[data-component="full-width-image-only"]:first-of-type {
		margin-top: -100px;
	}
	
	/* Fix content box overflow on mobile */
	.content-media-section {
		flex: none;
		width: 100%;
		max-width: none;
		min-width: auto;
	}
	
	
}

/* Medium screen adjustments */
@media (max-width: 1300px) and (min-width: 800px) {
	.email-contact-text {
		display: none;
	}
	
	.footerbar li p {
		font-size: 12px;
	}
	
	.footercontent .social-link {
		padding: 10px;
	}
	
	.footercontent .social-link svg {
		width: 18px;
		height: 18px;
	}
	
	

	.full-width-content-box {
		clip-path: polygon(0 10%, 100% 0%, 100% 100%, 0 90%) !important; /* Moderate tilt */
	}
	
	.full-width-content-box-alt {
		clip-path: polygon(0 0%, 100% 10%, 100% 90%, 0 100%) !important; /* Moderate tilt */
	}
	
	[data-component="full-width-image-only"] {
		clip-path: polygon(0 10%, 100% 0%, 100% 100%, 0 90%) !important; /* Moderate tilt for images */
	}

	[data-component="full-width-image-only"]:first-of-type {
		margin-top: -170px;
	}
	
	
}


.dynamic-background {
	position: fixed;
	top: 70px;
	left: 0;
	width: 100%;
	height: calc(100vh - 130px);
	z-index: -1;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: scroll;
}

.foreground {
	padding-top: 120px;
	padding-bottom: 100px;
	min-height: 100vh;
	position: relative;
}

.footerbar {
	width: 100%;
	position: fixed;
	bottom: 0;
	background: linear-gradient(135deg, rgb(45, 45, 45) 0%, rgb(35, 35, 35) 100%);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
	z-index: 2;
}

.footercontent {
	list-style-type: none;
	margin: 0;
	padding: 0 12.5%;
	display: flex;
	align-items: center;
	height: 60px;
}

.email-contact {
	flex: 1;
	display: flex;
	align-items: center;
}

.social-links-center {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex: 2;
}

.footerbar li:last-child {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.footerbar p {
	color: rgb(240, 240, 215);
	font-size: 0.875em; /* 14px equivalent */
	font-weight: 500;
	letter-spacing: 0.0625em; /* 1px equivalent */
	margin: 0;
	padding: 0;
}

.social-link {
	display: inline-block;
	padding: 0.75em; /* 12px equivalent */
	color: rgb(240, 240, 215);
	transition: color 0.2s ease;
	border-radius: 0.375em; /* 6px equivalent */
}

.social-link:hover {
	color: rgb(180, 120, 80);
}

.social-link svg {
	width: 1.25em; /* 20px equivalent */
	height: 1.25em; /* 20px equivalent */
	display: block;
}

.email-contact-text {
	color: rgb(240, 240, 215);
	font-size: 0.875em; /* 14px equivalent */
	font-weight: 500;
	letter-spacing: 0.0625em; /* 1px equivalent */
	margin-right: 0.5em; /* 8px equivalent */
}

.email-link {
	margin-left: 0.5em; /* 8px equivalent */
}



.floating-text {
	position: relative;
	display: inline-block;
	max-width: 600px;
	margin: 40px 20px;
	padding: 32px;
	background: rgba(15, 15, 15, 0.9);
	backdrop-filter: blur(15px);
	border-radius: 16px;
	border: 1px solid rgba(240, 240, 215, 0.15);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
	color: rgb(240, 240, 215);
	line-height: 1.7;
	font-size: 16px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.floating-image {
	position: relative;
	display: inline-block;
	margin: 40px 20px;
	border-radius: 16px;
	border: 2px solid rgba(240, 240, 215, 0.3);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(15px);
	background: rgba(15, 15, 15, 0.3);
	padding: 8px;
}

.links p {
	margin: 0;
	padding-top: 2%;
}

.withlinks:before {
	top: 20%
}

.withheader p{
	padding-top: 0%;
}

.floating-image img {
	width: 100%;
	max-width: 350px;
	height: auto;
	border-radius: 12px;
	display: block;
}

.content-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
	padding: 40px;
	max-width: 1400px;
	margin: 0 auto;
}

.staggered-layout {
	position: relative;
	padding: 60px 40px;
	max-width: 1400px;
	margin: 0 auto;
}

.staggered-layout .floating-text:nth-child(odd) {
	margin-left: 10%;
	margin-right: auto;
}

.staggered-layout .floating-text:nth-child(even) {
	margin-left: auto;
	margin-right: 10%;
}

.staggered-layout .floating-image:nth-child(odd) {
	margin-left: auto;
	margin-right: 15%;
}

.staggered-layout .floating-image:nth-child(even) {
	margin-left: 15%;
	margin-right: auto;
}

h1.floating-title {
	position: relative;
	display: block;
	text-align: center;
	margin: 60px auto;
	padding: 40px;
	background: rgba(15, 15, 15, 0.9);
	backdrop-filter: blur(15px);
	border-radius: 20px;
	border: 1px solid rgba(240, 240, 215, 0.15);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
	max-width: 800px;
}

.full-width-content-box {
	position: relative;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	margin-top: 80px;
	margin-bottom: 80px;
	background: rgba(15, 15, 15, 0.8);
	border-top: 1px solid rgba(240, 240, 215, 0.15);
	border-bottom: 1px solid rgba(240, 240, 215, 0.15);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
	clip-path: polygon(0 15%, 100% 0%, 100% 100%, 0 85%);
}

.full-width-inner {
	display: flex;
	align-items: center;
	max-width: 1400px;
	margin: 0 auto;
	padding: 100px 60px;
	gap: 60px;
}

/* Content media section layout */
.content-media-section {
	flex: 0 0 33vw;
	max-width: min(66.67vw, 400px); /* 2/3 of page width or 400px, whichever is smaller */
	min-width: 250px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* No media layout - text fills full width */
.no-media-layout .content-text-section {
	flex: 1;
	text-align: center;
}

.content-text-section {
	flex: 1;
	color: rgb(240, 240, 215);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 1px;
	line-height: 1.6;
}

.content-text-section h2 {
	color: rgb(180, 120, 80);
	font-size: 20px;
	font-family: 'Walkway', sans-serif;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin: 0 0 20px 0;
}

.content-text-section p {
	margin: 0 0 16px 0;
	padding: 0;
}

.content-image-section {
	flex: none;
}

.content-image-section img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	border: 2px solid rgb(45, 45, 45);
}

.content-audio-section {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.content-audio-player {
	width: 100%;
	max-width: 400px;
	background: transparent;
	border: none;
	border-radius: 8px;
}

.content-audio-player::-webkit-media-controls-panel {
	background-color: rgba(15, 15, 15, 0.9);
}

.content-audio-player::-webkit-media-controls-play-button,
.content-audio-player::-webkit-media-controls-pause-button {
	background-color: rgb(180, 120, 80);
	border-radius: 50%;
}

.content-audio-player::-webkit-media-controls-timeline {
	background-color: rgba(240, 240, 215, 0.2);
	border-radius: 4px;
}

.content-audio-player::-webkit-media-controls-time-remaining-display,
.content-audio-player::-webkit-media-controls-current-time-display {
	color: rgb(240, 240, 215);
}

.content-spotify-section {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 14px;
	overflow: hidden;
	height: 80px;
}

.spotify-embed {
	width: calc(100% + 80px);
	max-width: 480px;
	border: none;
	background: transparent;
	/* Hide album artwork area */
	clip-path: inset(0 0 0 80px);
	margin-left: -80px;
}

.full-width-content-box-alt {
	position: relative;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	margin-top: 80px;
	margin-bottom: 80px;
	background: rgba(15, 15, 15, 0.8);
	border-top: 1px solid rgba(240, 240, 215, 0.15);
	border-bottom: 1px solid rgba(240, 240, 215, 0.15);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
	clip-path: polygon(0 0%, 100% 15%, 100% 85%, 0 100%);
}

.full-width-inner-image {
	position: relative;
	width: 100%;
	height: 33vw;
	max-height: 490px;
	min-height: 250px;
	overflow: visible;
}

.full-width-inner-image::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.8) 100%);
	pointer-events: none;
	z-index: 1;
}

/* Special positioning for first image-only component on home page */
[data-component="full-width-image-only"]:first-of-type {
	margin-top: calc(-11vw - 50px);
}

.full-width-background-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
