/* 
 * CSS Variables for consistent theming
 * These variables are used throughout the stylesheet
 */
:root {
	--primary-color: #000000;
	/* Main brand color (black) */
	--secondary-color: #ffffff;
	/* Background color (white) */
	--accent-color: #9b9b9b;
	/* Secondary text/UI color */
	--text-color: #464646;
	/* Primary text color */
	--transition-speed: 0.3s;
	/* Default animation speed */
}

/* 
 * Global Reset and Base Styles
 * Ensures consistent starting point across browsers
 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	/* Includes padding in element dimensions */
}

body {
	font-family: 'Space Grotesk', sans-serif;
	line-height: 1.6;
	/* Improved readability */
	color: var(--text-color);
	background-color: var(--secondary-color);
	overflow-x: hidden;
	/* Prevents horizontal scroll */
}

/* 
 * Header/Navigation Styles
 * Contains both desktop and mobile navigation
 */
.header {
	position: relative;
	background: var(--primary-color);
	color: var(--secondary-color);
}

.header-container {
	width: 100%;
	background-color: var(--primary-color);
	z-index: 1000;
	/* Ensures header stays above other content */
	padding: 1rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 
 * Mobile Hamburger Menu
 * Only visible on smaller screens
 */
.hamburger {
	display: none;
	/* Hidden by default (shown in mobile view) */
	background: none;
	border: none;
	cursor: pointer;
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 9999;
	padding: 10px;
}

/* Hamburger icon bars */
.hamburger-line {
	display: block;
	width: 25px;
	height: 3px;
	background: var(--secondary-color);
	margin: 5px 0;
	transition: all var(--transition-speed) ease;
}

/* Transform hamburger to X when menu is open */
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
	opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -6px);
}

/* 
 * Desktop Navigation Menu
 */
.menu-links {
	display: flex;
	justify-content: center;
	list-style: none;
	gap: 2rem;
	padding: 1.5rem 0;
}

.menu-links a {
	color: var(--accent-color);
	text-decoration: none;
	font-weight: 500;
	font-size: 1.1rem;
	transition: color var(--transition-speed) ease;
}

.menu-links a:hover,
.menu-links [aria-current="page"] {
	color: var(--secondary-color);
}

.menu-links [aria-current="page"] {
	font-weight: 600;
}

/* 
 * Dropdown Menu Styles
 */
.dropdown {
	position: relative;
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: var(--primary-color);
	min-width: 250px;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transition: all var(--transition-speed) ease;
}

.dropdown:hover .dropdown-menu {
	opacity: 1;
	visibility: visible;
}

.dropdown-menu a {
	color: var(--secondary-color);
	padding: 12px 16px;
	display: block;
	text-align: center;
	background: rgba(0, 0, 0, 0.9);
	transition: background var(--transition-speed);
}

.dropdown-menu a:hover {
	background: #333;
}

/* 
 * Mobile Menu Styles
 * Activated when hamburger is clicked
 */
.mobile-menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 9998;
	padding: 5rem 2rem;
	overflow-y: auto;
}

.mobile-menu.active {
	display: block;
}

.mobile-menu a {
	color: var(--secondary-color);
	display: block;
	padding: 1rem;
	font-size: 1.2rem;
	text-decoration: none;
	transition: background var(--transition-speed);
}

.mobile-menu a:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* Mobile dropdown functionality */
.mobile-dropdown-menu {
	max-height: 0;
	overflow: hidden;
	transition: max-height var(--transition-speed) ease;
	list-style: none;
	padding-left: 1.5rem;
}

.mobile-dropdown-menu.active {
	max-height: 500px;
}

.mobile-dropdown-btn {
	background: none;
	border: none;
	color: var(--secondary-color);
	font-size: 1.2rem;
	width: 100%;
	text-align: left;
	padding: 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}

.mobile-dropdown-btn .arrow {
	transition: transform var(--transition-speed) ease;
}

/* 
 * Hero Section Styles
 * The main banner area on each page
 */
.hero {
	background: linear-gradient(to bottom, var(--primary-color) 0%, var(--secondary-color) 100%);
	color: var(--primary-color);
	padding: 8rem 2rem 4rem;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
	opacity: 0;
	animation: fadeIn 0.6s ease-out forwards;
}

/* Homepage-specific hero styles */
.first-text {
	padding-top: 20px;
	font-size: 0.75rem;
	letter-spacing: 0.2rem;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
	opacity: 0.8;
	animation-delay: 0.2s;
}

.hero-quote {
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	font-family: 'Segoe Print', sans-serif;
	line-height: 1.3;
	margin-bottom: 2rem;
	animation-delay: 0.4s;
}

