/* =============================
   Reset and Global Variables
============================= */

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --primary-color: #ff0000;
  --secondary-color: #000000;
  --light-color: #f2f2f2;
  --dark-color: #1a1a1a;
  --text-color: #111111;
  --text-light: #777777;
}

/* Ensure no horizontal overflow */
body, html {
  overflow-x: hidden;
  width: 100%;
}

/* Fix for AOS animations causing overflow */
[data-aos] {
  overflow: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: var(--text-color);
  overflow-x: hidden;
  height: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

/* =============================
   Navbar
============================= */

.navbar {
  background: rgba(15, 15, 30, 0.95);
  box-shadow: 0 2px 15px rgba(233, 69, 96, 0.3);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar-brand img {
  filter: none !important;
  mix-blend-mode: normal !important;
}

.navbar .nav-link {
  color: #fff !important;
  margin-left: 15px;
  font-weight: 500;
  position: relative;
  padding: 5px 0 !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar .nav-link:before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  visibility: hidden;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover:before,
.navbar .nav-link.active:before {
  visibility: visible;
  width: 100%;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #f2f2f2;
    padding: 1rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 600;
  }

  .navbar-nav .nav-link:hover {
    color: #000 !important;
  }
}

.navbar-toggler {
  border-color: transparent;
}

.navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 30px;
  height: 2px;
  background-color: #c9303e;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: #c9303e;
  left: 0;
}

.navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler-icon::after {
  top: 8px;
}

/* =============================
   Hero Section
============================= */

.hero {
  background: linear-gradient(rgba(26, 26, 46, 0.8), rgba(26, 26, 46, 0.8)),
              url('../img/london.jpeg') no-repeat center center / cover;
  color: #fff;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 0 15px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  animation: fadeInUp 1s ease-out;
  line-height: 1.2;
}

.hero-title .highlight {
  color: #ff0000; /* Red */
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 30px;
  color: #ffffff;
  animation: fadeInUp 1.5s ease-out;
}

/* Tablet size */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }
}


