/* Global Styles */
:root {
  --primary: #2895e2;
  --secondary: #e940d0;
  --light: #ffffff;
  --dark: #1a1a1a;
  --accent: #f8f1e5;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}
/* stylling for body tag */
body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}
/* stylling for heading */
h1,
h2,
h3,
h4 {
  font-family: "Times New Roman", serif;
  font-weight: bold;
  line-height: 1.2;
}
/* ancher tag */
a {
  text-decoration: none;
  color: inherit;
}
/* home img section */
img {
  max-width: 100%;
  height: auto;
}
/* container section */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* section title heading */
.section-title {
  position: relative;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--dark);
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--light);
  border: none;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background-color: var(--light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* header logo */
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}
/* header logo icon img */
.logo-icon {
  display: inline-block;
  width: 45px;
  height: 45px;
  margin-right: 10px;
  border-radius: 50%;
  position: relative;
}

.logo-icon:after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 2px solid var(--light);
  border-radius: 50%;
}
/* nav links */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  position: relative;
  font-weight: 600;
  transition: var(--transition);
}

nav ul li a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition);
}

nav ul li a:hover:after {
  width: 100%;
}

/* responsive mobile toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url("https://images.unsplash.com/photo-1585747860715-2ba37e788b70?fm=jpg&q=60&w=3000&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NHx8YmFyYmVyc2hvcHxlbnwwfHwwfHx8MA%3D%3D")
    center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--light);
  margin-top: 80px;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Services Section */
.services {
  padding: 100px 0;
  background-color: var(--accent);
}

/* services container stylling */
.services-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 50px;
}

/* service cards styllings */
.service-card {
  width: 30%;
  height: auto;
  background-color: var(--light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* service img */
.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}
/* service contents */
.service-content {
  padding: 25px;
  text-align: center;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.service-content p {
  margin-bottom: 20px;
  color: #555;
}
/* mobile responsiveness for services cards */
@media (max-width: 768px) {
  .services-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
  }
  .service-card {
    width: 100%;
  }
}

/* About Section */
.about {
  padding: 60px 0;
  background-color: #fafafa;
  text-align: center;
  position: relative;
}

/* Container for About section content */
.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Content area of the About section */
.about-content {
  flex: 1;
  max-width: 500px;
}

/* Title style for the section */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

/* Description style */
.about-description {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 20px;
}

/* Primary button style */
.btn-primary {
   display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--light);
  border: none;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hover effect for primary button */
.btn-primary:hover {
   background: linear-gradient(90deg, var(--secondary), var(--primary));
  transform: translateY(-3px);
}

/* Image container for the About section */
.about-img-container {
  flex: 1;
  max-width: 500px;
}

/* Image style inside the About section */
.about-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Hover effect for the image */
.about-img:hover {
  transform: scale(1.05);
}

/* Barber Section */
.barber-section {
  padding: 40px 20px;
  background-color: #fafafa;
  margin-top: 40px;
}

/* Container for the barber profiles */
.barber-container {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  flex-wrap: wrap;
}

/* Individual barber profile */
.barber-profile {
  text-align: center;
  max-width: 300px;
}

/* Profile image style */
.profile-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Hover effect for the profile image */
.profile-img:hover {
  transform: scale(1.05);
}

/* Profile name style */
.profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-top: 15px;
}

/* Profile bio style */
.profile-bio {
  font-size: 1rem;
  color: #777;
  margin-top: 10px;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .barber-container {
    flex-direction: column;
    align-items: center;
  }

  /* Adjust button padding and font size for mobile */
  .btn-primary {
    padding: 10px 18px;
    font-size: 1rem;
  }
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background-color: var(--accent);
}

/* Container for the testimonial cards */
.testimonial-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

/* Style for individual testimonial cards */
.testimonial-card {
  background-color: var(--light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Quote symbol before the testimonial card content */
.testimonial-card:before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: rgba(0, 0, 0, 0.05);
  font-family: serif;
  line-height: 1;
}

/* Testimonial content style */
.testimonial-content {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  color: #555;
  font-style: italic;
}

/* Author info container */
.testimonial-author {
  display: flex;
  align-items: center;
}

/* Author image style */
.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 3px solid var(--secondary);
}

/* Author name and title style */
.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark);
}

/* Author subtitle style */
.author-info p {
  font-size: 0.9rem;
  color: #777;
}

/* Mobile responsive styles for testimonials */
@media (max-width: 768px) {
  .testimonial-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
  }
}

/* Gallery */
.gallery {
  padding: 100px 0;
  background-color: var(--light);
}

/* gallery container stylling */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

/* gallery item stylling */
.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 250px;
}