.quote-author {
	margin-top: 3rem;
	animation-delay: 0.6s;
}

.speaker {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.job-field {
	color: var(--accent-color);
	font-weight: 600;
}

/* Page-specific hero styles */
.page-title {
	animation: fadeInUp 0.8s ease-out forwards;
}

.page-subtitle {
	animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Animation keyframes */
@keyframes fadeIn {
	to {
		opacity: 1;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 
 * About Section Styles
 * Contains profile image and bio
 */
.about-section {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding: 3rem 1rem;
	max-width: 1200px;
	margin: 0 auto;
	align-items: center;
}

.profile-image img {
	border-radius: 8px;
	max-width: 100%;
	height: auto;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-content {
	text-align: center;
}

.about-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: 1.5rem;
	letter-spacing: 0.2rem;
	text-transform: uppercase;
}

.about-text {
	font-size: 1rem;
	line-height: 1.8;
	max-width: 600px;
	margin: 0 auto;
}

/* 
 * Footer Styles
 */
.footer {
	background: var(--primary-color);
	color: var(--secondary-color);
	text-align: center;
	padding: 3rem 1rem;
	position: relative;
}

.footer-cta {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: 1.5rem;
}

.copyright-text {
	font-size: 0.8rem;
	opacity: 0.8;
}

/* Back to top button */
.back-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: var(--primary-color);
	color: var(--secondary-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transition: all var(--transition-speed);
	z-index: 800;
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	background: #333;
}

/* 
 * Articles Page Specific Styles
 */
.articles-main {
	padding: 2rem 1rem;
	max-width: 1200px;
	margin: 0 auto;
}

.articles-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
}

.article-card {
	background: var(--secondary-color);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: transform var(--transition-speed) ease;
}

.article-card:hover {
	transform: translateY(-5px);
}

.article-content {
	padding: 1.5rem;
}

.article-meta {
	display: flex;
	justify-content: space-between;
	margin: 1rem 0;
	font-size: 0.9rem;
	color: var(--accent-color);
}

.article-excerpt {
	margin: 1.5rem 0;
	line-height: 1.6;
}

.article-link {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: var(--primary-color);
	color: var(--secondary-color);
	border-radius: 4px;
	text-decoration: none;
	transition: background var(--transition-speed);
}

.article-link:hover {
	background: #333;
}

/* 
 * Contact Page Specific Styles
 */
.contact-main {
	padding: 2rem 1rem;
	max-width: 1200px;
	margin: 0 auto;
}

.contact-methods {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

.contact-card {
	background: var(--secondary-color);
	padding: 2rem;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: transform var(--transition-speed);
}

.contact-card:hover {
	transform: translateY(-5px);
}

.contact-card img {
	margin: 0 auto 1rem;
}

.contact-card h3 {
	margin-bottom: 0.5rem;
}

.contact-card p {
	color: var(--accent-color);
	margin-bottom: 1.5rem;
}

.contact-link {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: var(--primary-color);
	color: var(--secondary-color);
	border-radius: 4px;
	text-decoration: none;
	transition: background var(--transition-speed);
}

.contact-link:hover {
	background: #333;
}

.contact-form {
	background: var(--secondary-color);
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	max-width: 600px;
	margin: 0 auto;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: inherit;
}

.form-group textarea {
	resize: vertical;
	min-height: 150px;
}

.submit-btn {
	background: var(--primary-color);
	color: var(--secondary-color);
	border: none;
	padding: 1rem 2rem;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1rem;
	transition: background var(--transition-speed);
	width: 100%;
}

.submit-btn:hover {
	background: #333;
}

/* 
 * Responsive Breakpoints
 */
@media (min-width: 768px) {

	/* Tablet and desktop styles */
	.about-section {
		grid-template-columns: repeat(2, 1fr);
		padding: 5rem 2rem;
	}

	.about-content {
		text-align: left;
		padding-left: 2rem;
	}

	/* Contact page layout */
	.contact-container {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
		align-items: start;
	}

	.contact-methods {
		margin-bottom: 0;
	}
}

@media (max-width: 767px) {

	/* Mobile-specific styles */
	.hamburger {
		display: block;
	}

	.profile-image {
		display: flex;
		justify-content: center;
		width: 100%;
	}

	.menu {
		display: none;
	}

	.hero {
		padding-top: 80px;
	}
}

@media (min-width: 992px) {

	/* Large desktop enhancements */
	.articles-main,
	.contact-main {
		padding: 3rem 2rem;
	}

	.articles-container {
		grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	}
}