:root {
  /* Colors and fonts follow the iMeet "Behind the Build" presentation */
  --primary-color: #c2534d;
  --dark-primary-color: #a8433e;
  --secondary-color: #1f1f1e;
  --page-color: #141414;
  --text-color: #e6e6e6;
  --muted-color: #9a9a9a;
  --on-primary-color: #ffffff;
  --soft-primary-color: #df9994;
  --light-gray: #2a2a29;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  --display-font: "Inter Display", "Inter", "Segoe UI", sans-serif;
  --body-font: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --mono-font: "JetBrains Mono", Consolas, monospace;
  color-scheme: dark;
}
.body {
  font-family: var(--body-font);
  margin: 0;  
  padding: 0;
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--secondary-color);
  box-shadow: var(--card-shadow);
}
h3 {
  margin: 0.5rem 0;
}
  .logo {
    height: 30px; /* Adjust the height of your logo to fit the navbar */
    width: auto;  /* Maintain aspect ratio */
    float: left;
    margin: 10px 5px /* Centers the logo vertically in the navbar */

}
.navbar {
    display: flex; /* Uses flexbox for layout */
    justify-content:baseline;
    align-items: center; /* Vertically centers items */
    max-width: min(85vw, 2000px);
    margin: 0 auto; /* Centers the navbar horizontally */
    box-sizing: border-box; /* Ensures padding is included in width calculations */
  }

  /* Styles for the navigation list */
.nav-list {
    list-style-type: none; /* Removes the bullet points */
    margin: 5px 50px; /* Small margin for spacing */
    padding: 0;
    display: flex;
    align-items: center; 
    gap: 20px; 
    background-color: var(--secondary-color);
    flex-wrap: wrap;
  }

  /* Style the links */
  .nav-link {
    display: block; /* Makes the entire area of the link clickable, not just the text */
    margin: auto;
    color: var(--text-color); /* White text color */
    padding: 5px 10px;
    text-decoration: none; /* Removes the underline from links */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effects */
  }
  

  /* Change color on hover */
  .nav-item:not(:first-child) .nav-link:hover {
    background-color: var(--dark-primary-color); /* Changes background color on hover */
    color: var(--secondary-color); /*Change text color on hover */
  }
 
  /* Remove padding from the logo's link to prevent extra space */
  .nav-item:first-child .nav-link {
    padding: 5px 20px; /* Adjust padding to vertically center the logo */
  }

/* Display the burger menu icon */
.burger-menu {
  display: none; 
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  margin-left: auto; 
}
.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 4px 0;
  transition: 0.4s;
}
.main {
  flex-grow: 1;
  padding: 10px;
  background-color: var(--secondary-color);
  border-radius: 8px;

}

.main-content {
  /* width: 100%;
  max-width: 1200px;
  list-style-type: square; */
  padding-left: 25px;
  margin: 0;
 }
.main-content li {
  font-size: 16px;
  /* Slightly reduced to be proportionate */
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 12px;

}
.main-title {
  font-size: 38px;
  font-weight: 700;
  margin-top: 60px; /* Adjust based on header height */
  margin-bottom: 0px;
  color: var(--text-color);
  text-align: center;

}
.role {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 0px;
  text-align: center;
}
.content-section {
  margin-top: 30px; /* Adjust based on header height */
  text-align: center;
}

