body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    color: #333;
    background-color: #405752;
}

.header-container {
    display: flex;
    margin-bottom: 40px;
    align-items: flex-start;
    gap: 40px;
    background-color: white;
    padding: 30px 50px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-info {
    flex: 1;
}

.contact-info h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 10px 0;
}

.contact-info p {
    margin: 4px 0;
    font-size: 16px;
}

.contact-info a {
    color: #2563eb;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.photo {
    flex: 0 0 300px;
}

.photo img {
    width: 100%;
    height: auto;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}


/* Container for the menu */
nav {
  width: fit-content;
  margin: 0;
  margin-left: 10px;
  margin-bottom: 2rem;
  position: sticky;
  top: 0;
  overflow: hidden;
  background: linear-gradient(45deg, #0726de, #050723);
  border-radius: 8px;
  box-shadow: 0 8px 8px rgba(0,0,0,0.4);
  border-color: white;
  border-width: 1px;
  border-style: solid;
  }

/* Base styles for the menu list */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-start;
}

nav li a {
  display: block;
  padding: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* Hover effect on the entire menu */
nav ul:hover {
  /* On hover, reset the transform to its original flat state */
  transform: none;
}

/* Additional hover effect for the links themselves */
nav ul li a:hover {
  background: rgba(255, 255, 255, 0.1);
}






.section-block {
    background: linear-gradient(45deg, #0726de, #050723);
    color: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: 40px 0px 0px 0px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section-block h1, 
.section-block h2 {
    color: white;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.section-block h1 {
    font-size: 28px;
}

.section-block h2 {
    font-size: 24px;
}

.section-block p {
    margin: 15px 0;
    line-height: 1.7;
}

.section-block a {
    color: #93c5fd;
}

.section-block a:hover {
    color: white;
}

.section-block2 {
    background: #3e4c8f;
    color: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: 40px 0px 0px 0px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section-block2 h1, 
.section-block2 h2 {
    color: white;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.section-block2 h1 {
    font-size: 28px;
}

.section-block2 h2 {
    font-size: 24px;
}

.section-block2 p {
    margin: 15px 0;
    line-height: 1.7;
}

.section-block2 a {
    color: #93c5fd;
}

.section-block2 a:hover {
    color: white;
}
.section-clients {
    background: linear-gradient(45deg, #0726de, #050723);
    color: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: 40px 0px 0px 0px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    column-count: 2; /* Divides the content into two columns */
    column-gap: 20px; /* Adds space between the columns */
    }

/* This is the media query that applies to screens up to 600px wide */
@media (max-width: 600px) {
  .section-clients {
  /* For screens 600px and smaller, the columns will stack */
	column-count: 1;
  		}
	}

.section-clients h1, 
.section-clients h2 {
    color: white;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.section-clients h1 {
    font-size: 28px;
}

.section-clients h2 {
    font-size: 24px;
}

.section-clients p {
    margin: 15px 0;
    line-height: 1.7;
}

.section-clients a {
    color: #93c5fd;
}

.section-clients a:hover {
    color: white;
}

.job-entry {
    margin: 25px 0;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.job-entry:last-child {
    border-bottom: none;
}

.job-dates {
    font-weight: 700;
    color: #fbbf24;
    font-size: 16px;
    margin-bottom: 8px;
}

.job-company {
    font-weight: 700;
    font-size: 18px;
    color: white;
    margin-bottom: 8px;
}

.job-position {
    font-style: italic;
    color: #e5e7eb;
    margin-bottom: 12px;
}

.job-details {
    line-height: 1.6;
}

.white-section {
    background-color: white;
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #374151;
}

.white-section h2 {
    color: #1e3a8a;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.white-section h3 {
    color: #1e40af;
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 10px 0;
}

.white-section ul {
    padding-left: 20px;
    margin: 15px 0;
}

.white-section li {
    margin: 8px 0;
    line-height: 1.5;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.skill-item {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #1e3a8a;
}

.skill-item h4 {
    color: #1e3a8a;
    font-weight: 600;
    margin: 0 0 12px 0;
    font-size: 16px;
}

.skill-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .photo {
        flex: none;
        text-align: center;
    }
    
    .photo img {
        max-width: 250px;
    }
    
    .section-block,
    .white-section {
        padding: 20px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.image-gallery {
    display: grid;
    /* This is the key to responsiveness.
        It automatically creates as many columns as will fit,
        with a minimum width of 250px per column. */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem; /* Space between the images */
    padding: 1rem;
}
.image-item {
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease-in-out;
}
.image-item:hover {
    transform: scale(1.3);
    border: 8px solid #fff;
}
.image-item img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Ensures images fill the container without distortion */
    display: block;
}

/* Responsive styling for smaller screens, though auto-fit handles most of it */
@media (max-width: 640px) {
    .image-item img {
        height: 200px; /* Make images slightly smaller on mobile */
    }
}

/* Custom styles for the slideshow container */
.slideshow-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* This makes the container fill the space below the header */
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Styles for the image element */
.slideshow-image {
    width: 80%;
    height: 80%;
    background-size: contain; /* Ensures the image fits, creating transparent bands */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out; /* Slow fade transition */
}
