:root {
    /* variables */
    --cg-black: #333;
    --cg-blue: #3a9bdc;
    --cg-grey: #ccc;
    --cg-light-grey: #f0f8ff;
    --cg-white: #ffffff;
    --cg-yellow: #ffcc00;
    --cg-dark-blue: #2a7db2;
  }

  h1 {
    font-size: 2rem; /* Larger title */
    color: var(--cg-blue); /* Title color matching the theme */
    margin-bottom: 20px; /* Space below the title */
  }

  h2 {
    border-bottom: 2px solid var(--cg-blue); /* Light blue border */
    padding-bottom: 5px;
    margin-bottom: 10px; /* Space below headings */
    color: var(--cg-blue); /* Heading color */
  }

  p {
    margin-bottom: 20px; /* Space below the paragraph */
    font-size: 1.1rem; /* Slightly larger font for better readability */
    color: var(--cg-black); /* Darker text for contrast */
  }

  html {
    height: 100%;
  }

  body {
    background-color: var(--cg-light-grey); /* Light blue background */
    position: relative;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    font-family: "Titillium Web", 'Times New Roman', Times, serif; /* Font for the whole site */
  }

  main {
    padding: 0 20px 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  label {
    font-weight: bold; /* Bold labels for better visibility */
    font-size: 1.5rem;
    margin-bottom: 5px; /* Space below labels */
    display: block; /* Make labels block to have full width */
    color: var(--cg-blue); /* Color matching the theme */
  }

  /* CSS for the home page */

  .about-container {
    display: flex; /* Align items horizontally */
    align-items: center; /* Center items vertically */
    max-width: 800px; /* Limit the maximum width */
    margin: 20px auto; /* Center the container */
    padding: 20px; /* Padding around the container */
    background-color: var(--cg-white); /* Background color */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

  .about-image {
    margin-right: 20px; /* Space between the image and text */
  }

  .about-image img {
    border-radius: 8px; /* Optional: rounded corners for the image */
  }

  /* CSS for the blog page */
  .blog-container {
    max-width: 800px; /* Adjust to your layout needs */
    margin: 20px auto; /* Center the container */
    padding: 20px; /* Padding around the content */
    background-color: var(--cg-white); /* White background for the blog */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  }

  /* CSS for the portfolio page */
  .portfolio-container {
    max-width: 800px; /* Limit the maximum width */
    margin: 20px auto; /* Center the container */
    padding: 20px; /* Padding around the container */
    background-color: var(--cg-white); /* Background color */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  }

  .information {
    margin-bottom: 20px; /* Space below the information section */
  }

  .project {
    display: flex; /* Align items horizontally */
    align-items: center; /* Center items vertically */
    margin-bottom: 20px; /* Space below each project */
  }

  .project img {
    margin-right: 20px; /* Space between the image and project details */
    border-radius: 8px; /* Optional: rounded corners for the image */
  }

  .project-details {
    max-width: 500px; /* Limit the width of project details */
  }


  /* CSS for navigation bar */

  .logo a {
    font-family: "Titillium Web", 'Times New Roman', Times, serif;
  }

  .navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 60px;
    z-index: 10;

    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;

    background-color: var(--cg-blue);
    color: white;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
  }

  .nav-list {
    display: flex;
    flex-direction: row; 
    position: relative;
    right: 30px;
    list-style: none;
  }

  .navbar a {
    color: white;
    font-weight: bold;
    margin: 0 12px; /* Adjusted margin for better spacing */
    text-decoration: none;
    letter-spacing: 2px;

    transition: color 0.3s; /* Smooth transition for hover */
  }

  .navbar a:hover {
    color: var(--cg-yellow); /* Hover color */
  }

  /* CSS for resume and similar entries/paragraphs */
  .resume {
    max-width: 800px; /* Centering the resume */
    margin: 0 auto; /* Centering */
    background-color: var(--cg-white); /* White background for sections */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Padding for sections */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  }

  .section {
    width: 100%; /* Ensures section takes full width */
    margin-bottom: 20px;
  }

  .entry {
    margin-left: 0; /* Reset any unwanted left margin */
  }

  .skills-list,
  .course-list {
    list-style-type: disc; /* Adjust based on preference */
    padding-left: 20px; /* Ensure all lists are aligned */
  }

  /* CSS for page footer */

  .footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--cg-blue); /* Light blue background */
    color: white;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2.5rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Shadow for footer */
    font-size: 14px; /* Font size for footer */
  }

/* Responsive adjustments */
  @media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Stack items on smaller screens */
        align-items: flex-start; /* Align items to the left */
    }

    .navbar a {
        margin: 5px 0; /* Adjust margin for links */
    }

    .resume {
        padding: 15px; /* Reduce padding on smaller screens */
    }
  }

  /* CSS for Forms and Buttons */

  .download-button {
    background-color: var(--cg-blue); /* Button color matching the theme */
    color: white; /* Text color */
    padding: 10px 20px; /* Padding for button */
    margin: 10px 0; /* Space above and below the download link */
    border: none; /* Remove border */
    border-radius: 4px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Bold text */
    font-size: 1rem; /* Font size */
    transition: background-color 0.3s; /* Smooth transition for hover */
    display: inline-block; /* Ensure proper button display */
  }

  .download-button:hover {
    background-color: var(--cg-dark-blue); /* Darker shade on hover */
  }

  #contact-form {
    background-color: var(--cg-white); /* White background for the form */
    border-radius: 8px; /* Rounded corners */
    padding: 30px; /* Increased padding for more space inside */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    max-width: 500px; /* Increased maximum width of the form */
    width: 100%; /* Responsive width */
  }

  input[type="text"],
  textarea {
    width: 95%; /* Adjusted width */
    padding: 10px; /* Padding inside inputs */
    margin: 0 auto 20px auto; /* Centered horizontally and space below */
    display: block; /* Ensures block behavior for centering */
    border: 1px solid var(--cg-grey); /* Light gray border */
    border-radius: 4px; /* Slightly rounded corners */
    transition: border 0.3s; /* Smooth transition for focus */
  }

  input[type="text"]:focus,
  textarea:focus {
    border-color: var(--cg-blue); /* Change border color on focus */
    outline: none; /* Remove outline */
  }

  textarea {
    height: 100px; /* Set a height for the textarea */
    resize: none; /* Prevent resizing */
  }

  input[type="submit"] {
    background-color: var(--cg-blue); /* Button color matching the theme */
    color: white; /* Button text color */
    border: none; /* Remove border */
    padding: 10px 15px; /* Padding for button */
    border-radius: 4px; /* Slightly rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth transition for hover */
    font-weight: bold; /* Bold text on button */
  }

  input[type="submit"]:hover {
    background-color: var(--cg-dark-blue); /* Darker shade on hover */
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    #contact-form {
        padding: 15px; /* Reduce padding on smaller screens */
    }

    .contact-title {
        font-size: 1.8rem; /* Adjust title size */
    }

    p {
        font-size: 1rem; /* Adjust paragraph font size */
    }
  }
