/* Base Styles */
:root {
  --text-color: #1a1c20;
  --link-color: #ffffff;
  --background-color: #eeeff1;
  font-size: 17px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@font-face {
  font-family: "Steph";
  src: url("fonts/steph-font.ttf");
}

body {
  font-family: 'Steph', sans-serif;
}

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

nav {
  background-color: rgba(191, 214, 196, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: space-between;
  padding: 0 3.125rem;
  height: 5rem;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav .left a {
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
}

nav .right a {
  color: var(--text-color);
  font-size: 1.375rem;
  margin: 0 0.625rem;
}

nav .right a:hover {
  color: var(--link-color);
  transition: color 0.3s ease-in-out;
}

/* General Section Styles */
section {
  padding: 8rem 2rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

section:nth-of-type(odd) {
  background-color: #f8f8f8;
}

section:nth-of-type(even) {
  background-color: #ffffff;
}

section h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  letter-spacing: 1px;
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 4px;
  background-color: #bfd6c4;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* About Section */
#about-section {
  min-height: 100vh;
  justify-content: center;
}

#about-section h2 {
  font-size: 2.75rem;
}

#about-section .headshot {
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 1rem;
  margin-bottom: 37px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#about-section .headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

#about-section .headshot img:hover {
  transform: scale(1.2);
}

#about-section .bio {
  max-width: 56.25rem;
  padding: 0 2rem;
  margin-bottom: 2rem;
}

#about-section .bio p {
  font-size: 1.25rem;
  font-weight: 300;
}

#about-section .social-links {
  font-size: 2.25rem;
}

#about-section .social-links a {
  margin: 0 0.75rem;
}

#about-section .social-links i {
  color: #588061;
  transition: transform 0.3s, color 0.3s;
}

#about-section .social-links a:hover i {
  color: #a5d6b0;
  transform: scale(1.2);
}

/* Experience Section */
#experience-section {
  min-height: 100vh;
  padding: 2rem;
  gap: 2rem;
}

#experience-section h2 {
  font-size: 2.75rem;
  color: #2d2d2d;
}

.experience-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.experience-box {
  background-color: #bfd6c4;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  max-width: 25rem;
}

.experience-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.experience-box p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.experience-box ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.experience-box li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* Projects Section */
#projects-section {
  background-color: #f9f9f9;
  text-align: center;
}

#projects-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

/* ✅ FIXED GRID LAYOUT */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* Always 2 columns */
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.project-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-box img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.project-box h4 {
  font-size: 1.25rem;
  color: #222;
  margin-bottom: 0.5rem;
}

.project-box h5 {
  font-size: 1rem;
  color: #888;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.project-box p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

/* Skills Section */
#skills-section {
  min-height: 30vh;
  gap: 2rem;
}

#skills-section h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin: 0 1rem;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

#skills-section i {
  font-size: 3rem;
  color: #588061;
  transition: transform 0.3s ease, color 0.3s ease;
  margin: 1rem 0;
}

#skills-section i:hover {
  transform: scale(1.2);
  color: #a5d6b0;
}

/* Contact Section */
#leave-message-section,
#contact-me-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

#leave-message-section h2,
#contact-me-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

#contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-field {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.5rem;
}

label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

input, textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

button {
  padding: 10px 20px;
  font-size: 1.1rem;
  background-color: #588061;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #a5d6b0;
}

.contact-method {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  text-align: left;
  margin: 0 auto;
}

.contact-method h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.contact-method p,
.contact-method a {
  font-size: 1.1rem;
  color: #555;
}

.contact-method a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #909090;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.875rem;
}
