/* Typography */
body {
    margin: 0;
    padding: 0;
    font-family:  "Varela Round", serif;
    color: #1E1E1E;
    background-color: #FFFFFF;
    line-height: 1.7;
}

/* Headings & Nav */
h1, h2, h3, nav a {
    font-family:  "Libre Baskerville", sans-serif;
    letter-spacing: 0.5px;
}

/* Global transitions */
* {
    transition: all 0.25s ease;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    background-color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #eee;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.nav a {
    text-decoration: none;
    color: #6B0E11;
    font-weight: 600;
    position: relative;
    padding-bottom: 4px;
}

/* Underline glide */
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    background-color: #d18420;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 1rem 4rem;
    background-color: #F8F8F8;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #6B0E11;
}

.intro {
    max-width: 600px;
    margin: 0 auto;
    color: #1E1E1E;
}

.hero-title{
    align-items: center;
}

/* Logo */

.logo {
    width: 7%;
    height: 7%;
    padding-top: 4rem;
}


/* Sections */
.section {
    max-width: 900px;
    margin: 4rem auto;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    background-color: #FFFFFF;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Soft hover lift */
.section:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #6B0E11;
}

/* Cards inside sections */
.item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    background-color: #FAFAFA;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Card hover effect */
.item:hover {
    transform: translateY(-3px);
    border-color: #d18420;
}

.item h3 {
    margin-bottom: 0.3rem;
    color: #d18420;
}

.date {
    font-size: 0.9rem;
    color: #87AC80;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Skills */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-left: 1rem;
}

.skills-list li {
    background-color: #F2F2F2;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #e6e6e6;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Skill hover */
.skills-list li:hover {
    background-color: #87AC80;
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* Contact links */
#contact a {
    color: #6B0E11;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

#contact a:hover {
    border-bottom: 1px solid #d18420;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    background-color: #F8F8F8;
    color: #6B0E11;
}

/* Responsive */
@media (max-width: 700px) {
    .nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .section {
        margin: 3rem auto;
    }
}

/* ---------- SLIDESHOW ---------- */
.slideshow {
  position: relative;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slides img {
  width: 100%;
  flex: 0 0 100%;
}

/* buttons */
.slideshow button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 2px solid  #d18420;
  color:  #d18420;
  font-size: 2rem;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

.slideshow button:hover {
  background: #87AC80;
  color: #6B0E11;
  border-color: #6B0E11;
}

/*PopUp*/

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0,0,0,0.9);
}

.modal-slideshow {
  position: relative;
  width: 80%;
  margin: 5% auto;
}

.modal .slides img {
  max-height: 80vh;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* Slide PopUp*/

.modal .slideshow {
  width: 80%;
  margin: 5% auto;
}

.modal .slides img {
  max-height: 80vh;
  object-fit: contain;
}