body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background-image: url("../images/background4.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

main {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  border: 4px solid black;
}
.navbar {
  display: flex;
  gap: 1rem;
  padding: 1rem 1rem;
  background: #0f0a0a;
  position: relative;
  justify-content: center;
}

.navbar > h1 {
    margin: 0;
    color: antiquewhite;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.navbar a:hover {
  text-decoration: underline;
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 12px;

  background: linear-gradient(
    to bottom,
    #f5f5f5 0%,
    #cfcfcf 20%,
    #9a9a9a 50%,
    #dcdcdc 80%,
    #ffffff 100%
  );

  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.6),
    inset 0 -1px 1px rgba(0,0,0,0.4);
}

.nav-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    color: antiquewhite;
    text-decoration: none;
    font-weight: 500;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    position: relative;
    top: 1px;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.page-wrapper {
	max-width: 1600px;
	margin: 1cm auto;
	padding: 2rem;
	border: 5px solid #333;
	background: #fff;
}

h1 {
  text-align: center;
  margin: 0 0 1.5rem 0;
}

.page-header {
    text-decoration: underline;
}


.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 15rem 2rem 15rem ;
}


li > p{
  width: 350px;
}

.about-p {
  width: 70%;
}

section li {
  font-size: larger;
  font-weight: bold;
}

.about-p {
  max-width: 1000px;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
  font-size: 1.1rem;
}

.skills {
  max-width: 700px;
  margin: 0 auto;
}

.skills ul {
  list-style: none;
  padding: 0;
}

.skills li {
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  border-radius: 6px;
}


.home {
  text-align: center;
  padding: 3rem 1rem;
}

.intro {
  max-width: 800px;
  margin: 1rem auto 2rem auto;
  font-size: 1.2rem;
  line-height: 1.6;
}

.home-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.swiper {
  width: 400px;
  height: 400px;
  margin: 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin-left: 0;
}


.swiper-slide img {
  width: 100%;
  height: calc(100% - 30px);
  object-fit: cover;
  cursor: pointer;
}

.swiper-slide figure {
  margin: 0;
  padding: 0;
  position: relative;
  height: 100%;
}


.swiper-slide figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  margin-top: 0.5rem;
}


.image-overlay {
  position: fixed !important;
  z-index: 9999 !important;
}


.projects-header section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;  
}


.project {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin: 2.5rem 0;
}


.project-image {
  flex: 0 0 400px; 
}


.project-info {
  flex: 1;
  max-width: 600px;
}

.project-info h3 {
  margin-top: 0;
}

.project-info p {
  line-height: 1.5;
}


.project-divider {
  border: 0;
  border-top: 2px solid #ddd;
  margin: 2rem 0;
}