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

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f5f7;
  color: #6054c0; /* purple-ish */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}



/* Header Styles */
header {
  background: linear-gradient(90deg, #1a202c, #2d3748);
  color: #f7fafc; /* Off-white text */
  text-align: center;
  padding: 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
}

hr {
  border: 0;
  height: 2px;
  margin: 20px 0;
  background: linear-gradient(to right, #8e7ef4, #6C55F9); /* gradient */
}

/* Back to Top Link Styles */


.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: url('../img/up-arrow.png') no-repeat center center;
  background-color: #7e63b4;
  background-size: 30px 30px; /* Controls arrow size */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.back-to-top:hover {
  background-color: #7e63b4; /* Lighter blue on hover */
}

/* Sidebar Styles */
.sidebar {
  background-color: #ffffff;
  border-right: 1px solid #e2e8f0; /* Subtle border */
  padding: 1.5rem 1rem;
  flex: 0 0 18%;
  height: 100%;
  position: sticky;
  top: 0;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  /* margin-bottom: 1rem; */
}

.sidebar  a {
  color: #4a5568; /* Neutral link color */
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem;
  display: block;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.sidebar  a:hover {
  background-color: #f4f5f7 ; /* Light hover background */
  color: #FF9B1A; /* Vibrant blue */
}

.sidebar  a.active {
  background-color: #2b6cb0;
  color: #f7fafc; /* White text on active link */
}




/* Sidebar Wrapper */
.sidebar-wrapper {
  position: fixed;
  top: 0;
  left: -100%; /* Hidden off-screen by default */
  width: 70%; /* Sidebar width for mobile */
  height: 100%;
  background-color: #ffffff;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease; /* Smooth slide-in animation */
  overflow-y: auto;
}

/* Sidebar Open State */
.sidebar-wrapper.open {
  left: 0; /* Slide in from the left */
}

/* Close Button */
.close-sidebar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #FF9B1A;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-sidebar:hover {
  color: #FF9B1A; /* Vibrant orange */
}

/* Hamburger Menu Toggle */
.mobile-menu-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1100;
  margin-top: 80px; /* push down a bit */
}

#menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #FF9B1A;
  transition: color 0.3s ease;
}

#menu-toggle:hover {
  color: #FF9B1A;
}

/* Static Sidebar for Larger Screens */
@media (min-width: 768px) {
  .sidebar-wrapper {
    position: static;
    left: 0;
    width: 240px; /* Full sidebar width on larger screens */
    box-shadow: none;
    transition: none; /* No animation for larger screens */
  }

  .close-sidebar {
    display: none; /* Hide X close on larger screens */
  }

  .mobile-menu-toggle {
    display: none; /* Hide hamburger menu on larger screens */
  }
}






/* Main Content Styles */
.content {
  flex: 1;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 2rem;
}

.content h2 {
  color: #5e2ac7; /* Muted blue for headings */
  margin-bottom: 1rem;
}

.content p {
  margin-bottom: 1.5rem;
  color: #4a5568;
}

img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.05);
}

/* Footer Styles */
footer {
  background: #1a202c; /* Dark background */
  color: #f7fafc; /* Light text */
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

footer a {
  color: #6054c0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #FF9B1A;
}

/* About Section */
.about-section {
  display: flex; /* Use Flexbox for layout */
  align-items: flex-start; /* Align text to the top */
  gap: 2rem; /* Space between the image and text */
  margin-top: 2rem; /* Add spacing above the section */
}

.about-section img {
  /*width: 150px;  Set a fixed width for the image */
  height: auto; /* Maintain aspect ratio */
  border-radius: 50%; /* Make the image circular */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

.about-text {
  flex: 1; /* Allow the text to take up remaining space */
  color: #4a5568; /* Neutral text color */
  font-size: 1rem;
  line-height: 1.6;
}


.collapsible {
  display: none; /* Initially hide list items */
}

.collapsible.open {
  display: block; /* Show list items when toggled */
}

.toggleable {
  cursor: pointer;
  padding-top: 1em;
  transition: color 0.3s ease; /* Smooth transition for color change */
}

.toggleable:hover {
  color: #FF9B1A; /* Vibrant orange for hover */
}




@media (max-width: 768px) {
  .about-section {
    flex-direction: column; /* Stack the image and text vertically */
    text-align: center; /* Center-align text for better readability */
  }

  .about-text {
    margin-top: 1rem; /* Add spacing above the text */
  }
}


/* Responsive Layout */
@media (min-width: 768px) {
  main {
    display: flex;
  }

  .content {
    margin: 2rem;
    flex: 1;
  }
}