/* === BASE STYLES === */

html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	font-family: 'Lato', sans-serif;
	background-color: #1a1a1a;
	color: #f2f2f2;
}
a {
	color: #ffffcc;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
	color: #ffffee;
}
/* === NAVIGATION BAR === */

nav {
	position: fixed;
	top: 0;
	width: 100%;
	height: 70px;
	padding: 0 5vw;
	background-color: #1b1c1e;
	color: #f9f9f9;
	display: flex;
	align-items: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	z-index: 1000;
	box-sizing: border-box;
}
.nav-container {
	display: flex;
	align-items: center;
	width: 100%;
	font-variant: small-caps;
}
.name {
	font-size: 1.4rem;
	font-weight: 700;
	margin-right: 2rem;
	white-space: nowrap;
}
.nav-links {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}
.nav-links li a {
	font-size: 0.9rem;
	font-variant: small-caps;
	font-weight: 600;
	color: #e8e8e8;
	text-decoration: none;
}
.nav-links li a:hover {
	text-decoration: underline;
}
.nav-email {
  white-space: normal;        /* allow wrapping */
  overflow: visible;          /* no truncation */
  text-overflow: unset;       /* cancel ellipsis */
  font-size: 0.9rem;
  text-align: right;
  margin-left: auto;
  max-width: 100%;
}
.nav-email a {
	color: #e8e8e8;
	text-decoration: none;
}
/* === MAIN & SECTION STRUCTURE === */

section {
	scroll-margin-top: 80px;
	min-height: 100vh;
	padding: 4rem 5vw;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	background-color: #1e1e1e;
}
.alt-bg {
	background-color: #18191a;
}
/* === SECTION LAYOUT === */

.section-container {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 2rem;
	width: 100%;
	padding: 0 3vw;
	box-sizing: border-box;
}
.left-column {
	width: 20%;
	padding: 0;
	box-sizing: border-box;
	align-items: center;
}
.left-column h2 {
	margin-bottom: 2rem;
	text-align: center;
	font-variant: small-caps;
}
.left-column img {
	display: block;
	margin: 1rem auto;
	max-width: 100%;
	height: auto;
	width: auto;
}
.profile-photo {
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}
.right-column {
	flex: 3;
	margin-left: 3rem;
}
/* === TYPOGRAPHY === */

h2 {
	font-size: 1.75rem;
	margin-bottom: 1rem;
	color: #e0e0e0;
}
p, li {
	font-size: 1rem;
	line-height: 1.7;
	color: #d0d0d0;
	text-align: justify;
	text-justify: inter-word;
}
.home-text p {
	font-size: 1.1rem;
}
ul {
	padding-left: 1.5rem;
	margin: 0;
}
/* === Q&A GRID CARDS === */

.qa-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center cards in the container */
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.qa-card {
  flex: 1 1 calc(45% - 2rem); /* Two per row when space allows */
  max-width: calc(45% - 2rem);
  min-width: 200px;
  background-color: #2a2a2a;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  margin: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.qa-card:hover {
	transform: translateX(-3px) translateY(-6px);
	box-shadow: 6px 12px 18px rgba(255, 255, 255, 0.6);
}
.qa-card h3 {
	margin-top: 0;
	margin-bottom: 0.8rem;
	font-size: 1.2rem;
	color: #e0e0e0;
}
.answer {
	flex: 1;
	display: flex;
	align-items: center;
	margin-bottom: 0.5rem;
}
.answer p {
	margin: 0;
	font-size: 1rem;
	color: #d0d0d0;
	line-height: 1.6;
}
/* === FOOTER === */

footer {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 1rem 0;
}
/* === RESPONSIVE DESIGN === */

/* Hide mobile-only objects on desktop */
.section-title.mobile-only {
  display: none;
}

.profile-photo.mobile-only {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  color: #f2f2f2;
  font-size: 1.8rem;
  border: none;
  cursor: pointer;
  margin-right: auto;
}

@media (max-width: 900px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 1rem 5vw;
    position: relative; /* not fixed */
    z-index: 1000;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #1b1c1e;
    padding: 1rem 0;
    margin-top: 0.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    padding: 0.5rem 1rem;
  }

  .menu-toggle {
    display: block;
  }
  
  .left-column {
    display: none; 
  }
  
  .name {
	      display: none; 
  }

  .section-title.mobile-only {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
    font-variant: small-caps;
  }
  .profile-photo.mobile-only {
    display: block;
    margin: 1rem auto 2rem auto;
    text-align: center;
	width: 75%;
	max-width: 100%;
	height: auto;
	max-height: 50vh;
	border-radius: 10px;
	object-fit: contain; 
  }
  .right-column {
	margin-left: 0;
  }
  .qa-card {
    flex: 1 1 90%;
    max-width: 90%;
  } 
  
  ul {
	padding-left: 0.2rem;
  }
}