:root {
		--text-color: #1a1c20;
		--link-color: #007bff;
		--background-color: #f8f9fa;
}

* {
		box-sizing: border-box;
		margin: 0;
		padding: 0;
}

html {
		scroll-behavior: smooth;
}

body {
		font-family: Arial, sans-serif;
		background-image: url('images/Astrophotography/northamerica-optimized.jpg');
		background-size: cover;
		background-position: center;
		background-attachment: fixed;
		background-repeat: no-repeat;
		padding-top: 60px;
}

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

/* Top Navigation */
.top-nav {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		background-color: rgba(0, 0, 0, 0.85);
		backdrop-filter: blur(10px);
		z-index: 100;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
		max-width: 1200px;
		margin: 0 auto;
		padding: 15px 30px;
		display: flex;
		justify-content: space-between;
		align-items: center;
}

.nav-brand {
		color: white;
		font-size: 20px;
		font-weight: 600;
}

.nav-links {
		display: flex;
		gap: 25px;
}

.nav-links a {
		color: rgba(255, 255, 255, 0.9);
		font-size: 15px;
		transition: color 0.3s ease;
}

.nav-links a:hover {
		color: white;
}

/* Container */
.container {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: calc(100vh - 200px);
		padding: 50px;
}

.island {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 40px;
		padding: 50px 60px;
		max-width: 800px;
		border: 3px solid rgba(255, 255, 255, 0.2);
		border-radius: 12px;
		background-color: rgba(0, 0, 0, 0.6);
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
		backdrop-filter: blur(10px);
}

.content {
		flex: 1;
		text-align: left;
}

.content h1 {
		font-size: 36px;
		color: #ffffff;
		margin-bottom: 15px;
		font-weight: 600;
}

.description {
		font-size: 16px;
		line-height: 1.6;
		color: rgba(255, 255, 255, 0.9);
}

.photo {
		flex-shrink: 0;
}

.photo img {
		border-radius: 50%;
		width: 200px;
		height: 200px;
		object-fit: cover;
		border: 4px solid rgba(0, 123, 255, 0.3);
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.image-credit {
		position: fixed;
		bottom: 10px;
		right: 15px;
		font-size: 12px;
		color: rgba(255, 255, 255, 0.8);
		background-color: rgba(0, 0, 0, 0.5);
		padding: 6px 12px;
		border-radius: 4px;
		backdrop-filter: blur(5px);
		z-index: 150;
		transition: bottom 0.2s ease;
}

.image-credit a {
		color: rgba(255, 255, 255, 0.9);
		text-decoration: underline;
}

.image-credit a:hover {
		color: #ffffff;
}

/* Footer */
.footer {
		background-color: rgba(0, 0, 0, 0.9);
		backdrop-filter: blur(10px);
		color: white;
		padding: 20px;
		margin-top: 60px;
}

.footer-container {
		max-width: 1200px;
		margin: 0 auto;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 30px;
		align-items: center;
}

.footer-section p {
		font-size: 13px;
		margin: 5px 0;
		color: rgba(255, 255, 255, 0.8);
}

.footer-section a {
		color: rgba(255, 255, 255, 0.9);
		transition: color 0.3s ease;
}

.footer-section a:hover {
		color: white;
}

.footer-links {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px 15px;
}

.footer-links a {
		display: flex;
		align-items: center;
		gap: 8px;
		font-size: 13px;
		padding: 5px 0;
}

.footer-links i {
		font-size: 16px;
		width: 20px;
}

/* Astrophotography Gallery */
.gallery-page {
		min-height: 100vh;
		padding-top: 80px;
		padding-bottom: 0;
}

.gallery-content {
		max-width: 1200px;
		margin: 0 auto;
		padding: 40px 50px 60px;
		background-color: rgba(0, 0, 0, 0.6);
		border-radius: 12px;
}

.gallery-content h2 {
		font-size: 42px;
		color: #ffffff;
		text-align: center;
		margin-bottom: 15px;
		font-weight: 600;
		text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-note {
		text-align: center;
		font-size: 14px;
		color: rgba(255, 255, 255, 0.7);
		font-style: italic;
		margin-bottom: 40px;
}

.gallery-note a {
		color: rgba(255, 255, 255, 0.9);
		text-decoration: underline;
}

.gallery-note a:hover {
		color: #ffffff;
}

.gallery-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		gap: 20px;
}

.gallery-item {
		position: relative;
		aspect-ratio: 1;
		overflow: hidden;
		border-radius: 8px;
		cursor: pointer;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform 0.3s ease;
}

.gallery-item:hover img {
		transform: scale(1.05);
}

.image-overlay {
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
		color: white;
		padding: 20px;
		transform: translateY(100%);
		transition: transform 0.3s ease;
}

.gallery-item:hover .image-overlay {
		transform: translateY(0);
}

.image-overlay h3 {
		font-size: 18px;
		margin-bottom: 8px;
		font-weight: 600;
}

.image-overlay p {
		font-size: 13px;
		margin: 4px 0;
		opacity: 0.9;
}

/* Lightbox */
.lightbox {
		display: none;
		position: fixed;
		z-index: 2000;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.95);
		align-items: center;
		justify-content: center;
		flex-direction: column;
}

