:root {
  --tile-radius: 12px;
  --accent: #0073e6;
  --tile-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  --tile-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);
  --transition: 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
  --carousel-fit: cover;
  /* Default fit */
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

p {
  text-align: justify;
}

/* Contact Section */
.contact {
  background: #222;
  color: white;
  text-align: right;
  padding: 10px 30px;
  font-size: 14px;
}

/* Menu Bar */
.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #444;
  padding: 10px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.menu-left,
.menu-right {
  display: inline;
  align-items: right;
}

.menu a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #ffcc00;
}

.menu-logo {
  flex-grow: 1;
  display: flex;
  justify-content: right;
}

.menu-logo img {
  height: 50px;
}

/* Firm Intro */
.firm-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #f5f5f5;
  animation: fadeIn 2s ease-in-out;
}

.firm-intro img {
  width: 430px;
  height: 430px;
  object-fit: cover;
  margin-right: 40px;
}

.firm-intro .divider {
  width: 2px;
  height: 300px;
  background: #333;
  margin: 0 40px;
}

.firm-intro .intro-text h1 {
  font-size: 36px;
  font-style: italic;
  font-weight: bold;
  margin-bottom: 20px;
}

.firm-intro .intro-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  font-family: sans-serif;
  font-size: 17px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carousel DIV */
.carousel {
  position: relative;
  width: 100%;
  height: 420px;
  /* max-width: 1400px; */
  margin: 40px auto;
  margin-bottom: 40px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Carousel IMAGE */
.carousel-images {
  display: flex; /* key: puts images in a row instead of column */
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-images img {
  width: 100%;
  flex-shrink: 0; /* prevents images from shrinking */
  object-fit: contain; /* you can change to cover if needed */
}

/* Arrows */
.carousel .prev,
.carousel .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px;
  color: white;
  font-size: 18px; /* smaller than before */
  font-weight: bold;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  user-select: none;
  transition: background 0.3s ease;
}

.carousel .prev:hover,
.carousel .next:hover {
  background: rgba(0, 0, 0, 0.6);
}

.carousel .prev {
  left: 10px;
}

.carousel .next {
  right: 10px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

/* Dots */
.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dots span {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot:hover {
  background-color: #0073e6; /* Blue on hover */
}

.dots:active {
  background: #0073e6;
}

/* Our Services */
/* --- Section heading --- */
.services h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  animation: fadeSlideDown 1s ease forwards;
}

.services h2::after {
  content: "";
  display: block;
  width: 200px;
  height: 3px;
  background: #0073e6;
  margin: 8px auto 0;
  border-radius: 2px;
}

/* --- Services container --- */
.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 0 40px;
}

/* --- Tile style --- */
.service-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;

  /* fade-in on scroll */
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-tile.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Front --- */
.service-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  transition: opacity 0.6s ease;
}

.service-front img {
  width: 70%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 5px;
}

.service-front h3 {
  font-size: 1.2rem;
  margin: 0;
}

/* --- Back --- */
.service-back {
  position: absolute;
  inset: 0;
  background: #0073e6;
  color: #fff;
  border-radius: 10px;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 20px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Center the block */
.service-back .back-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 80%;
}

.service-back p {
  margin-bottom: 15px;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.4;
}

.service-back .read-more {
  padding: 8px 15px;
  background: #fff;
  color: #0073e6;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.service-back .read-more:hover {
  background: #ddd;
}

/* --- Hover effects --- */
.service-tile:hover .service-front {
  opacity: 0;
}

.service-tile:hover .service-back {
  opacity: 1;
  transform: scale(1);
}

.service-content {
  display: flex;
  align-items: last baseline;
  justify-content: left;
  padding: 5px 40px;
}

.service-content img {
  /* size of image */
  width: 480px;
  height: 480px;
  object-fit: cover;
}

.service-content p {
  width: 840px;
}

.team {
  padding: 60px 20px;
  background: #eef3f8;
  /* section background */
  text-align: center;
}

.team h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
}

.team h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #0073e6;
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Grid Layout */
.team-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

/* Team Member Tile */
.team-member {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-8px);
}

/* Image Styling */
.team-member img {
  width: 180px;
  /* size of image */
  height: 180px;
  object-fit: contain;
  border-radius: 50%;
  /* circular portrait */
  margin-bottom: 15px;
  border: 4px solid #0073e6;
}

/* Name Styling */
.team-member h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #0073e6;
  font-weight: bold;
}

.team h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
  opacity: 0;
  /* start hidden */
  transform: translateY(-30px);
  animation: fadeSlideDown 1s ease forwards;
  animation-delay: 0.2s;
  /* small delay for smoothness */
}

.clients {
  padding: 60px 20px;
  background: #f4f6f9;
  /* Section background */
  text-align: center;
}

.clients h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 40px;
  display: inline-block;
  position: relative;
}

