.title {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
}

/* Image link container */
header a {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  transition: transform 0.3s ease;
}

header a:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.img {  
  background-color: rgba(51, 48, 240, 0.7);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #667eea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.img:hover {
  border-color: #4f51f5;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(79, 81, 245, 0.3);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'DM Sans', sans-serif;
}

/* Navigation Styles */
.navbar {
    padding: 15px;
    position: sticky;
    margin-top: 15px;
    z-index: 100;
}

.nav-link {
    background-color: rgba(51, 48, 240, 0.8);
    color: white;
    text-decoration: none;
    margin-bottom: 20px;
    margin-left: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid white;
    transition: all 0.3s ease;
    font-weight: bolder;
    font-family: DC Sans, sans-serif;
}

.nav-link:hover {
    background-color: white;
    color: rgba(51, 48, 240, 0.8);
    border: 1px solid rgba(51, 48, 240, 0.8);
    transform: scale(1.1);
}

h1 {
    font-family: 'DC Sans', sans-serif;
    font-weight: bolder;
    text-align: center;
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 20px;
}

h2 {
    color: #385bf7;
    font-size: 1.9em;
    margin-bottom: 20px;
    padding-bottom: 8px;
    font-family: 'DS Sans', sans-serif;
    font-weight: bolder;
    text-align: center;
}

h3 {
    font-family: 'DS Sans', sans-serif;
    font-weight: bolder;
    color: rgb(221, 234, 235);
    margin-bottom: 10px;
    margin-top: 20px;
}

p {
    line-height: 1.7;
    margin-bottom: 18px;
    color: #2c3e50;
    font-size: 1.05em;
    font-weight: 'DS Sans', sans-serif;
    font-weight: bolder;
}

ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

li {
    line-height: 1.7;
    margin-bottom: 8px;
    color: #34495e;
    font-family: 'DS Sans', sans-serif;
    font-weight: bolder;
}

section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    font-family: DS Sans, Sans-serif;
    font-weight: bolder;
}

/* Footer and Contact Styles */
footer {
    position: relative;
    z-index: 1;
    background-color: rgba(51, 48, 240, 0.3);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 20px;
    border: 2px solid rgba(243, 243, 248, 0.925);
    text-align: center;
}

.contact-details {
    font-family: 'DC Sans', sans-serif;
    font-weight: bolder;
    color: rgb(221, 234, 235);
    font-size: 1.5em;
    margin-bottom: 15px;
    background: none;
    border: none;
    padding: 0;
}

footer a {
    font-family: 'DC Sans', sans-serif;
    font-weight: bolder;
    color: rgb(79, 81, 245);
    text-decoration: none;
    font-size: 1.2em;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 10px;
    display: inline-block;
    margin: 10px 0;
    transition: all 0.3s ease;
}

footer a:hover {
    background-color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

footer p {
    font-family: 'DC Sans', sans-serif;
    font-weight: bolder;
    color: rgb(221, 234, 235);
    font-size: 1.1em;
    margin: 10px 0;
}

.body {
  /* The background image is rendered in the ::before pseudo-element so we can control its opacity
     without affecting the page content. Keep the body positioned so the pseudo-element can be fixed. */
  position: relative;
  min-height: 100vh;
}

/* Full-page background layer with adjustable opacity */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Use a relative project path so the image stays with the site */
  background-image: url("images/chess.jpeg");
  /* make the image cover the full screen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* place the background behind the page content but above the root background
    (z-index:-1 can end up behind the html/body background when viewing via file://) */
  z-index: -1; /* behind .content (which has z-index:1) */

  pointer-events: none;/* allow clicks through the background */
}

.content {
    font-family: 'DS Sans', Sans-serif;
    font-weight: bolder;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.94);
    margin-top: 35px;
    border-radius: 20px;
    border: 2px solid rgba(51, 48, 240, 0.8);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
}

header {
    position: relative;
    padding-top: 40px;
}



.ul-list {
  font-family: 'DM Sans', sans-serif;
  font-weight: bold;
  font-size: large;
  text-align: left;
  color: rgb(221, 234, 235);
  border-style: solid;
  border-radius: 30px;
  box-shadow: 0 4px 8px 0 #2023ee99, 0 6px 40px 0 #f030e6b3;
  margin-right: 0px;
  padding-top: 20px;
  padding-bottom: 20px;
  /* place bullets outside the content box and reserve space */
  list-style-position: outside;
  padding-left: 40px;
}

.ul-list-b {
  font-family: 'DM Sans', sans-serif;
  font-weight: bold;
  font-size: large;
  text-align: right;
  color: rgb(221, 234, 235);
  margin-right: 0px;
  padding-top: 20px;
  padding-bottom: 20px;
  /* place bullets outside the content box and reserve space */
  list-style-position: outside;
  padding-left: 40px;
}

/* Link styles for the employment list */
.ul-list a {
  color: #4f51f5;
  text-decoration: none;
  display: block; /* makes the whole row clickable */
  /* remove top/bottom padding from the link and apply it to the li so bullets align */
  padding: 0;
}

.ul-list li {
  padding: 6px 0; /* vertical spacing per item */
  line-height: 1.4;
}
.ul-list a:visited {
  /* slightly muted/darker color for visited links */
  color: rgb(221, 234, 235);
}
.ul-list a:hover,
.ul-list a:focus {
  color: #f030e6b3; /* change link text color on hover */
  background: none; /* explicitly remove any background */
  outline: none;
  box-shadow: none; /* explicitly remove any shadow */
}

.h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 30px;
  font-weight: bold;
  color: rgb(221, 234, 235);
  text-align: center;
  border-style: solid;
  border-radius: 30px;
  box-shadow: 0 4px 8px 0 rgba(115, 18, 243, 0.6), 0 6px 40px 0 rgba(115, 18, 243, 0.7);
  border-width: 2px;
  margin-bottom: 20px;
  padding: 30px;
}

.about-me,.description {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: rgb(221, 234, 235);
  margin: 0 100px 20px 100px;
  text-align: center;

}


/* Mobile Responsive Design */
@media (max-width: 768px) {
    .content {
        margin: 10px;
        padding: 15px;
    }
    
    h1 {
        font-size: 2.2em;
    }
    
    .profile-image {
        max-width: 150px;
        height: auto;
    }
    
    .ul-list {
        padding-left: 20px;
    }
    
    .ul-list li {
        padding: 8px 0;
        font-size: 16px;
    }
    
    .about {
        font-size: 16px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .content {
        margin: 5px;
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .profile-image {
        max-width: 120px;
    }
    
    .ul-list {
        padding-left: 15px;
    }
    
    .ul-list li {
        padding: 10px 0;
        font-size: 15px;
    }
    
    .about {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .li, .maintenance-dept {
        font-size: 1.2rem;
    }
}
