/* =========== Base =========== */
:root {
  --primary-dark: #0a1628;
  --accent-gold: #d4a44a;
  --muted: #64748b;
  --white: #fff;
  --green: #25d366;
  --black: #0a1628;
  --gold: #d4a44a; /* Professional gold - justice & excellence */
  --law-blue: #1a365d; /* Deep navy - trust & authority */
  --light-blue: #234876; /* Royal blue - technology & professionalism */
  --dark-navy: #0d1b2a; /* Darkest background */
  --slate: #64748b; /* Neutral text */
  --light-slate: #94a3b8; /* Secondary text */
}
* {
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  background: #0d1b2a;
  -webkit-font-smoothing: antialiased;
}


/* Custom Toggler for Mobile */
.custom-toggler {
  border: none;
  background-color: transparent !important;
  padding: 0;
  outline: none;
}

.custom-toggler:focus {
  box-shadow: none;
}

.toggle-icon {
  font-size: 24px;
  color: var(--gold); /* Gold color for the icon */
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

/* Toggle icon animation when menu is open */
.toggle-icon.fa-xmark {
  transform: rotate(90deg);
}

.toggle-icon.fa-bars {
  transform: rotate(0deg);
}

/* Buttons */
.btn-gold {
  background: var(--gold);
  color: #000;
  font-weight: bold;
  padding: 10px 22px;
  border-radius: 6px;
}

/* HERO PARALLAX */
/* HERO PARALLAX */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;   /* Center horizontally */
  text-align: center;         /* Center text */
  width: 100%;
  height: 100vh;              /* Full height hero */
  overflow: hidden;
}

/* Background image */
.hero-overlay {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Hero text container */
.hero-inner {
  position: absolute;
  z-index: 2;
  padding: 0 20px;            /* Prevent text from touching edges */
  max-width: 900px;           /* Clean width */
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
}

/* MAIN HERO TITLE */
.hero .display-5 {
  font-weight: 700;
  font-size: 3rem;
  line-height: 4rem;
  margin-bottom: 20px;
  color: white;
}

/* HERO BUTTON FIX */
.hero .btn-gold {
  margin-top: 20px;
  display: inline-block;
  z-index: 3;
}


/* Quick Whatsapp */
.whatsapp-quick {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--green);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.18);
  z-index: 999;
}
.whatsapp-quick:hover {
  transform: scale(1.05);
}

/* Section titles */
.section-title {
  font-weight: 700;
  font-size: 1.6rem;
}
.section-title + p {
  color: var(--muted);
}

/* Remove margin between hero and services */
main.mt-5 {
  margin-top: 0 !important;
}

/* SERVICE CARDS */
#services {
  background-color: #0d1b2a;
  margin-top: 0 !important;
  padding-top: 60px;
}
.service-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #1a365d;
  border: 2px solid rgba(49, 49, 75, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
  color: var(--white);
}
#service-cardma{
  margin-left: 0;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(10, 10, 20, 0.08);
}
.service-card .icon {
  color: var(--accent-gold);
}
.service-card .icon i:hover {
  color: #10a134;
  transform: scale(1.1);
}

.service-card .card-body {
  padding: 28px;
}

/* Counters */
.counters {
  background: #1a365d;
  padding: 48px 0;
}
.counter {
  font-size: 2.1rem;
  font-weight: 800;
}
.counter-label {
  opacity: 0.85;
  margin-top: 6px;
  font-weight: 600;
}

/* Logos slider (CSS marquee-like) */
.logos-wrap {
  overflow: hidden;
}
.logos {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: scrollLogos 18s linear infinite;
}
.logos img {
  height: 100px;
  opacity: 0.9;
  filter: grayscale(20%);
  transition: transform 0.25s;
}
.logos img:hover {
  transform: scale(1.05);
}
@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.clients{
  background: #1a365d;
}