.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-down a {
  color: #fff;
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

.section-title {
  font-weight: 700;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  text-align: center;
  width: 100%;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  text-align: center;
}
.service {
  padding: 80px 0; /* Balanced spacing */
  text-align: center;
}
.service-card {
  background: #fff;
  padding: 20px;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.card.h-100 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.card.h-100:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.confirmation {
  padding: 80px 0; /* Balanced spacing */
  text-align: center;
}

/* Contact Section Bottom Padding */
/* Contact Section - Overall Layout */
.contact {
  padding: 80px 0; /* Balanced spacing */
  text-align: center;
}

/* Title & Subtext Alignment */
.contact .section-title {
  max-width: 700px;
  margin: 0 auto 40px auto; /* Centered and spaced below */
  padding: 0 20px;
}

.contact .section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.contact .section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Row Layout for Contact Boxes & Form */
.contact .row {
  justify-content: center;
  align-items: flex-start;
}

/* Form Centering */
.contact form {
  margin: 0 auto;
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .contact {
    padding: 60px 20px 100px 20px;
  }

  .contact .section-title h2 {
    font-size: 2rem;
  }

  .contact .section-title p {
    font-size: 1rem;
  }
}


.contact .info {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact .info-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.contact .info-box i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: inline-block;
}

.contact .info-box h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.contact .info-box p {
  margin-bottom: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.php-email-form {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.php-email-form input,
.php-email-form textarea {
  border-radius: 5px;
  font-size: 0.95rem;
  padding: 10px 15px;
}

.php-email-form input:focus,
.php-email-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.15rem rgba(233, 69, 96, 0.25);
}

.php-email-form button[type="submit"] {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.php-email-form button[type="submit"]:hover {
  background: #c72c4c;
  box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

.php-email-form .loading,
.php-email-form .error-message,
.php-email-form .sent-message {
  display: none;
  font-size: 0.95rem;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
}

.php-email-form .loading {
  color: var(--primary-color);
}

.php-email-form .error-message {
  background: #f8d7da;
  color: #721c24;
}

.php-email-form .sent-message {
  background: #d4edda;
  color: #155724;
}

footer {
  background: var(--secondary-color);
  color: #fff;
  padding: 60px 0 20px;
  margin-top: auto;
  width: 100%;
}

footer h5 {
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

footer h5:after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
  bottom: -10px;
  left: 0;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li a {
  color: #ccc;
  transition: all 0.3s ease;
}

footer ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: #fff;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.newsletter-form .input-group {
  border-radius: 30px;
  overflow: hidden;
}

.newsletter-form .form-control {
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.newsletter-form .form-control::placeholder {
  color: #ccc;
}

.newsletter-form .btn {
  border-radius: 0;
}

.btn {
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
}

.btn-primary:hover {
  background-color: #c72c4c;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

.btn-outline-light:hover {
  color: var(--primary-color);
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 100px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

@media (min-width: 992px) {
  .col-lg-5th {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

.minimal-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1200px) {
  .col-lg-5th {
    width: 20%;
    flex: 0 0 20%;
  }
}



/* =============================
   About Section
============================= */

.about {
  padding: 80px 0; /* Balanced spacing */
  text-align: center;
}

.about .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.about h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.about p.fst-italic {
  font-style: italic;
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about p {
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1rem;
  color: #333;
}

.about ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.5rem 0;
}

.about ul li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #2c3e50;
}

.about ul li i.ri-check-double-line {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.3rem;
  color: #27ae60;
}

.about img.img-fluid {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  object-fit: cover; /* Optional: crops if needed */
}


@media (max-width: 991px) {
  .about .row {
    display: flex;
    flex-direction: column;
  }
  .about .col-lg-6 {
    max-width: 100%;
    flex: 0 0 100%;
  }
  .about .order-1,
  .about .order-2 {
    order: unset !important;
  }
  main#main {
    padding-top: 50px !important;
  }
}

/* Custom Preloader Styles */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.loader-ring span {
  width: 16px;
  height: 16px;
  background: #e94560;
  border-radius: 50%;
  animation: bounce 5s infinite ease-in-out;
}

.loader-ring span:nth-child(2) { animation-delay: 1.25s; }
.loader-ring span:nth-child(3) { animation-delay: 2.5s; }
.loader-ring span:nth-child(4) { animation-delay: 3.75s; }
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px);
    opacity: 1;
  }
}

.loader-text {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 300;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
}

/* Client Mosaic Styles - Mobile Optimized with Original Animations */
.client-showcase {
  background-color: #f8f9fa;
  position: relative;
  padding: 2rem 0;
  overflow: hidden;
}

.client-showcase .container {
  padding-left: 15px;
  padding-right: 15px;
}

.client-showcase h2 {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 15px;
}

.client-mosaic {
  position: relative;
  width: 100%;
  margin: 0 auto;
  min-height: 300px;
  padding: 0 10px;
  box-sizing: border-box;
  perspective: 1000px; /* Preserved for 3D effects */
}

.client-logo {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Original easing */
  z-index: 1;
  overflow: hidden;
  opacity: 0.9;
  border: 1px solid rgba(0,0,0,0.05);
  will-change: transform;
  box-sizing: border-box;
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(30%) contrast(110%);
  transition: all 0.3s ease; /* Original image transition */
}

.client-logo:hover {
  transform: scale(1.15) rotate(0deg) !important; /* Original hover transform */
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 10;
  opacity: 1;
}

.client-logo:hover img {
  filter: grayscale(0%) contrast(100%); /* Original hover effect */
}

/* Original Animation Preserved Exactly */
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px) rotate(0deg);
  }
  to {
    opacity: 0.9;
    transform: translateY(0) rotate(var(--rotation));
  }
}

.client-logo {
  animation: floatIn 0.6s ease-out forwards;
  opacity: 0;
}

/* Mobile Responsiveness Additions */
@media (max-width: 1200px) {
  .client-mosaic {
    min-height: 350px;
  }
}

@media (max-width: 992px) {
  .client-logo {
    padding: 6px;
  }
}

@media (max-width: 768px) {
  .client-showcase {
    padding: 1.5rem 0;
  }
  
  .client-showcase h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .client-mosaic {
    min-height: 250px;
    padding: 0 8px;
    margin-left: -5px;
    margin-right: -5px;
    width: calc(100% + 10px);
  }
  
  .client-logo {
    padding: 6px;
    width: 60px !important;
    height: 60px !important;
  }
}

@media (max-width: 576px) {
  .client-showcase {
    padding: 1rem 0;
  }
  
  .client-showcase h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .client-mosaic {
    min-height: 200px;
    padding: 0 5px;
  }
  
  .client-logo {
    padding: 4px;
    width: 50px !important;
    height: 50px !important;
  }
}

@media (max-width: 400px) {
  .client-mosaic {
    margin-left: -3px;
    margin-right: -3px;
    width: calc(100% + 6px);
  }
  
  .client-logo {
    width: 45px !important;
    height: 45px !important;
  }
}