/* General styles for body and HTML */
body, html {
    margin: 0;
    padding: 0;
    height: 100%; /* Full viewport height */
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    display: flex; /* Flexbox for layout */
    justify-content: space-between; /* Space between logo and nav */
    align-items: center; /* Vertical alignment */
    height: 60px; /* Consistent height */
    padding: 10px 20px; /* Spacing */
    background-color: rgb(171, 154, 172); /* Dark header */
    color: white; /* White text */
}

.logo img {
    width: 200px; /* Adjust this value to control the width of the logo */
    height: auto;
}
nav ul {
    list-style: none; /* No bullet points */
    padding: 50px;
    margin: 0;
    display: flex; /* Flexbox for horizontal layout */
    flex-direction: row; /* Ensures horizontal alignment */
    gap: 60px; /* Space between navigation items */
}

nav a {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: white; /* White text for links */
    text-decoration: none; /* No underline */
    transition: color 0.3s; /* Smooth transition for hover */
}

nav a:hover {
    color: rgb(171, 154, 172); /* Hover effect */
}

.hamburger {
    display: none; /* Initially hide the hamburger menu */
}

.hamburger-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/* Footer styles */
footer {
    display: flex; /* Flexbox for layout */
    justify-content: center;
    align-items: center; /* Vertical alignment */
    height: 60px; /* Consistent height */
    padding: 10px 20px; /* Spacing */
    background-color: rgb(171, 154, 172); /* Dark header */
    color: white; /* White text */
}

footer ul {
    list-style: none; /* No bullet points */
    padding: 0;
    margin: 0;
    display: flex; /* Flexbox for horizontal layout */
    gap: 20px; /* Space between navigation items */
}

footer a {
    text-decoration: none;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    font-size: 20px;
    transition: color 0.3s; /* Smooth transition for hover */
}

footer a:hover {
    color: rgb(171, 154, 172); /* Hover effect */
}

p {
    font-weight: 500;
}

/* Main background with Flexbox centering */
.background {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 30px;
    font-weight: bold;
    color: white;
    display: flex; /* Flexbox for centering */
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering */
    flex-direction: column; /* Vertical stacking */
    height: calc(100vh - -700px); /* Ensures space for header and footer */
    background-image: url('./images/background.jpg');
    background-size: cover; /* Ensures the image covers the area */
    background-repeat: no-repeat; /* No repeating */
    background-position: center; /* Centered image */
    padding: 20px; /* Additional padding for safety */
}


/* Centered content with Flexbox */
.centered-content {
    display: flex; /* Flexbox enabled */
    flex-direction: column; /* Vertical stacking */
    gap: 50px; /* Spacing between squares */
}

/* Scrollable squares with consistent size */
.scrollable-square {
    background-color: rgba(171, 154, 172, 0.8); /* Semi-transparent background */
    border: 0px solid #000; /* Border for separation */
    width: 100%; /* Full width */
    max-width: 800px; /* Max width */
    padding: 20px; /* Padding inside the square */
    text-align: center; /* Centers content within the square */
    overflow: auto; /* Allows scroll if content exceeds */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    box-sizing: border-box; /* Include padding in width */
    
}

.scrollable-square ul {
    padding: 0;
    margin: 0;
    list-style: none; /* Remove bullet points */
    display: flex; /* Use flexbox */
    flex-wrap: wrap; /* Allow wrapping to next line */
    justify-content: center; /* Center items horizontally */
}

.scrollable-square li {
    list-style: none; /* Remove bullet points */
    margin: 10px 20px; /* Add some margin between list items */
}

.scrollable-square a {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit color from parent */
    font-family: inherit; /* Inherit font from parent */
    font-size: inherit; /* Inherit font size from parent */
    transition: none; /* Remove transition effect */
    text-align: center;
}


.photo-images {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap onto multiple lines */
    justify-content: space-around; /* Space items evenly along the main axis */
}

.image-container {
    flex: 0 0 calc(50% - 20px); /* 2 images per row with 20px margin between them */
    margin-bottom: 20px; /* Vertical margin between rows */
    padding: 10px; /* Padding around each image */
}

.photo-image {
    width: 100%; /* Make images fill their container */
    height: auto; /* Maintain aspect ratio */
}

.image-of-me img {
    width: 80%; /* Make images fill their container */
    height: auto; /* Maintain aspect ratio */
}

.clickable-image {
    transition: transform 0.3s; /* Smooth transition */
    cursor: pointer; /* Change cursor to indicate it's clickable */
}

/* Scale the image on click (when active) */
.clickable-image:active {
    transform: scale(2); /* Enlarges the image by 100% */
    z-index: 10; /* Ensures it appears above other content */
    position: relative; /* Allows it to grow outside the container */
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
    header nav {
        display: none; /* Hide the navigation */
    }

    .hamburger {
        display: block; /* Show the hamburger menu */
    }

    .centered-content {
        padding-top: 80px; /* Add space for fixed header */
    }

    /* Show the navigation when the hamburger menu is clicked */
    .show-nav nav {
        display: block;
    }
}

html {
    scroll-behavior: smooth; /* Enable smooth scrolling for the entire document */
}

/* Optional: Adjust padding to offset fixed header */
.centered-content {
    padding-top: 100px; /* Adjust according to your fixed header height */
    margin-top: 20;
}

.image-container {
    display: flex;
    flex-wrap: wrap; /* Allows images to wrap onto new lines */
    justify-content: center; /* Centers images horizontally */
    gap: 20px; /* Adds spacing between images */
    max-width: 1000px; /* Adjust maximum width of the container */
    margin: 100px auto; /* Centers the container horizontally */
}

.image-container img {
    max-width: 100%; /* Ensures images do not exceed their original size */
    height: auto; /* Maintains aspect ratio */
}
