/* Global Variables */
:root {
  --primary-color: #052c65;
  /* Deep Navy Blue */
  --secondary-color: #dba916;
  /* Premium Gold */
  --light-bg: #f8f9fa;
  --text-main: #333;
}

body {
  padding-top: 70px;
  font-family: "Segoe UI", sans-serif;
  color: var(--text-main);
}

/* Navbar Custom Styles */
.navbar-custom {
  background-color: rgba(5, 44, 101, 0.95);
  /* High opacity for readability */
  backdrop-filter: blur(10px);
  padding: 15px 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-custom.scrolled {
  padding: 10px 0;
  background-color: rgba(5, 44, 101, 0.98);
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 0 10px;
  position: relative;
  transition: 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary-color) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-nav-cta {
  background: var(--secondary-color);
  color: var(--primary-color) !important;
  font-weight: 700;
  padding: 8px 25px;
  border-radius: 50px;
  margin-left: 15px;
  transition: 0.3s;
  text-decoration: none;
}

.btn-nav-cta:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* Hero Section Styles - Redesigned */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgb(5 44 101 / 50%) 0%, rgb(5 44 101 / 50%) 100%), url(../images/hero_bg.png) center / cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Animated Background Elements */
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(219, 169, 22, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
  background: linear-gradient(to right, #fff, #ddd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  font-weight: 300;
  animation: fadeUp 1s ease-out 0.3s backwards;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeUp 1s ease-out 0.6s backwards;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
  border-color: white;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-outline-light {
    width: 100%;
  }
}

/* Button Overrides */
.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #052c65;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #c99a12;
  border-color: #c99a12;
  color: #052c65;
}

.text-primary {
  color: var(--secondary-color) !important;
}

/* Services Section Redesign - Royal Style */
.services-section {
  background-color: #f9f9f9;
  padding: 100px 0;
  position: relative;
}

.service-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: left;
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--secondary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.4s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(5, 44, 101, 0.15);
  background: var(--primary-color);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon-wrapper {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: 0.4s;
  border: 2px solid #f0f0f0;
}

.service-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  transition: 0.4s;
}

.service-card:hover .service-icon-wrapper {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: rotateY(180deg);
}

.service-card:hover .service-icon {
  color: #fff;
  transform: rotateY(-180deg);
  /* Counter rotate to keep icon facing forward if needed, or let it spin */
}

.service-title {
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: 0.4s;
}

.service-card:hover .service-title {
  color: white;
}

.service-desc {
  color: #777;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  transition: 0.4s;
}

.service-card:hover .service-desc {
  color: rgba(255, 255, 255, 0.8);
}

.read-more-btn {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f4f4f4;
  border-radius: 30px;
  transition: 0.3s;
}

.service-card:hover .read-more-btn {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.read-more-btn i {
  transition: 0.3s;
}

.read-more-btn:hover i {
  transform: translateX(5px);
}

/* Clients Section */
.client-section {
  background: white;
  padding: 50px 0;
  overflow: hidden;
}

.logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-slide-track {
  display: flex;
  width: calc(250px * 8);
  /* 4 logos * 2 (duplicated) * width */
  animation: scroll 20s linear infinite;
}

.logo-slide {
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
}

.client-logo {
  max-width: 100%;
  max-height: 80px;
  opacity: 0.8;
  transition: opacity 0.3s;
  filter: grayscale(100%);
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-250px * 4));
  }
}

/* Gallery Section - Interactive Framed Grid */
.gallery-section {
  padding: 80px 0;
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  height: 300px;
  background: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  opacity: 0.9;
}

.gallery-item:hover img {
  transform: scale(1.1);
  opacity: 0.6;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(5, 44, 101, 0.9), transparent);
  opacity: 0;
  transition: 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption-box h5 {
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 5px;
  transform: translateY(20px);
  transition: 0.4s;
}

.gallery-caption-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
  transform: translateY(20px);
  transition: 0.4s 0.1s;
}

.gallery-item:hover .gallery-caption-box h5,
.gallery-item:hover .gallery-caption-box p {
  transform: translateY(0);
}

/* About Section Styles */
.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 25px;
}

.mission-quote {
  border-left: 4px solid var(--secondary-color);
  padding-left: 20px;
  font-style: italic;
  color: #333;
  margin: 30px 0;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 0 10px 10px 0;
}

.stats-row {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  flex: 1;
  border-top: 4px solid var(--primary-color);
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #777;
  font-weight: 600;
  text-transform: uppercase;
}

/* Contact Section Styles - Redesigned */
.contact-section {
  background-color: #f0f2f5;
  /* Light grey bg to make card pop */
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.contact-wrapper {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  display: flex;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info-panel {
  flex: 0 0 40%;
  background: var(--primary-color);
  color: white;
  padding: 50px 40px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Decorative Circles in Info Panel */
.contact-info-panel::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--secondary-color);
  border-radius: 50%;
  bottom: -40px;
  right: -40px;
  opacity: 0.2;
}

.contact-info-panel::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 10px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: 30px;
  right: 30px;
}

.info-header h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.info-content {
  margin-top: 40px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 35px;
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-right: 20px;
  flex-shrink: 0;
  transition: 0.3s;
}

.contact-detail-item:hover .contact-icon-box {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: scale(1.1);
}

.contact-text h6 {
  font-weight: 600;
  margin: 0 0 5px;
  font-size: 1.1rem;
}

.contact-text p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.4;
}

.social-links {
  margin-top: 60px;
}

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 15px;
  transition: 0.3s;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--primary-color);
}

.contact-form-panel {
  flex: 1;
  padding: 50px;
  background: #fff;
}

.form-header h4 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.styled-input-group {
  margin-bottom: 25px;
  position: relative;
}

.input-field {
  width: 100%;
  padding: 15px 20px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: 0.3s;
  font-size: 0.95rem;
}

.input-field:focus {
  background: #fff;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(219, 169, 22, 0.1);
}

.input-field::placeholder {
  color: #aaa;
}

.submit-btn-wrapper {
  margin-top: 10px;
}

.btn-send {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  padding: 15px 40px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-send:hover {
  background: #c99a12;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-info-panel,
  .contact-form-panel {
    flex: none;
    width: 100%;
    padding: 30px;
  }
}

/* Footer Section - Redesigned */
.footer-section {
  background-color: #021226;
  /* Very dark navy */
  color: #fff;
  padding-top: 80px;
  font-size: 0.95rem;
  position: relative;
}

.footer-widget h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 25px;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-widget h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background: var(--secondary-color);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social-links a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.footer-social-links a:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.footer-contact-info li {
  display: flex;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-info i {
  color: var(--secondary-color);
  margin-right: 15px;
  font-size: 1.1rem;
  margin-top: 4px;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  margin-top: 60px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin: 0 10px;
}

.footer-bottom a:hover {
  color: var(--secondary-color);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: white;
  font-size: 2rem;
}

/* Why Choose Us Icons */
.feature-icon {
  font-size: 2.5rem;
  color: #0d6efd;
  margin-bottom: 20px;
}