/* Root Variables */
:root {
  --color-primary:#1f242c; 
  --color-secondary: #cfcfcf;
  --color-white: #FFFFFF;
  --color-black: #222222;
  --color-accent: orange;
  --color-accent-secondary: rgba(255, 166, 0, 0.585);
}

/* General Reset */
mjx-container {
  font-family: MJXZERO, MJXTEX !important;
}

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



/* Body */
body {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
    font-family: 'Roboto', Arial, sans-serif;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 15px 0;
  text-align: center;
  z-index: 1000;
  border-bottom: var(--color-accent);
  border-bottom-width: 2px;
  border-bottom-style: solid;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;

}

nav ul li {
  display: inline;
}

nav ul li a {
  color: var(--color-secondary );
  text-decoration: none;
  font-size: 18px;
  padding: 10px;
}

nav ul li a:hover {
  text-decoration: underline;
}
a {
  color:rgb(0, 166, 255)
}
pre {
    display: inline-block;
    background: #f4f4f4;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    white-space: pre;
}


/* Sidebar */
.sidebar {
  width: 134px;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  padding: 15px;
  text-align: left;
  position: fixed;
  left: 0;
  top: 60px; /* Below header */
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 174px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  padding: 8px;
}

.sidebar a {
  text-decoration: none;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
}

.sidebar a:hover {
  text-decoration: underline;
}

.sidebar i {
  font-size: 20px;
  margin-right: 10px;
  color: var(--color-secondary);
}

.sidebar a:hover i {
  color: #0073b1;
}

/* Content */
.content {
  flex-grow: 1;
  margin-left: 220px;
  padding: 20px;
  margin-top: 80px;
}

h1 {
  font-size: 48px;
  margin-bottom: 10px;
  color:var(--color-accent);
}
h2 {
  font-size: 30px;
  margin-bottom: 10px;
  color:var(--color-accent);
}

h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color:var(--color-accent-secondary);
}

p {
  font-size: 22px;
  color: var(--color-secondary);
  margin-bottom: 29px;
  margin-right: 50px;
}

.blog-link{
  font-size: 22px;
  color: var(--color-secondary);
  margin-bottom: 18px;
}

/* Tables */
.table-container {
  width: 100%;
  overflow-x: auto; /* Allows scrolling on small screens */
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-white);
}

th, td {
  border: 1px solid var(--color-secondary);
  padding: 8px;
  text-align: left;
}

th {
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-weight: bold;
}

.responsive-img {
  width: 50%; /* Adjust percentage as needed */
  height: auto; /* Maintains aspect ratio */
  max-width: 300px; /* Prevents it from being too large */
  display: block; /* Removes extra spacing below inline images */
  margin: 0 auto; /* Centers the image */
  border-radius: 2px; /* Optional: adds rounded corners */
  float: right;
  margin-left: 20px;
}
.responsive-img-article {
  width: 60%; /* Adjust percentage as needed */
  height: auto; /* Maintains aspect ratio */
  display: block; /* Removes extra spacing below inline images */
  margin: 0 auto; /* Centers the image */
  border-radius: 2px; /* Optional: adds rounded corners */
  margin-left: 20px;
  margin-bottom: 20px;

}

/* Portfolio Page */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-items: center;
}

.project {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.project:hover {
  transform: scale(1.05);
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project h3 {
  margin: 10px 0;
  font-size: 1.2rem;
  color: #333;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  /* Header */
  .header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
  }

  /* Sidebar adjusts below the header */
  .sidebar {
    position: fixed;
    top: 60px; /* Keeps sidebar below header */
    left: 0;
    width: 100%;
    height: auto;
    background: var(--color-primary);
    padding: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    z-index: 999;
  }

  /* Sidebar links align horizontally */
  .sidebar ul {
    display: flex;
    justify-content: center;
    gap: 15px;
  }

  .sidebar ul li {
    padding: 0;
  }

  /* Content shifts down below header + sidebar */
  .content {
    margin-left: 0;
    margin-top: 160px; /* Adjust margin to ensure no overlap with header/sidebar */
    padding: 15px;
  }

  /* Navigation bar in mobile */
  nav ul {
    flex-direction: row;
    align-items: center;
    gap: 10px; /* Space between navigation items */
    padding: 0;
  }

  nav ul li {
    display: block; /* Ensures items are stacked vertically without overlapping */
  }

  /* Ensure the links are centered */
  nav ul li a {
    font-size: 18px;
    padding: 10px;
  }
  .responsive-img {
    width: 80%; /* Makes the image larger on smaller screens */
    max-width: none; /* Remove the max width limit */
    margin: 0, auto;
    float: none;
    display: block;
  }
  .responsive-img-article {
    width: 80%; /* Makes the image larger on smaller screens */
    max-width: none; /* Remove the max width limit */
    margin: 0, auto;
    float: none;
    display: block;
  }
  th, td {
    padding: 6px;
    font-size: 14px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project img {
    height: 150px;
  }

  .project h3 {
    font-size: 1rem;
  }

}
