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

/* Body Styling */
body {
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #dcdcdc;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: 1rem;
}

/* Header */
header {
  text-align: left;
  margin: 2rem 1rem;
}

header h1 {
  font-size: 1.5rem; /* Adjusted for better readability */
}

header p {
  font-size: 1rem;
  color: #dcdcdc;
}

/* Main Content */
main {
  flex: 1;
  padding: 1rem;
  text-align: left;
}

main a {
  color: #76c7c0;
  text-decoration: none;
}

/* Footer */
footer {
  display: flex;
  justify-content: right;
  text-align: right;
  gap: 1rem;
  font-size: 0.9rem;
  margin: 1rem 0;
  background: none;
  padding: 0.5rem 1rem;
}

footer .footer-links {
  color: #dcdcdc;
  text-decoration: none;
}

footer .footer-links:hover {
  text-decoration: underline;
}

/* Navigation - Fixed on the Right */
nav {
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

nav a:hover {
  text-decoration: underline;
}

/* General Section Styling */
section {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  /* margin-left: 1rem; */
}

/* Section Headers */
section h2 {
  color: #76c7c0;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #76c7c0;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* Subheadings (e.g., Degrees, Jobs) */
.education-entry h3,
.experience-entry h3,
.project-entry h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

/* Institution and Dates */
.education-entry .institution,
.experience-entry .institution,
.project-entry .institution {
  font-style: italic;
  color: #b0b0b0;
}

.education-entry .dates,
.experience-entry .dates,
.project-entry .dates {
  color: #a0a0a0;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* List Styling for Details, Skills, and Coursework */
.details,
.skills-list,
.coursework-list,
.honors-list {
  list-style: none;
  padding-left: 1.5rem;
}

.details li,
.skills-list li,
.coursework-list li,
.honors-list li {
  margin-bottom: 0.5rem;
  position: relative;
  color: #e0e0e0;
}

/* Custom Bullet Points */
.details li::before,
.skills-list li::before,
.coursework-list li::before,
.honors-list li::before {
  content: "•";
  position: absolute;
  left: -1rem;
  color: #76c7c0;
}

/* Gallery Section */
#gallery {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  max-width: 800px;
}

/* Grid for Images */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Always 3 per row */
  gap: 1rem; /* Space between images */
  justify-content: left;
  align-items: center;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3; /* Maintain a consistent aspect ratio */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Hover Effects */
.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Responsive Styling for Mobile */
@media (max-width: 768px) {
  section {
    padding: 1rem;
  }

  section h2 {
    font-size: 1.3rem;
  }

  nav {
    right: 1rem;
    font-size: 0.9rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* Adjust to 2 per row on tablets */
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* Stack images in 1 column on mobile */
  }
}

/* Navigation - Move to Bottom Left for Mobile */
@media (max-width: 999px) {
  nav {
    position: static; /* Remove fixed positioning */
    display: flex;
    flex-direction: column; /* Stack links vertically */
    align-items: flex-start; /* Align links to the left */
    margin-top: 6rem; /* Add some space from the top content */
    gap: 0.05rem; /* Reduce spacing between links for compact look */
    padding-left: 0.5rem; /* Slightly move links inward from the left edge */
  }

  nav a {
    font-size: 1rem; /* Adjust font size for readability */
    color: #dcdcdc; /* Keep consistent text color */
    text-decoration: none; /* Remove underline */
    text-align: left; /* Ensure text aligns to the left */
    line-height: 1.5rem; /* Add consistent spacing between links */
  }

  nav a:hover {
    text-decoration: underline; /* Add underline effect on hover */
  }
}

/* Center Sections on Mobile */
@media (max-width: 768px) {
  section {
    margin: 1rem auto; /* Center horizontally using auto margins */
    padding: 1rem; /* Adjust padding for mobile */
    max-width: 90%; /* Ensure the width fits within the screen */
    text-align: left; /* Center-align text inside the sections */
  }

  /* Ensure the content inside the section is centered */
  section h2 {
    text-align: left; /* Center section headings */
  }

  section p {
    text-align: left; /* Center paragraphs */
  }
}

/* Spotify Box Styling for Consistency */
@media (max-width: 999px) {
  section {
    margin: 1rem auto; /* Center sections horizontally */
    padding: 1.5rem; /* Adjust padding for better spacing */
    max-width: 90%; /* Limit width to fit within the screen */
    background-color: #1a1a1a; /* Ensure consistent background */
    border-radius: 8px; /* Add rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add consistent shadow */
    text-align: left; /* Center align text */
  }

  /* Center Embedded Spotify Content */
  .spotify-embed,
  section iframe {
    width: 100%; /* Ensure the Spotify player spans the section width */
    max-width: 90%; /* Add a max-width to keep it consistent with other content */
    margin: 0 auto; /* Center the Spotify content horizontally */
    display: block; /* Ensure it's treated as a block element */
    border-radius: 8px; /* Match the photography box styling */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Add subtle shadow */
  }

  /* Ensure Headings Match Other Sections */
  section h2 {
    text-align: left; /* Center-align section headings */
    color: #76c7c0; /* Accent color for headings */
  }
}

#copy {
  font-family: Arial, sans-serif;
  margin-bottom: 0.5rem;
}