.lightbox-content {
		max-width: 90%;
		max-height: 80vh;
		object-fit: contain;
		border-radius: 8px;
}

.lightbox-video-link {
		margin-top: 20px;
		text-align: center;
}

.lightbox-video-link a {
		color: #ffffff;
		font-size: 16px;
		text-decoration: none;
		padding: 10px 20px;
		background-color: rgba(255, 255, 255, 0.1);
		border-radius: 6px;
		transition: background-color 0.3s ease;
		display: inline-block;
}

.lightbox-video-link a:hover {
		background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
		position: fixed;
		top: 20px;
		right: 40px;
		color: white;
		font-size: 48px;
		font-weight: bold;
		cursor: pointer;
		transition: color 0.3s ease;
		z-index: 2001;
}

.lightbox-close:hover {
		color: #ccc;
}

.lightbox-caption {
		color: white;
		text-align: center;
		padding: 20px;
		max-width: 700px;
		margin: 0 auto;
		display: block;
}

.lightbox-caption h3 {
		font-size: 24px;
		margin-bottom: 10px;
}

.lightbox-caption p {
		font-size: 14px;
		margin: 5px 0;
}

/* CV Page */
.cv-page {
		min-height: 100vh;
		padding-top: 80px;
		padding-bottom: 0;
}

.cv-content {
		max-width: 1000px;
		margin: 0 auto;
		padding: 40px 50px 60px;
		background-color: rgba(0, 0, 0, 0.6);
		border-radius: 12px;
}

.cv-content h2 {
		font-size: 42px;
		color: #ffffff;
		text-align: center;
		margin-bottom: 15px;
		font-weight: 600;
		text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cv-download {
		text-align: center;
		margin-bottom: 40px;
}

.cv-section {
		margin-bottom: 35px;
}

.cv-section h3 {
		font-size: 22px;
		color: #ffffff;
		margin-bottom: 20px;
		padding-bottom: 10px;
		border-bottom: 2px solid rgba(255, 255, 255, 0.3);
		font-weight: 600;
}

.cv-item {
		margin-bottom: 20px;
}

.cv-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		gap: 10px;
}

.cv-title {
		font-size: 16px;
		color: #ffffff;
		font-weight: 600;
}

.cv-date {
		font-size: 14px;
		color: rgba(255, 255, 255, 0.7);
}

.cv-subtitle {
		font-size: 14px;
		color: rgba(255, 255, 255, 0.85);
		font-style: italic;
		margin: 5px 0 10px;
}

.cv-list {
		list-style-type: disc;
		padding-left: 20px;
		margin: 0;
}

.cv-list li {
		font-size: 14px;
		color: rgba(255, 255, 255, 0.8);
		margin-bottom: 8px;
		line-height: 1.5;
}

.cv-list a {
		color: rgba(255, 255, 255, 0.9);
		text-decoration: underline;
}

.cv-list a:hover {
		color: #ffffff;
}

.cv-list strong {
		color: #ffffff;
}

.skills-list {
		list-style-type: none;
		padding-left: 0;
}

/* Talks Page */
.talks-page {
		min-height: 100vh;
		padding-top: 80px;
		padding-bottom: 0;
}

.talks-content {
		width: 100%;
		margin: 0 auto;
		padding: 40px 0 60px;
}

.talks-content h2 {
		font-size: 42px;
		color: #ffffff;
		text-align: center;
		margin-bottom: 50px;
		font-weight: 600;
		text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
		padding: 0 20px;
}

.talk-block {
		background-color: rgba(0, 0, 0, 0.6);
		border-radius: 12px;
		padding: 30px;
		margin: 0 auto 30px;
		border: 2px solid rgba(255, 255, 255, 0.1);
		max-width: 1200px;
}

.talk-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 15px;
		flex-wrap: wrap;
		gap: 10px;
}

