/* Reset some default styles and set box-sizing for consistent layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Set overall body style: font, background, and text color */
  body {
    font-family: sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
  }
  
  /* ================= Header Section ================= */
  
  /* Container that holds header text and image side by side */
  .header-content {
    display: flex; /* Arrange child elements in a row */
    align-items: center; /* Center items vertically */
    justify-content: space-between; /* Space between text and image */
    gap: 1rem;
    flex-wrap: wrap; /* Responsive wrapping on small screens */
    padding: 2rem;
    background: #007bff;
    color: white;
  }
  
  /* Text part of the header (left side) */
  .header-text {
    flex: 1;
    text-align: left;
  }
  
  /* Profile image (right side) */
  .header-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
  }
  
  /* Navigation links */
  nav a {
    margin: 0 1rem;
    color: black;
    text-decoration: none;
  }
  
  /* ================= Main Content Sections ================= */
  
  /* General section styling */
  section {
    padding: 2rem;
    max-width: 800px;
    margin: auto;
  }
  
  /* Specific styling for the About section */
  section.about {
    background-color: #ffffff;
    padding: 2rem;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Heading style inside About section */
  section.about h2 {
    color: #007bff;
    margin-bottom: 1rem;
  }
  
  /* Paragraph style inside About section */
  section.about p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
  }
  /* === Skills Section Styles === */

/* Style the whole skills section box */
section.skills {
    background-color: #ffffff; /* White background */
    padding: 2rem;             /* Space inside the box */
    margin: 2rem auto;         /* Space outside the box and center it */
    border-radius: 8px;        /* Rounded corners */
    max-width: 800px;          /* Max width for readability */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
  }
  
  /* Style the section heading */
  section.skills h2 {
    color: #007bff;           /* Moringa blue color */
    margin-bottom: 1rem;      /* Space below the heading */
  }
  
  /* Style the list of skills */
  .skills-list {
    list-style-type: none;   /* Remove bullet points */
    padding: 0;              /* Remove default padding */
    display: flex;           /* Arrange items in a row */
    flex-wrap: wrap;         /* Allow items to wrap on small screens */
    gap: 1rem;               /* Space between skills */
  }
  
  /* Style each skill box */
  .skills-list li {
    background: #007bff;     /* Blue background for each skill */
    color: white;            /* White text */
    padding: 0.5rem 1rem;    /* Space inside the skill item */
    border-radius: 5px;      /* Rounded corners */
    font-size: 0.95rem;      /* Slightly smaller text */
  }
  
  /* === Project Section Styles === */
#projects {
    padding: 2rem;
    max-width: 900px;
    margin: auto;
  }
  
  /* Container for each project */
  .project-card {
    display: flex;
    flex-wrap: wrap; /* Mobile friendly */
    background: white;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  /* Project image styling */
  .project-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
  }
  
  /* Right side (text/info) styling */
  .project-info {
    flex: 1;
    padding: 1rem;
  }
  
  /* Title and description */
  .project-info h3 {
    margin-bottom: 0.5rem;
    color: #007bff;
  }
  
  .project-info p {
    margin-bottom: 1rem;
    color: #444;
  }
  
  /* GitHub link styling */
  .project-info a {
    text-decoration: none;
    color: white;
    background-color: #28a745;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s;
  }
  
  .project-info a:hover {
    background-color: #218838;
  }
  
  
  /* ================= Contact Form ================= */
  
  /* Input and textarea fields */
  form input,
  form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  /* Submit button */
  form button {
    padding: 0.75rem 2rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  /* ================= Footer ================= */
  
  footer {
    text-align: center;
    padding: 1rem;
    background: #333;
    color: white;
    margin-top: 2rem;
  }

    
  /* ================= Beginner Tip ================= */
  /* 
    Use .classname to style HTML elements with a class
    Use #idname to style HTML elements with an ID 
  */
  