/* Testimonials */
.testimonial p {
  font-size: 1.05rem;
  color: var(--white)
}
.testimonials{
  background-color: #0d1b2a;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

/* Book CTA */
.book-section {
  position: relative;
  padding: 80px 0;
  background-attachment: fixed;
  background-size: cover;
}
.book-section .overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.55);
}
.book-section .container {
  position: relative;
  z-index: 2;
}

/* FOOTER */
:root {
  --gold: #d4a44a;
}

/* Button Styles - Matching Home Page */
.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 16px;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: black;
}

/* Footer styles are now in home.css - removed duplicates */

/* Responsive tweaks */
@media (max-width: 992px) {
  .hero {
    height: 420px;
    background-attachment: scroll;
  }
  
  .logos {
    animation-duration: 26s;
  }

  .logo {
    /* Set right margin of the logo container */
    margin-right: 5px; 
    
    flex-direction: column; 
    align-items: flex-start;
    gap: 0; /* Remove gap */
  }
 
  .alpha-symbol img {
    /* Nudge the image slightly to the left to reduce left margin */
    margin-left: -5px; 
    width: 80px; /* Adjusted size for better mobile fit */
  }
 
  .logo-text {
    text-align: left;
    font-size: 14px; /* Slightly smaller text on mobile */
    margin-top: 5px; /* Add slight separation */
    
    /* Nudge the text slightly to the left to reduce left margin */
    margin-left: -5px; 
  }

  /* Mobile Menu Background */
  .navbar-collapse {
    background-color: var(--light-blue); /* Dark background for the expanded menu */
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }

  .nav-link {
    margin-left: 0;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }

  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .nav-link::after {
    display: none; /* Remove underline on mobile view */
  }

  .btn-gold {
    width: 100%;
    margin-top: 15px !important;
  }
}
@media (max-width: 576px) {
  .hero {
    height: 360px;
  }
  .navbar .nav-link {
    font-size: 0.9rem;
  }
  .logos img {
    height: 36px;
  }
}

/* small accessibility focus */
.nav-link:focus {
  outline: 2px solid rgba(212, 175, 55, 0.18);
  outline-offset: 2px;
}
/* MODAL STYLE */
.service-modal-content {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  animation: modalSlide 0.35s ease-out;
}

@keyframes modalSlide {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.modal-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* Fullscreen modal on mobile */
@media (max-width: 576px) {
  .modal-dialog {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    height: 100%;
  }
  .modal-content {
    height: 100%;
    border-radius: 0 !important;
  }
  .modal-img {
    height: 200px;
  }
}
@media (max-width: 991.98px){
  .hero-inner {
    margin-top: 100px;         /* Clean width */
  }
 #btnhero {
    margin: 5px;
  }
  .logos img {
    height: 100px;
    opacity: 0.9;
    filter: grayscale(20%);
    transition: transform 0.25s;
  }
  #service-cardma{
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 15px;
}
.testimonial p {
  margin-left: 15px;
  margin-right: 15px;
}
}
/* --- FIX HORIZONTAL SCROLLING (DO NOT CHANGE ANYTHING ELSE) --- */

/* Prevent any container from becoming wider than the screen */
* {
  box-sizing: border-box;
}

/* Fix for grids or flex items pushing outside screen */
body, html {
  overflow-x: hidden !important;
  width: 100% !important;
}


/* Additional Mobile Responsive Fixes */
@media (max-width: 576px) {
  .hero .display-5 {
    font-size: 1.8rem;
    line-height: 2.2rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .service-card .card-body {
    padding: 20px;
  }
  
  .counter {
    font-size: 1.6rem;
  }
  
  .counter-label {
    font-size: 0.85rem;
  }
  
  .footer {
    padding: 40px 0 15px;
  }
  
  .footer-title {
    font-size: 18px;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .book-section {
    padding: 50px 0;
  }
}

/* Tablet Responsive */
@media (min-width: 577px) and (max-width: 991px) {
  .hero .display-5 {
    font-size: 2.2rem;
    line-height: 2.8rem;
  }
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}