.contact-container{
    display: flex; /* Makes the container a flex container for columns */
    gap: 40px; /* Spacing between the left (photo+contacts) and right (About Me) columns */
    align-items: flex-start; /* Aligns items to the top */ 
    margin: 10px auto; /* Centers the block and adds top/bottom margins */
    max-width: min(85vw, 2000px);
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.profile-pic img {
  position: absolute; /* Allows for absolute positioning within the container */
  width: 100%;
  height: 100%;
  object-fit: cover; /* Prevents image distortion */
  display: block;
  transition: opacity 0.4s ease-in-out; /* Smooth fade effect */
}

/* By default, the hover image is hidden */
.profile-pic .image-hover {
  opacity: 0;
}

/* When you hover over the .profile-pic container... */
.profile-pic:hover .image-hover {
  opacity: 1; /* ...make the hover image visible */
 }
.profile-pic:hover .image-default {
  opacity: 0; /* ...and hide the default image */
}


.button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.CV-contact-button {
  padding: 10px 20px; /* Padding for the button */
  background-color: var(--primary-color); /* Primary color for the button */
  color: var(--secondary-color); /* Text color */
  border: none; /* No border */
  border-radius: 5px; /* Slightly rounded corners */
  text-decoration: none; /* No underline */ 
}
.CV-contact-button:hover {
  background-color: var(--dark-primary-color); /* Darker shade on hover *//
}

.footer-list {
    list-style: none; /* Removes default list styling */
    padding: 0; /* Resets padding */
    margin: 0; /* Resets margin */
    display: flex; /* Makes the list a flex container */
    gap: 20px; /* Spacing between navigation items */
    justify-content: center; /* Centers the footer links */
}
.logo_footer {
      width: 30px; /* Logo size for footer */
      height: 30px; /* Logo size for footer */
      vertical-align: middle; /* Aligns the logo vertically with text */
      margin-right: 10px; /* Spacing to the right of the logo */
      float: center;


}
.footer-nav {
  background-color: var(--light-gray);
  border-top: 1px solid var(--secondary-color);
  padding: 1rem 0 0.5rem 0;
  text-align: center;
}
.footer-nav p {
  margin: 0;
  color: var(--text-color);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Styles for the contact information block */
.contact-info {
    list-style: none; /* Removes list markers */
    padding: 0; /* Reset padding */
    margin: 0; /* Reset margin */
    width: 100%; 
}


.contact-info li {
    display: flex; /* Makes each list item a flex container */
    align-items: center;
    margin-bottom: 12px; /* Spacing between contact items */
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.4; /* Line height for readability */
    /* Ensure there is no fixed width or max-width that clips text */
}

.contact-info li:last-child {
    margin-bottom: 0; /* Removes bottom margin from the last item */
}

.contact-info img {
    width: 18px; /* Icon size */
    height: 18px; /* Icon size */
    margin-right: 5px; /* Spacing to the right of the icon */
    flex-shrink: 0; /* Prevents the icon from shrinking */
    margin-top: 2px; /* Small top margin for icons to align with the first line of text */
}

.contact-info strong {
    margin-right: 5px;
    color: var(--text-color);
    font-weight: 600;
    flex-shrink: 0; /* Prevents "Email:", "Phone:", etc. from shrinking */
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    word-break: break-all; /* Allows the browser to break long words/links to prevent overflow */
    min-width: 0; /* Important for word-break to work in flex containers */
}

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

/* Styles for the main header content (right side) */
.header-content {
    flex-grow: 1; /* Takes up all available remaining space */
    /* Important: if there is padding here, it might affect the total width,
       make sure box-sizing: border-box; is applied */
    box-sizing: border-box;
    z-index: 1; /* Ensures it appears above other content */
}

.header-content .name {
    font-size: 36px;
    font-weight: 700;
    margin-top: 10px; /* Resets so it starts from the very top */
    margin-bottom: 8px;
    color: var(--text-color);
    text-align: center;
}


/* About Me section styles */
.about .container {
    padding: 0; /* Ensure this container has no extra padding that might narrow it */
}

.about-text {
    list-style-type: square; /* Square bullets for the list */
    padding-left: 25px; /* Slightly increased indentation for the list */
    margin: 0;
}

.about-text li {
    font-size: 16px; /* Slightly reduced to be proportionate */
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 12px;
}


.nav-list.nav-active {
  transform: translateX(0);
}
.profile-pic {

position: relative;
/* Necessary for positioning the images inside */
width: 100%;
height: auto;
/* Height will be determined by the aspect ratio */
aspect-ratio: 4 / 5.5;

border-radius: 8px;
overflow: hidden;
/* Ensures images stay within the rounded corners */
box-shadow: var(--card-shadow);
}
.header-content {
  width: 100%;        
  text-align: center; /* Centers headings on mobiles */
  padding: 0 15px;
  box-sizing: border-box;
}

.header-content .position {
  font-size: 20px;
}

.about-text {
  padding-left: 15px;
  text-align: left;
}

.resume-section {
  padding: 30px 0;
  background-color: var(--secondary-color); /* Light background color */
}

.resume-container {
  display: flex;
  max-width: min(85vw, 2000px);
  gap: 40px;
  margin: 0 auto;
}

.sidebar {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex: 0 0 500px;
  background-color: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  gap: 10px;
}
  
    /* Styles for the profile photo (rectangular, NOT circular) */

.block {
  margin-bottom: 10px;
}

.block-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 5px;
  text-transform: uppercase;
  text-align: center;
}

.block ul {
  padding-left: 20px;
  margin: 10px 0;
  text-align: left;
}

.without_points {
  list-style-type: none;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--text-color);
  text-align: center;
}


.edu-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
}

.edu-list li {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}




/* Main styles for the section */
.projects-section {
  padding: 2rem 0;
  text-align: center;
  background-color: var(--secondary-color); /* Background color, like in the screenshot */
  font-size: 1.2rem;
  max-width: min(85vw, 2000px);
  margin: 0 auto;

}

/* Container for the cards. We use flexbox for horizontal layout. */
.projects-container {
    display: flex;
    flex-wrap: wrap; /* Allows cards to wrap to a new line on smaller screens */
    justify-content: center;
    gap: 20px; /* Spacing between cards */
    padding: 10px 0;
}

