/* This is the box model code */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* The header section */
.header {

    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;
    background-color: ghostwhite;
}

.header ul {
    display: flex;
}

.header ul li {
    margin-left: 20px;
}

.header ul li {
    list-style: none;
}

.header ul li a {
    text-decoration: none;
}

.header ul li a {
    font-size: 20px;
    color: black;
}

.header ul li a:hover {

    color: rgb(236, 207, 39);
}

.header img {
    width: 7%;
}

/* hero section */
.hero {
    background-image: url(../images/hero.png);
    color: white;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* our barbers */
.grid-container {
  display: grid;
  /* This creates as many columns as possible with a min-width of 250px and a max-width of 1fr */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; /* Provides consistent spacing between the cards */
  padding: 20px;
  max-width: 1200px; /* Optional: Sets a maximum width for the whole grid on large screens */
  margin: 0 auto; /* Centers the grid container on the page */
  
}

.card {
  /* Basic styling for the profile cards */
  background-color: #f3f4f6;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
  text-align: center; /* Centers content within the card */
}

.profile-img {
  /* Styling for the profile image */
  width: 100px; /* Adjust size as needed */
  height: 100px; /* Ensure aspect ratio is maintained with object-fit */
  border-radius: 50%; /* Makes the image circular */
  object-fit: cover; /* Ensures the image covers the area without stretching */
  margin-bottom: 15px; /* Spacing between image and text */
}

h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

p {
  margin-top: 0;
}

.hero+h1{
    text-align: center;
    padding-top: 50px;
}


/* =========================
   FOOTER
========================= */


footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 30px;
     background-color: #222;
    color: #fff;
    margin-top: 50px;
}

.footer-box h3 {
    margin-bottom: 15px;
}

.footer-box ul {
    list-style: none;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box ul li a {
    color: #ccc;
    text-decoration: none;
}

.footer-box ul li a:hover {
    color: rgb(236, 207, 39);
}

.footer-bottom {
    text-align: center;
    padding: 15px;
}



/* =========================
   RESPONSIVENESS
========================= */

/* Tablets */
@media (max-width: 992px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header ul {
        flex-direction: column;
        width: 100%;
    }

    .header ul li {
        margin: 10px 0;
    }

    .header img {
        width: 12%;
        margin-bottom: 10px;
    }

    .hero h1 {
        font-size: 28px;
        padding: 0 20px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .header {
        padding: 10px;
    }

    .header img {
        width: 20%;
    }

    .header ul li a {
        font-size: 16px;
    }

    .hero {
        height: 70vh;
        padding: 20px;
    }

    .hero h1 {
        font-size: 22px;
    }

    footer{
        grid-template-columns: 1fr; /* single column */
    }

    .card {
        padding: 15px;
    }
}

