/* General Body Styles */
body {
    font-family: 'Segoe UI', 'Arial', sans-serif; 
    margin: 0;
    padding: 0;
    color: #333;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover; 
    line-height: 1.6; 
}

/* Text and Section Styling */
h1 {
    font-size: 24px; 
}
h2 {
    font-size: 18px; 
}

p, li {
    font-size: 16px; 
}

/* List styles for nested lists in Experience section */
ul ul {
    list-style-type: circle; 
    margin-left: 20px;
}

/* Header Styles */
header {
    color: white;
    padding: 20px 10%;
    text-align: center;
    background: rgba(100, 100, 100, 0.5); 
}

/* Navigation Styles */
nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

/* Flex Container for side-by-side layout */
.flex-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 20px;
}

.flex-child {
    flex: 1;
    margin: 10px;
    padding: 20px;
    text-align: justify; 
}

/* Section Styles */
section {
    margin: 20px 10%;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* Light background for sections for better readability */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Footer Styles */
footer {
    background-color: rgba(100, 100, 100, 0.7);
    color: white;
    text-align: center;
    padding: 20px 10%;
}

/* Image Styles */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Accessibility Improvements */
a, button {
    outline: none; 
}
a:focus, button:focus {
    outline: 2px solid white; /* Custom outline for focused elements */
}

/* Responsive Image Background */
@media (max-width: 600px) {
    header, footer {
        padding: 20px;
    }
    .flex-container {
        flex-direction: column; /* Stack elements vertically on small screens */
    }
}

/* Gallery Image Styles */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    overflow-x: auto; /* Allows horizontal scrolling */
}

.gallery-container img, video {
    width: 20%; /* Initial size of each image */
    transition: transform 0.3s ease; /* Smooth transition for scaling */
    cursor: pointer; /* Indicates that an image can be clicked */
}

.expanded {
    position: fixed; /* Fixed position to cover the viewport */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    min-width: 50%; /* Min size params */
    min-height: 50vh;
    width: 5000px; /* Auto width for natural image size */
    height: auto; /* Auto height for natural image size */
    max-width: 80%; /* Up to 80% of the viewport width */
    max-height: 80vh; /* Up to 80% of the viewport height */
    object-fit: contain; /* Ensures entire image is visible */
    transform: translate(-50%, -50%); /* Adjust position to center the image exactly */
    z-index: 1000; /* Ensures the image is on top of other content */
    cursor: zoom-out; /* Indicates clicking again will minimize */
}