/* General Reset */
body, h1, h2, p, ul, li, a, button {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: ivory;
}

/* Header Styling */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #333;
  color: #fff;
  border-top: 1px solid #36454F;
  border-bottom: 1px solid #36454F;
}

#logo-img {
  margin-right: 150px;
}

#nav-bar .nav-items {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-family: Montserrat, sans-serif;
  font-size: 18px;
}

#nav-bar .nav-items:hover {
  color: #007bff;
}

#button {
  padding: 10px 20px;
  background: white;
  color: #007bff;
  border: none;
  transition: background-color 0.6s ease;
  cursor: pointer;
}

#button:hover {
  background-color: #007bff;
  color: white;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 50px;
  background: linear-gradient(to bottom, #333, #666);
  color: white;
}

.hero h1 span {
  color: #007bff;
  font-weight: 600;
}

.cta-button {
  padding: 15px 30px;
  background: #007bff;
  color: white;
  text-decoration: none;
  margin-top: 20px;
  display: inline-block;
  border-radius: 5px;
}
/* Before and After Video Section */
#before-after-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  background: #333; /* Matches the website's header color */
  color: #fff;
}

.video-container {
  position: relative;
  width: 220px; /* Rectangular dimensions */
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #444; /* Subtle background if video doesn't load */
}

.video-container:hover {
  transform: scale(1.05);
  box-shadow: 0px 12px 20px rgba(0, 0, 0, 0.5);
}

.video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  color: #007bff;
  font-size: 20px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .video-overlay {
  opacity: 1;
}

.video-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

#before-after-section .divider {
  width: 100%;
  height: 2px;
  background: #52525e;
  margin: 40px 0;
}

.animation-container {
  animation: slideIn 1s ease;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Testimonial Section */
.testimonial-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.testimonial-header {
  font-size: 1.8rem;
  font-weight: bold;
  color: #0066cc;
  text-align: center;
  margin-bottom: 20px;
}

.testimonial-slider {
  display: flex;
  gap: 18px;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 40px;
  text-align: center;
  width: 380px;
  height: 340px;
  flex-shrink: 0;
}

.testimonial-image img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  border: 4px solid #0066cc;
  margin-bottom: 10px;
}

.rating {
  color: #ffc107;
  font-size: 1.1rem;
}

/* Team Section */
.team-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #f9f9f9;
}