/* Styles for a single project card */
.project-card {
  flex: 1 1 450px;
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  overflow: hidden; /* Hides parts of the image that extend beyond the container */
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px); /* Lifts the card on hover */
}

.project-image {
    width: 100%;
    height: 200px; /* Fixed height for all images */
    object-fit: cover; /* Crops the image to fill the container */
}

.project-info {
  padding: 1rem;
  flex: 1; 
}

.project-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1.2rem;
}

.project-link:hover {
    background-color: var(--dark-primary-color)
}

/* Additional styles for horizontal scrolling on mobile devices */

.experience-item {
  display: block;
  text-align: left;
  margin-bottom: 20px;
  padding: 0 10px;
  box-sizing: border-box;

}
.education-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
  text-align: left;
}

.education-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  background-color: var(--secondary-color);
}

.education-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.education-header .logo {
  float: none;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  object-fit: contain;
  flex-shrink: 0;
}

.education-header h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.education-meta {
  margin: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.95rem;
}

.education-dates {
  display: block;
  color: var(--dark-primary-color);
}
.education-section {
  display: block;
  max-width: min(85vw, 2000px);
  text-align: left;
  justify-self: center;
}
.language {
  display: block;
  text-align: left;
  list-style-type: none;
}


@media (max-width: 992px) {

  .contact-container,
  .main-content,
  .resume-container {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 10px;
  }

  .header-container {
    padding: 25px 20px;
    margin: 20px auto;
  }
  .logo {
    margin: 5px 5px; /* Small margin for spacing */
  }
  .nav-list {
    margin: 5px 10px; /* Small margin for spacing */
  }

  .profile-pic {
    width: 100%;
    text-align: center;
    aspect-ratio: 4 / 5.5;
  }
}
@media (max-width: 768px) {

  /* Hide the regular nav-list on small screens */
  .nav-list {
    position: fixed; 
    top: 0; 
    left: 0;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    background-color: var(--secondary-color);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }
  .contact-container {
  flex-direction: column;
  align-items: center;
  padding: 10px;
  gap: 10px; 
  }
  .burger-menu {
    display: flex; /* Shows the burger menu on small screens */
  }
}

@media (max-width: 576px) {
  .header-container {
    padding: 15px 10px;
    margin: 15px auto;
  }

  .sidebar {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
  }

  .burger-menu {
    display: flex; /* Shows the burger menu on small screens */

  }

}
/* Several links on one project card */
.project-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
}

.projects-note {
  text-align: center;
  font-style: italic;
}


/* iMeet theme: page and surfaces */
.body,
.main,
.nav-list,
.projects-section,
.resume-section {
  background-color: var(--page-color);
}

.header {
  background-color: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--light-gray);
}

.contact-container,
.project-card,
.education-item {
  border: 1px solid var(--light-gray);
}

.sidebar {
  border: 1px solid var(--light-gray);
}

a {
  color: var(--soft-primary-color);
}

/* iMeet theme: type */
.main-title,
.section-title,
.project-title,
.education-header h3,
.experience-item h3 {
  font-family: var(--display-font);
  letter-spacing: -0.01em;
}

.main-title {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
}

.role {
  color: var(--primary-color);
  font-family: var(--display-font);
  font-weight: 700;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 0.5rem;
}

.block-title,
.education-dates,
.contact-info strong {
  font-family: var(--mono-font);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.contact-info strong {
  font-size: 0.8rem;
}

.contact-info a,
.contact-info li,
.footer-nav p {
  color: var(--text-color);
}

.contact-info a:hover {
  color: var(--soft-primary-color);
}

.contact-info img,
.logo_footer {
  filter: invert(1) brightness(0.9);
}

.experience-item p em,
.about-text + p em,
.projects-note {
  color: var(--muted-color);
}

.edu-list li::marker,
.about-text li::marker,
.main-content li::marker {
  color: var(--primary-color);
}

/* iMeet theme: buttons and nav */
.CV-contact-button,
.project-link {
  color: var(--on-primary-color);
  border-radius: 999px;
}

.nav-link:hover {
  color: var(--on-primary-color);
}

.bar {
  background-color: var(--text-color);
}

.footer-nav {
  background-color: var(--page-color);
  border-top: 1px solid var(--light-gray);
}

/* Profile photo: round, coral ring, top of the left column */
.profile-pic {
  width: min(100%, 16rem);
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 6px solid var(--primary-color);
}

.profile-pic img {
  object-position: 50% 20%;
}

/* Company and school logos sit on a light chip so they stay visible on dark */
.experience-item .logo,
.block .logo,
.education-header .logo {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 2px;
}