.clients h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #0073e6;
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Carousel wrapper */
.clients-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Carousel track */
.clients-track {
  display: flex;
  align-items: center;
  gap: 40px;
  /* spacing between logos */
  animation: scrollClients 15s linear infinite;
  /* speed control */
}

/* Logos */
.clients-track img {
  width: 140px;
  /* logo size */
  height: auto;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.clients-track img:hover {
  filter: grayscale(0%);
}

.footer {
  background: #222;
  color: #ddd;
  padding: 50px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-about {
  text-align: left;
}

.footer-logo {
  width: 90px;
  margin-bottom: 15px;
}

.footer-about p {
  color: #bbb;
  line-height: 1.5;
}

.footer-links h3,
.footer-contact h3 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #0073e6;
}

.footer-contact p {
  margin: 6px 0;
}

.social-icons a {
  color: #bbb;
  margin-right: 12px;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #0073e6;
}

/* Bottom strip */
.footer-bottom {
  border-top: 1px solid #444;
  text-align: center;
  padding-top: 15px;
  color: #888;
  font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
  display: inline-block;
  background: #0073e6;
  color: #fff;
  border: none;
  padding: 10px 18px;
  margin-top: 10px;
  border-radius: 5px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.back-to-top:hover {
  background: #005bb5;
}

.social-icons {
  margin-top: 15px;
}

.social-icons a {
  color: #bbb;
  margin-right: 12px;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #0073e6;
  transform: scale(1.2);
}

.map-section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.map-section h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #222;
  position: relative;
  display: inline-block;
}

.map-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #0073e6;
  margin: 8px auto 0;
  border-radius: 2px;
}

.map-container {
  max-width: 2000px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modal Overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal Box */
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.5s ease-in-out;
}

.modal-content h2 {
  color: #0073e6;
  margin-bottom: 15px;
}

.modal-content ul {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: left;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.modal-content button {
  background: #0073e6;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.modal-content button:hover {
  background: #005bb5;
}

.trademark-note {
  font-size: 0.9rem;
  color: #555;
  margin-top: 15px;
  font-style: oblique;
  text-align: justify;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

#agreeBtn {
  background: #0073e6;
  color: #fff;
}

#agreeBtn:hover {
  background: #005bb5;
}

#declineBtn {
  background: #ccc;
  color: #333;
}

#declineBtn:hover {
  background: #999;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Heading animation --- */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Endless scroll animation */
@keyframes scrollClients {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Our Services page CSS */
.services-rows {
	max-width: 1100px;
	margin: 60px auto;
	padding: 0 20px;
}

.service-row {
	display: flex;
	align-items: center;
	gap: 30px;
	padding: 30px;
	margin-bottom: 30px;
	background: #f9f9f9;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Icon */
.service-icon {
	min-width: 70px;
	height: 70px;
	border-radius: 50%;
	background: #0073e6;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 28px;
}

/* Content */
.service-content h2 {
	margin-bottom: 10px;
	color: #0073e6;
}

.service-content p {
	color: #333;
	line-height: 1.6;
}

.read-more {
	display: inline-block;
	margin-top: 10px;
	color: #0073e6;
	font-weight: bold;
	text-decoration: none;
}

.read-more:hover {
	text-decoration: underline;
}

/* Animations */
.slide-left {
	opacity: 0;
	transform: translateX(-80px);
	transition: all 0.8s ease;
}

.slide-right {
	opacity: 0;
	transform: translateX(80px);
	transition: all 0.8s ease;
}

.slide-left.show,
.slide-right.show {
	opacity: 1;
	transform: translateX(0);
}

/* Mobile */
@media (max-width: 768px) {
	.service-row {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    padding: 15px;
    text-align: center;
  }
  .menu-logo {
    justify-content: center;
    margin-bottom: 10px;
  }
  .menu a {
    margin: 5px 10px;
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .firm-intro {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .firm-intro img {
    width: 100%; /* Responsive width */
    height: auto;
    margin-right: 0;
    margin-bottom: 20px;
  }
  .firm-intro .divider {
    display: none; /* Hide the vertical line on mobile */
  }
  .firm-intro .intro-text h1 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .services-container {
    grid-template-columns: 1fr; /* Single column */
    padding: 0 20px;
  }
  
  /* Fixing the large image in service-content */
  .service-content {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
  .service-content img {
    width: 100%;
    height: auto;
  }
  .service-content p {
    width: 100%; /* Removes fixed 840px width */
  }
}

@media (max-width: 768px) {
  .carousel {
    height: 250px; /* Shorter height for mobile screens */
  }
  .carousel .prev, .carousel .next {
    font-size: 14px;
    padding: 5px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 15px;
    width: 90%;
  }
  .modal-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .team-container {
    grid-template-columns: 1fr;
    /* single column on mobile */
  }

  .team-member img {
    width: 150px;
    height: 150px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .clients-track img {
    width: 100px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about,
  .footer-links,
  .footer-contact {
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 15px;
  }
}