/* gallery item img */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: #f8f1e5;
}

/* contact container stylling */
.contact-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

/* contact description */
.contact-description {
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 30px;
}

/* contact-info */
.contact-info {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

/* contact-info */
.contact-info .info-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* info-item */
.info-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
}

/* contact-info */
.contact-info .info-item h4 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1a1a1a;
}

/* contact-info */
.contact-info .info-item p {
  font-size: 1rem;
  color: #555;
}
/* icons  */
.icon-location,
.icon-email,
.icon-phone {
  font-size: 1.5rem;
  color: #d22b2b;
}

/* contact map */
.contact-map {
  width: 100%;
  text-align: center;
}

.contact-map h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.map-container {
  width: 100%;
}

/* Responsiveness */
@media (max-width: 768px) {
  .contact-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  /* Adjust the font size for contact info titles */
  .contact-info h3 {
    font-size: 1.5rem;
  }

  /* Adjust icon size in contact info */
  .info-item i {
    font-size: 1.2rem;
  }

  /* Adjust paragraph font size in contact info */
  .info-item p {
    font-size: 1rem;
  }

  /* Adjust map section heading font size */
  .contact-map h3 {
    font-size: 1.8rem;
  }

  /* Adjust button font size and padding in map actions */
  .map-actions .btn {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

/* For screens with a max-width of 576px (Phones and small screens) */
@media (max-width: 576px) {
  /* Reduce the gap between elements in contact container */
  .contact-container {
    gap: 20px;
  }

  /* Adjust font sizes for headings and paragraphs in contact info */
  .contact-info h3 {
    font-size: 1.3rem;
  }

  .info-item i {
    font-size: 1.1rem;
  }

  .info-item p {
    font-size: 0.9rem;
  }

  /* Adjust map section heading font size */
  .contact-map h3 {
    font-size: 1.6rem;
  }

  /* Adjust button font size and padding */
  .map-actions .btn {
    font-size: 0.9rem;
    padding: 8px 15px;
  }
}

/* Footer Styling */
footer {
  background-color: var(--dark); /* Dark background color */
  color: var(--light); /* Light text color */
  padding: 60px 0 20px;
}

/* Footer container with responsive grid */
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

/* Footer column heading */
.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
}

/* Decorative line after footer column heading */
.footer-col h3:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Footer text styling */
.footer-col p {
  margin-bottom: 15px;
  color: #bbb;
}

/* Footer links list styling */
.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

/* Footer link styling */
.footer-links a {
  color: #bbb;
  transition: var(--transition); /* Add smooth transition for hover */
}

/* Hover effect for footer links */
.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px; /* Add padding when hovered */
}

/* Social media links styling */
.social-links {
  display: flex;
  gap: 15px;
}

/* Social media link icon styling */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light);
  transition: var(--transition);
}

/* Hover effect for social media icons */
.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px); /* Slight movement on hover */
}

/* Footer bottom text */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
  font-size: 0.9rem;
}

/* Responsive Styles for Various Screen Sizes */

/* For screens with a max-width of 992px (Larger Tablets) */
@media (max-width: 992px) {
  /* Stack about container content in a single column */
  .about-container {
    grid-template-columns: 1fr;
  }

  /* Change order of the about image */
  .about-img {
    order: -1;
  }
}

/* For screens with a max-width of 768px (Tablets and smaller) */
@media (max-width: 768px) {
  /* Show the mobile menu toggle button */
  .menu-toggle {
    display: block;
  }

  /* Style for navigation menu */
  nav {
    position: absolute;
    top: 80px;
    left: -100%;
    width: 100%;
    background-color: var(--light);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }

  /* Active navigation menu */
  nav.active {
    left: 0;
  }

  /* Adjust navigation links styling */
  nav ul {
    flex-direction: column;
    width: 100%;
    padding: 20px 0;
  }

  nav ul li {
    margin: 0;
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* Remove underline effect on navigation links */
  nav ul li a:after {
    display: none;
  }

  /* Adjust the hero section heading font size */
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* For screens with a max-width of 576px (Phones) */
@media (max-width: 576px) {
  /* Adjust hero section heading font size */
  .hero h1 {
    font-size: 2rem;
  }

  /* Adjust section title font size */
  .section-title {
    font-size: 2rem;
  }

  /* Adjust button padding */
  .btn {
    padding: 10px 25px;
  }
}

/* Custom Animations */

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide-up animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in class */
.fade-in {
  animation: fadeIn 1s forwards;
}

/* Slide-up class */
.slide-up {
  animation: slideUp 0.8s forwards;
}

/* Delayed animation classes */
.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}
.delay-4 {
  animation-delay: 0.8s;
}