.talk-header h3 {
		font-size: 26px;
		color: #ffffff;
		font-weight: 600;
		margin: 0;
}

.talk-date {
		font-size: 14px;
		color: rgba(255, 255, 255, 0.7);
		font-style: italic;
}

.talk-note {
		font-size: 14px;
		color: rgba(255, 255, 255, 0.8);
		font-style: italic;
		margin-top: 10px;
}

.talk-location {
		font-size: 15px;
		color: rgba(255, 255, 255, 0.85);
		margin-bottom: 8px;
		font-weight: 500;
}

.talk-description {
		font-size: 14px;
		color: rgba(255, 255, 255, 0.75);
		margin-bottom: 15px;
		font-style: italic;
}

.download-link {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 10px 20px;
		background-color: rgba(0, 123, 255, 0.8);
		color: white;
		border-radius: 6px;
		font-size: 14px;
		font-weight: 500;
		transition: background-color 0.3s ease;
		margin-bottom: 20px;
}

.download-link:hover {
		background-color: rgba(0, 123, 255, 1);
}

.pdf-viewer {
		width: 100%;
		height: 750px;
		border-radius: 8px;
		overflow: hidden;
		background-color: rgba(255, 255, 255, 0.1);
		position: relative;
}

.pdf-viewer iframe {
		width: 100%;
		height: 100%;
		border: none;
}

@media (max-width: 768px) {
		.container {
				padding: 20px;
		}

		/* Navigation - two lines, same desktop fonts */
		.top-nav {
				min-height: 140px !important;
				padding: 0 !important;
				display: flex !important;
				align-items: center !important;
				justify-content: center !important;
		}

		.nav-container {
				padding: 0 15px;
				flex-direction: column !important;
				gap: 15px !important;
				align-items: center !important;
		}

		.nav-brand {
				font-size: 20px !important;
		}

		.nav-links {
				gap: 25px !important;
		}

		.nav-links a {
				font-size: 15px !important;
		}

		body {
				padding-top: 140px !important;
		}

		.talks-page {
				padding-top: 140px !important;
		}

		.gallery-page {
				padding-top: 140px !important;
		}

		.talks-content {
				padding: 0 !important;
				margin: 0 !important;
		}

		.talks-content h2 {
				margin: 0 0 20px 0 !important;
				padding: 0 !important;
		}

		.talk-block {
				margin: 0 auto 20px !important;
		}

		.talk-block:first-of-type {
				margin-top: 0 !important;
		}

		.talks-page .container {
				padding: 0 !important;
				min-height: auto !important;
		}

		.gallery-content {
				padding: 0 20px 40px !important;
				margin-top: 0 !important;
		}

		.gallery-content h2 {
				margin-top: 0 !important;
				padding-top: 0 !important;
		}

		/* Home page island */
		.island {
				flex-direction: column;
				padding: 30px 25px;
				gap: 25px;
				max-width: 100%;
		}

		.content {
				text-align: center;
		}

		.content h1 {
				font-size: 28px;
		}

		.description {
				font-size: 15px;
		}

		.photo img {
				width: 150px;
				height: 150px;
		}

		/* Footer */
		.footer-container {
				grid-template-columns: 1fr 1fr;
				gap: 15px;
		}

		.footer-section p {
				font-size: 12px;
		}

		.footer-links a {
				font-size: 12px;
		}

		/* Talks page */
		.talk-block {
				max-width: 95%;
				padding: 20px;
		}

		.talk-header {
				flex-direction: column;
				align-items: flex-start;
				gap: 5px;
		}

		.talk-header h3 {
				font-size: 20px;
		}

		.pdf-viewer {
				display: none;
		}

		/* Gallery */
		.gallery-content {
				padding: 20px;
		}

		.gallery-content h2 {
				font-size: 32px;
				margin-bottom: 30px;
		}

		.gallery-grid {
				grid-template-columns: 1fr;
				gap: 15px;
		}

		.image-credit {
				font-size: 10px;
				padding: 4px 8px;
		}
}

@media (max-width: 480px) {
		.container {
				padding: 10px;
		}

		.island {
				padding: 20px 15px;
		}

		.content h1 {
				font-size: 24px;
		}

		.description {
				font-size: 14px;
		}

		.photo img {
				width: 120px;
				height: 120px;
		}

		.nav-brand {
				font-size: 14px;
		}

		.nav-links a {
				font-size: 13px;
		}

		.talk-header h3 {
				font-size: 18px;
		}

		.gallery-content h2 {
				font-size: 28px;
		}

		.pdf-viewer {
				display: none;
		}
}
