/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Body styling */
  body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    /* background-image: url('https://www.example.com/background.jpg'); Add your image link here */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    overflow-x: hidden; /* Ensure horizontal scrolling is prevented */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: fadeInPage 1s ease-out;
   
  }
  
  /* Fade-in page animation */
  @keyframes fadeInPage {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  /* Header Styling */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background: #222; /* Dark background for luxury look */
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInHeader 1.5s ease-out;
  }
  
  @keyframes fadeInHeader {
    from {
      opacity: 0;
      transform: translateY(-30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .logo img {
    width: 140px; /* Adjust based on your logo size */
    height: auto;
  }
  
  nav ul {
    display: flex;
    list-style: none;
    margin-right: 40px;
  }
  
  nav ul li {
    margin-left: 20px;
  }
  
  nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover */
    position: relative;
  }
  
  nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4594e4;
    transition: width 0.3s ease;
  }
  
  nav ul li a:hover {
    color: #6bafff; /* Lighter blue on hover */
    transform: translateY(-5px); /* Slight lifting effect */
  }
  
  nav ul li a:hover:after {
    width: 100%; /* Hover underline effect */
  }
  
  /* Hamburger Menu */
  .hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #4594e4;
    padding: 10px 15px;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }
  
  .hamburger.active {
    transform: rotate(180deg); /* Rotate when active */
  }
  
  @media (max-width: 768px) {
    .hamburger {
      display: block;
    }
  
    #nav-menu {
      display: none;
      flex-direction: column;
      position: fixed;
      top: 10%;
      right: 0;
      width: 80%;
      height: 80%;
      background-color: rgba(0, 0, 0, 0.9); /* Dark transparent background */
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
      border-radius: 5px;
      padding: 20px;
      z-index: 1000;
      justify-content: center;
      align-items: flex-start;
      transform: translateX(100%);
      opacity: 0;
      transition: transform 0.3s ease, opacity 0.3s ease;
    }
  
    #nav-menu.active {
      display: flex;
      transform: translateX(0);
      opacity: 1;
    }
  
    nav ul li {
      margin: 20px 0;
    }
  
    nav ul li a {
      color: white;
      font-size: 1.5rem;
    }
  
    nav ul li a:hover {
      color: #e0f3ff;
    }
  }
  
/* Team Section */
.team-section {
    width: 100%;
    /* max-width: 1200px; */
    /* padding: 50px 20px; */
    text-align: center;
    position: relative;
    align-items: center;
}

/* Title Style */
.team-section h1 {
    font-size: 3rem;
    color: #4594e4;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Wrapper for Team Members */
.team-wrapper {
    position: relative;
}

/* Team Member Container */
.team-member {
    position: relative;
    margin-bottom: 50px;
}

/* Team Member Bio */
.bio {
    margin-bottom: 10px;
}

.bio h3 {
    color: #0056d2;
    font-size: 1.5rem;
}

.bio p {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}

/* Profile Image Styles */
.team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 5px solid #0056d2; */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-photo:hover {
    transform: scale(1.1);
}

/* Owner's Image larger */
.owner img {
    width: 250px;
    height: 250px;
    margin-bottom: 20px;
}

/* Team Members Layout */
.team-members {
    display: flex;
    justify-content: center;
    gap: 40px;
}

/* Co-owner and Manager: Aligning Below Owner */
.co-owner, .manager {
    order: 2;
}

/* Connecting Line between Members */
.team-line {
    width: 100%;
    height: 3px;
    background-color: #0056d2;
    position: absolute;
    top: 50%;
    left: 0;
    display: none;
}

/* Hover effect for bio */
.bio:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Sections for the Customer Service and Drivers & Mechanics */
.customer-service,
.drivers-mechanics {
    font-size: 1rem;
    text-align: center;
    padding: 20px;
    background-color: #f3f8ff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.customer-service h3,
.drivers-mechanics h3 {
    font-size: 1.8rem;
    color: #0056d2;
    font-weight: bold;
    margin-bottom: 20px;
}

.customer-service p,
.drivers-mechanics p {
    color: #555;
    font-size: 1rem;
}

/* Connecting Line Between Team Members - Hidden until animated */
.team-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0056d2;
    display: none; /* Hidden by default */
}





/* Mobile  */
/* Mobile and Tablet Styling */
@media screen and (max-width: 768px) {
    /* Team Section */
    .team-section {
        padding: 30px 15px;
    }

    /* Title Style */
    .team-section h1 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    /* Wrapper for Team Members */
    .team-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    /* Team Member Container */
    .team-member {
        margin-bottom: 30px;
        width: 100%;
        max-width: 250px;
    }

    /* Profile Image Styles */
    .team-photo {
        width: 150px;
        height: 150px;
    }

    /* Bio Styles */
    .bio h3 {
        font-size: 1.2rem;
    }

    .bio p {
        font-size: 0.9rem;
    }

    /* Team Members Layout */
    .team-members {
        display: block;
        gap: 20px;
        padding: 20px;
    }

    /* Owner's Image larger */
    .owner img {
        width: 200px;
        height: 200px;
    }

    /* Adjust team-line for mobile and tablet */
    .team-line {
        height: 2px;
        top: 40%;
    }

    /* Customer Service Section */
    .customer-service,
    .drivers-mechanics {
        padding: 15px;
        margin-top: 20px;
    }

    .customer-service h3,
    .drivers-mechanics h3 {
        font-size: 1.5rem;
    }

    /* Set Flex Layout for the Team Members */
    .team-members {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        margin-top: 20px;
    }

    /* Styling for Team Members Bio */
    .bio {
        text-align: center;
    }
}

/* For smaller mobile screens */
@media screen and (max-width: 480px) {



    .team-section h1 {
        font-size: 2rem;
    }

    /* Adjust Team Member container */
    .team-member {
        width: 100%;
    }

    .team-photo {
        width: 130px;
        height: 130px;
    }

    /* Team Members Section with spacing */
    .team-members {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}