.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.team-member {
  position: relative;
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: scale(1.1);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

.team-member:hover .overlay {
  opacity: 1;
}
.footer {
  background: linear-gradient(135deg, #2d2e3a, #3b3b58);
  color: #f0f0f0;
  padding: 40px 0;
  font-family: 'Arial', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px; /* Ensures consistent spacing between sections */
  flex-wrap: wrap; /* Ensures responsiveness on smaller screens */
  max-width: 1200px; /* Sets a maximum width for content */
  margin: 0 auto; /* Centers the footer on the page */
  padding: 0 20px; /* Adds side padding */
}

.footer-container > div {
  flex: 1; /* Ensures each section gets equal width */
  min-width: 250px; /* Ensures sections remain readable on smaller screens */
  text-align: center; /* Centers the text for consistency */
}

.social-links h4, .contact-info h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #ffffff;
}

.social-icon img {
  width: 36px;
  height: 36px;
  margin: 0 8px;
  transition: transform 0.3s ease;
}

.social-icon img:hover {
  transform: scale(1.2);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  max-width: 120px; /* Adjusted size for balance */
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.footer-logo-img:hover {
  transform: rotate(5deg) scale(1.1);
}

.footer-title {
  font-size: 22px;
  font-weight: bold;
  color: #f8f8f8;
  margin-top: 5px;
}

.contact-info p {
  margin: 5px 0;
  font-size: 16px;
  color: #e0e0e0;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #52525e;
  padding-top: 15px;
  font-size: 14px;
  color: #c8c8d1;
  margin-top: 20px;
}
.case-studies-container {
  display: flex;
  gap: 20px;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 20px;
}

.case-study {
  background: #ffffff;
  color: #2d2e3a;
  border-radius: 10px;
  padding: 15px;
  width: 300px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.case-study:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.case-study-link {
  display: inline-block;
  margin-top: 10px;
  color: #0077ff;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.case-study-link:hover {
  color: #0056b3;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #f8f8f8;
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.get-in-touch {
  text-align: center;
  margin: 50px 0;
  background: linear-gradient(135deg, #2d2e3a, #3b3b58);
  padding: 40px 20px;
  color: #f0f0f0;
  border-radius: 10px;
}

.get-in-touch .cta-button {
  display: inline-block;
  background: #0077ff;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.get-in-touch .cta-button:hover {
  background-color: #0056b3;
}
/* Subtle styling for Section 2 - Explore Our Digital */
#services {
  text-align: center; /* Centers the text content */
  margin: 40px auto; /* Adds space above and below */
  padding: 20px 10px; /* Adds some inner padding */
  line-height: 1.6; /* Improves readability */
}

/* Subtle styling for Section 6 - Our Vision */
#vision {
  text-align: center; /* Centers the text content */
  margin: 50px auto; /* Adds more vertical spacing */
  padding: 25px 15px; /* Adds inner padding */
  line-height: 1.6; /* Makes the text easier to read */
  max-width: 900px; /* Restricts the width for better readability */
}
/* Media query for mobile view */
@media (max-width: 768px) {

  /* Header styling */
  header {
    text-align: center;
    padding: 10px;
  }

  /* Navigation styling */
  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
  }

  /* Main content styling */
  main {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .content {
    width: 100%;
    text-align: justify;
    padding: 10px;
  }

  .aside {
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
  }

  /* Footer styling */
  footer {
    text-align: center;
    padding: 10px;
  }

  /* Additional adjustments */
  body {
    margin: 0;
    padding: 0;
  }
}

@media screen and (max-width: 768px) {
  .header {
      flex-direction: column;
      align-items: flex-start;
  }

  #nav-bar {
      display: none;
      flex-direction: column;
      gap: 10px;
      margin-top: 10px;
      background: #f4f4f4;
      padding: 10px;
      border-radius: 5px;
      width: 100%;
  }

  #nav-bar.show {
      display: flex;
  }

  #button {
      width: 100%;
      margin-top: 10px;
  }

  .hero h1 {
      font-size: 2rem;
  }

  .services h1 {
      font-size: 1.8rem;
  }
}
/* Form Styling */
/* Custom iframe container styling */
/* Wrapper for the iframe with enhanced styling */
.iframe-wrapper {
  background-color: #f5f5f5; /* Light gray background */
  padding: 20px;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

iframe {
  border: none; /* Remove default border */
  width: 100%;
  height: 900px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

iframe:hover {
  transform: scale(1.01);
}

/* Clients Section */
.clients-section {
  background-color: #333; /* Matches website background */
  color: #fff; /* Light text color */
  text-align: center;
  padding: 50px 20px;
}

.clients-header p {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
  color: #007bff; /* Blue highlight */
}

.clients-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #007bff;
}

.clients-header h2 span {
  color: #007bff; /* Blue highlight */
  font-weight: 900;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.client-box {
  background: #f8f8f8; /* Light gray to match testimonials */
  padding: 0%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-box:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.client-box img {
  max-width: 100%;
  height: auto;
  filter: grayscale(80%); /* Makes logos black & white */
  transition: filter 0.3s ease;
}

.client-box:hover img {
  filter: none; /* Restores original color on hover */
}
/* Connect With Us Section */
#connect {
  background: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
  border-radius: 10px;
  max-width: 800px;
  margin: 50px auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.connect-container h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
}

.connect-container p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.connect-button {
  padding: 12px 25px;
  font-size: 18px;
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.connect-button:hover {
  background: #0056b3;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 50%;
}
.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}
/* Before & After Section Styling */
.transformation-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    background: #333;
    color: #fff;
}

/* Base Styling for Shapes */
.before-after-box {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.before-after-box:hover {
    transform: scale(1.05);
    box-shadow: 0px 12px 20px rgba(0, 0, 0, 0.5);
}

/* Unique Shape Variations */
.shape-1 {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: #ff5733;
}

.shape-2 {
    clip-path: polygon(25% 0%, 100% 25%, 75% 100%, 0% 75%);
    background: #33ff57;
}

.shape-3 {
    clip-path: ellipse(50% 40%);
    background: #3357ff;
}

.shape-4 {
    clip-path: polygon(50% 0%, 90% 20%, 100% 50%, 90% 80%, 50% 100%, 10% 80%, 0% 50%, 10% 20%);
    background: #ff33a1;
}

.shape-5 {
    clip-path: circle(40%);
    background: #ffa533;
}

/* Caption Styling */
.caption {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px;
}
.before-after-toggle {
  position: relative;
  width: 600px;
  max-width: 100%;
  margin: 20px auto;
  overflow: hidden;
}

.before-after-toggle img {
  width: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease;
}

.overlay-image {
  opacity: 1;
}

.before-after-toggle:hover .overlay-image {
  opacity: 0;
}

.before-after-toggle .label {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 5px;
  font-size: 1rem;
}
.flip-card {
  background-color: transparent;
  width: 300px;
  height: 300px;
  perspective: 1000px;
  margin: 20px auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.flip-card-front {
  background-color: #f0f0f0;
}

.flip-card-back {
  background-color: #007bff;
  transform: rotateY(180deg);
}

.flip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.label {
  position: absolute;
  bottom: 10px;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 1rem;
  padding: 5px;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  width: 80%;
  max-width: 800px;
  position: relative;
}

.modal-content .close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
}

.comparison-container {
  display: flex;
  gap: 10px;
}

.comparison-container img {
  width: 50%;
  object-fit: cover;
}

/* Update Clients Section */
.clients-section {
  padding: 30px 15px;
}

.clients-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.clients-grid img {
  border: darkblue;
}

.client-box {
  padding: 4px;
  margin: 0px;
  box-shadow: none;
}

.client-box img {
  max-width: 80%;
}

/* Update Popup Box */
.modal-content {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  padding: 40px;
  width: 60%;
  text-align: center;
  border-radius: 12px;
}
.before-after-toggle {
  position: relative;
  width: 600px;
  max-width: 100%;
  margin: 20px auto;
  overflow: hidden;
  border: 2px solid #ccc;
  border-radius: 8px;
}

.before-after-toggle img {
  width: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease;
}

/* The base image is the before image (on bottom) */
.base-image {
  z-index: 1;
}

/* The overlay image is the after image (on top) */
.overlay-image {
  z-index: 2;
  opacity: 1;
}

/* On hover, fade out the overlay image to reveal the before image */
.before-after-toggle:hover .overlay-image {
  opacity: 0;
}

/* Optional label styling */
.before-after-toggle .label {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px;
  font-size: 1rem;
  z-index: 3;
}

.flip-card {
  background-color: transparent;
  width: 300px;
  height: 300px;
  perspective: 1000px;
  margin: 20px auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

/* Rotate the inner card on hover */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}

.flip-card-front {
  background-color: #f0f0f0;
  z-index: 2;
}

.flip-card-back {
  background-color: #007bff;
  transform: rotateY(180deg);
  z-index: 1;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}

.flip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.label {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  justify-content: center;
  align-content: center;
  color: #fff;
  padding: 5px;
  font-size: 1rem;
  z-index: 3;
}
/* Flip-cards styled as thumbnails (300px x 300px) – adjust as needed */
.flip-card {
  background-color: transparent;
  width: 300px;
  height: 650px;
  perspective: 1000px;
  margin: 20px;
  display: inline-block;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card .label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centers text */
  padding: 1px;
  
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  text-align: center;
}


.flip-card-back {
 backface-visibility: hidden;
}

/* Remove borders from client section images */
.clients-grid img {
  border: none;
}


.flip-cards-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}
.modal {
  display: none; /* Hide the modal by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal content style */
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 50%;
  position: relative;
}
/* Close button style */
.modal-content .close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}
/* Style for the case study items */
.case-studies-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px;
  justify-content: center;
}
.case-study {
  cursor: pointer;
  border: 1px solid #ddd;
  padding: 10px;
  max-width: 300px;
  text-align: center;
  transition: box-shadow 0.3s;
}
.case-study:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.case-study img {
  max-width: 100%;
  height: auto;
}
#case-study-modal {
  display: none;
}