/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Body Styles */
body {
  font-family: 'Caveat', cursive; /* Apply the Caveat font globally */
  background-color: white;
  color: black;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Navigation Bar */
nav {
  position: fixed;
  top: 0;
  right: 20px;
  background-color: white;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

nav ul li a {
  text-decoration: none;
  font-weight: bold;
  color: black;
  font-size: 1.5rem;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Main Layout */
.main-container {
  display: flex;
  height: 100vh;
}

/* Static Left Section */
.static-left {
  position: fixed;
  left: 0;
  top: 0;
  width: 30%;
  height: 100vh;
  background-color: white;
  padding: 20px;
  overflow: hidden;
  border-right: 1px solid #ddd;
}

.profile-picture {
  width: 200px;
  height: 250px;
  object-fit: cover; /* Ensures the image scales properly within the dimensions */
  border: 3px solid black; /* Keeps the border */
  margin-bottom: 20px;
}


.contact-info {
  font-size: 1.2rem;
  line-height: 1.8;
}

.contact-info a {
  color: black;
  text-decoration: none;
  font-weight: bold;
}

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

/* Scrollable Right Content */
.scrollable-right {
  margin-left: 30%;
  width: 70%;
  padding: 20px;
  overflow-y: auto;
}

h1, h2, h3 {
  font-family: 'Caveat', cursive;
}

.section {
  padding: 50px 20px;
  border-bottom: 1px solid #ddd;
}

.section h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.section p {
  font-size: 1.5rem;
  font-family: 'Caveat', cursive;
}

/* Projects Section */
#projects h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

#project-list {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Add spacing between projects */
}

.project-item {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
}

.project-item h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.project-item p {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.project-item a {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: black;
}

.project-item a:hover {
  text-decoration: underline;
}

/* Education Section */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Add spacing between education entries */
}

.education-item {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
}

.education-item h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.education-item p {
  font-size: 1.5rem;
}

/* Experience Section */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Add spacing between experience entries */
}

.experience-item {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
}

.experience-item h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.experience-item p {
  font-size: 1.5rem;
}

.experience-item ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 10px; /* Add spacing above the list */
}

.experience-item ul li {
  margin-bottom: 5px;
  font-size: 1.4rem;
}

/* Awards Section */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Add spacing between award entries */
}

.award-item {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
}

.award-item h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.award-item p {
  font-size: 1.5rem;
}

/* Scrollbar Styling (Optional) */
.scrollable-right::-webkit-scrollbar {
  width: 8px;
}

.scrollable-right::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

.scrollable-right::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

@media (max-width: 768px) {
  /* General layout stacking for mobile */
  .main-container {
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center-align content for a clean look */
  }

  /* Static-left adjustments */
  .static-left {
    position: relative; /* Remove fixed positioning */
    width: 100%; /* Full width for mobile */
    text-align: center; /* Center-align content */
    padding: 20px 10px;
    border: none; /* Remove border on mobile */
    overflow: visible; /* Ensure content is not clipped */
  }

  /* Profile picture adjustments */
  .static-left .profile-picture {
    width: 150px; /* Reduce image size for smaller screens */
    height: auto; /* Maintain aspect ratio */
    margin: 0 auto; /* Center the image */
    display: block; /* Ensures it's treated as a block-level element */
    z-index: 1; /* Bring it to the front */
  }

  /* Ensure contact info is visible */
  .static-left .contact-info {
    margin-top: 20px; /* Add spacing below the profile picture */
    font-size: 1.2rem; /* Adjust for readability */
    line-height: 1.8;
  }

  /* Scrollable-right adjustments */
  .scrollable-right {
    margin-left: 0; /* Remove margin for stacked layout */
    width: 100%; /* Full width for mobile */
    padding: 20px 10px;
    overflow: visible; /* Allow content to flow naturally */
  }

  /* Navigation */
  nav {
    position: static; /* Remove fixed positioning */
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid black;
  }

  nav ul {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }

  nav ul li a {
    font-size: 1.2rem;
  }

  /* Section padding adjustments for mobile */
  .section {
    padding: 20px 10px; /* Adjust padding for smaller screens */
  }

  .section h1 {
    font-size: 2.5rem; /* Slightly smaller headings for mobile */
  }

  .section p {
    font-size: 1.2rem; /* Smaller font for better readability */
  }
}
