/* General Styles */

body {
    font-family: Cambria, serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

h1, h2 {
    color: #2e4d6d;
}

h1 {
    font-size: 30px;
    font-weight: bold;
}

h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 18px;
    font-style: italic;
    color: black;
}

h4 {
    color: white;
    font-size: 16px;
}

p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-links {
    display: flex;
    gap: 20px;
}

.navbar-links .nav-link {
    font-size: 1.2rem; 
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar-links .nav-link.active,
.navbar-links .nav-link:hover {
    color: #007bff8e;
    font-weight: bold;
    font-size: 1.2rem; /* Match the font size here */
}

.container {
    display: flex;
    justify-content: space-around; /* Create space between text and image */
    align-items: center; /* Align items vertically */
    padding: 2rem 4rem; /* Increase padding for larger container */
    max-width: 1200px; /* Set a maximum width */
    margin: 0 auto; /* Center the container on the page */
}

.image-section,
.image-section-project,
.text-section {
    flex: 1 1 40%;
    max-width: 500px;
}

.text-section h1 {
    margin: 0; /* Remove default margin for precise alignment */
}

.text-section-project {

    flex: 1; /* Allow the text to take up space proportionally */
    max-width: 40%; /* Limit the width of the text section */
    text-align: center; /* Center align the text */
}

.image-section img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.image-section-project img {
    width: 60%; /* Ad ust the image width to 80% of its container */
    max-width: 300px; /* Set a maximum width for the image */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto; /* Center the image within the container */
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.cards-container {
    display: flex;
    flex-direction: column; /* Stack cards vertically */
    gap: 20px; /* Adds spacing between cards */
    padding: 20px;
    align-items: center; /* Center the cards horizontally */
    background-color: #e9e6dc;

}

.card {
    display: flex; /* Arrange text and image side by side */
    flex-direction: row; /* Horizontal layout */
    justify-content: space-between; /* Space between text and image */
    align-items: center; /* Align items vertically */
    background-color: #fff; /* Light background for the card */
    border-radius: 16px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    overflow: hidden; /* Ensures content stays within the card */
    width: 80%; /* Adjust width to fit nicely on the page */
    padding: 20px;
    gap: 20px; /* Space between text and image */
}

.text-section-project {
    flex: 1; /* Allow the text section to take up space proportionally */
    text-align: left; /* Align text to the left */
}

.text-section-project h2 {
    font-family: 'Georgia', serif; /* Elegant font for titles */
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.text-section-project button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.text-section-project button:hover {
    background-color: #0056b3;
}

.image-section-project {
    flex: 1; /* Allow the image section to take up space proportionally */
    text-align: center; /* Center align the image and caption */
}

.image-section-project img.projects-pictures {
    width: 100%; /* Full width of the container */
    max-width: 300px; /* Set a maximum width for the image */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for the image */
}

.caption-section {
    font-family: 'Georgia', serif;
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px; /* Space between image and caption */
    text-align: center;
}

@media (max-width: 768px) {
    .card {
        flex-direction: column; /* Stack text and image vertically */
        text-align: center; /* Center align text and image */
    }

    .text-section-project {
        text-align: center; /* Center align text */
    }

    .image-section-project img.projects-pictures {
        max-width: 100%; /* Allow image to take full width */
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack items in a column for narrow screens */
        align-items: center;
    }

    .image-section,
    .image-section-project,
    .text-section,
    .text-section-project {
        flex: 1 1 100%;
        max-width: 100%; /* Remove width constraint */
        text-align: center; /* Center align text */
        padding: 0 1rem; /* Add padding for readability */

    }

    .button {
        width: auto;
    }
}

/* Interests Section */
.interests-section {
    text-align: center;
    margin: 30px auto;
    padding: 20px;
    max-width: 800px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.interests-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.interests-section li {
    font-size: 1rem;
    margin: 10px 0;
    color: #555;
}

/* Social Links */
.social-links {
    text-align: center;
    margin: 30px auto;
    padding: 40px; /* Increase padding for a larger box */
    max-width: 1000px; /* Increase the maximum width */
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-links .icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links .icons a {
    font-size: 2rem;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links .icons a:hover {
    color: #007bff;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background-color: #2e4d6d;
    color: #fff;
    font-size: 0.9rem;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

footer a:hover {
    color: #ddd;
}


.hidden {
    display: none;
  }


.caption-section {
    font-family: Cambria, serif;
    font-size: 16px; /* Adjusted for better readability */
    text-align: center; /* Center align the captions */
    margin-top: 10px; /* Add space between the image and caption */
}


.projects-pictures {
    width: 400px;
    border: 4px solid #2e4d6d;
    margin-bottom: 10px; /* Add space below the image for the caption */
}

/* MODALS FOR PROJECTS */

#modal-debut {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    z-index: 1000;
    position: fixed;
    justify-content: center;
    align-items: center;
}

#modal-urban {
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  z-index: 1000;
  position: fixed;
  justify-content: center;
  align-items: center;
}

#modal-research {
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  z-index: 1000;
  position: fixed;
  justify-content: center;
  align-items: center;
}

#modal-debut.hidden {
    display: none;
}

#modal-urban.hidden {
  display: none;
}

#modal-research.hidden {
  display: none;
}

#modal-debut-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    width: 1500px;
    max-height: 90%;
    box-shadow: 0 4px 8px whitesmoke;
    text-align: left;
    position: relative;
    overflow-y: auto; /* ADDED THIS ONLY FOR THIS ONE bc I have a lot of NECESSARY text */
}

#modal-urban-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  width: 1500px;
  max-height: 90%;
  box-shadow: 0 4px 8px whitesmoke;
  text-align: left;
  position: relative;
}

#modal-research-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  width: 1500px;
  max-height: 90%;
  box-shadow: 0 4px 8px whitesmoke;
  text-align: left;
  position: relative;
}

#modal-debut-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    color: black;
}

#modal-urban-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 3rem;
  cursor: pointer;
  color: black;
}

#modal-research-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 3rem;
  cursor: pointer;
  color: black;
}


button {
    align-self: flex-start; /* Ensure the button aligns with the text */
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}