* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Raleway, sans-serif;
    color: #fdfdfd; 
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

body {
    font-size: 62.5%;
    background-color: #1e1e1e;
    color: #fdfdfd;
    font-family: Raleway, sans-serif;
}

section {
    width: 100%;
    padding: 6rem 0;
}

/** Button*/
button {
    height: 55px;
    width: 120px;
    font-size: 2em;
}

.buttons {
    background-color: transparent;
    border: 1px solid #fdfdfd;
}

.buttons:hover {
    background-color: #807e7e48;
}

#about .buttons,
#projects .buttons {
    margin-top: 2rem;
}

/** Navbar **/
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 8%;
    padding-right: 8%;
    padding-top: 25px;

}

#logo {
    font-size: 1.6em;
    font-weight: 600;
}

#logo a {
    text-decoration: none;
}

span {
    color: #C2A926;
    font-weight: 500;
}

nav ul li {
    list-style-type: none;
    display: inline-block;
    padding: 0px 18px;
    font-size: 1.4em;
}

nav ul li a {
    text-decoration: none;
    font-weight: medium;
}

.current a{
    border-bottom: 1px solid #C2A926;
}

nav ul li a:hover {
    color: #C2A926;
    transition: ease-in-out;
}

/** Hero section **/
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 8%;
    padding-right: 8%;
}

#greeting {
    font-size: 10em;
    line-height: 80pt;
}

#greeting-gold {
    font-weight: 600;
}

.greeting #about {
    background-color: #C2A926;
    border: 0px;
}

.greeting #about:hover {
    background-color: #cdb850;
}

/* Sections */
.about, .work, .quote {
    
}

.content {
    margin-left: 8%;
    margin-right: 8%;
}

.titles {
    font-size: 5em;
    margin-bottom: 10px;
}

.paragraphs {
    font-size: 2.75em;
}
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}


.project-card {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: #2a2a2a;
    border: 1px solid #C2A926;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Optional: description overlay on hover */
/* Text inside card */
.project-card::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fdfdfd;
    font-size: 1.75em;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  /* CENTER */
  display: grid;
  place-items: center;
  text-align: center;

  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
  transition: background 0.2s ease;
}

/* Stack both in the same grid cell */
.overlay-title,
.overlay-desc {
  grid-area: 1 / 1;
  margin: 0;
  max-width: 90%;
}

/* Default: show title */
.overlay-title {
  opacity: 1;
  transition: opacity 0.2s ease;
  font-size: 2.0em;
  font-weight: 700;
}

/* Default: hide description */
.overlay-desc {
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 1.75em;
  font-weight: 500;
  color: #dcdcdc;
}

.project-card:hover .overlay-title {
  opacity: 0;
}

.project-card:hover .overlay-desc {
  opacity: 1;
}

/* Mobile / touch devices */
@media (hover: none), (max-width: 768px) {
  .project-card .overlay {
    background: rgba(10, 10, 10, 0.72);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Show BOTH */
  .overlay-title,
  .overlay-desc {
    opacity: 1;
  }

  .overlay-desc {
    margin-top: 0.6rem;
  }

  /* Disable hover swap */
  .project-card:hover .overlay-title,
  .project-card:hover .overlay-desc {
    opacity: 1;
  }
}

/* Quote Section */
#quote {
    height: 55vh;
}
#quote .content {
    display: flex;
    height: 100%;
    align-items: center;
    padding-bottom: 5rem;
}

#quote blockquote {
  font-size: 2.4em;
  line-height: 1.45;
  max-width: 52ch;
  margin: 0;
  opacity: 0.75;
  text-align: left;
  background: transparent;
  border: none;
}

/* Footer */
.footer {
    margin-bottom: 2rem;
    margin-top: 0;
}

.footer #logo {
    opacity: 60%;
}

.bw {
    color: #fdfdfd;
    opacity: 60%;
}

.footer ul li {
    opacity: 60%;
}