/* 
  Theme Colors
  Navy Blue: #0A1F44
  Gold: #D4AF37
  Dark Gray: #111827
  White: #FFFFFF
*/

:root {
  --navy: #1c2e23; /* Deep Hunter Green from PDF slide 2 */
  --gold: #ffb000; /* Vibrant Amber Gold from PDF cover */
  --gold-hover: #d99600;
  --green-accent: #559a5b; /* Forest Green Accent from PDF slide 2 */
  --dark-gray: #121e17; /* Very dark charcoal-green background */
  --light-gray: #f4f7f5; /* Light greenish-gray background */
  --white: #ffffff;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  overflow-x: hidden;
  max-width: 100%;
}

.font-outfit {
  font-family: 'Outfit', sans-serif;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

/* Colors */
.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.text-green-accent { color: var(--green-accent) !important; }
.text-dark-gray { color: var(--dark-gray) !important; }

.bg-navy { background-color: var(--navy) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-green-accent { background-color: var(--green-accent) !important; }
.bg-light-gray { background-color: var(--light-gray) !important; }
.bg-dark-gray { background-color: var(--dark-gray) !important; }

/* Buttons */
.btn-gold {
  background-color: var(--gold);
  color: var(--navy);
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: var(--navy);
}

/* Navbar */
.navbar {
  background-color: rgba(28, 46, 35, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(85, 154, 91, 0.2);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: #1c2e23 !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Mobile expanded navbar stays green */
.navbar-collapse.show,
.navbar-collapse.collapsing {
  background-color: #1c2e23 !important;
  padding: 1rem;
  border-radius: 0 0 12px 12px;
  border-top: 1px solid rgba(85, 154, 91, 0.2);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--gold);
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--dark-gray);
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(10,31,68,0.9) 0%, rgba(17,24,39,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Sections */
.section-padding {
  padding: 100px 0;
}

.section-title {
  position: relative;
  margin-bottom: 50px;
}

.section-title h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--navy);
}

.section-title.text-white h2 {
  color: var(--white);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--gold);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-title.text-start::after {
  margin: 15px 0 0;
}

/* Cards */
.service-card, .process-card, .team-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  border-bottom: 3px solid var(--gold);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(10, 31, 68, 0.05);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--navy);
  color: var(--gold);
}

/* AI Section */
.ai-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1a365d 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.ai-pulse {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, rgba(212,175,55,0) 70%);
  border-radius: 50%;
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 1; }
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0px 6px 15px rgba(0,0,0,0.4);
}

/* Footer */
.footer-links a {
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold) !important;
}

.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%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--gold);
  color: var(--navy) !important;
  transform: translateY(-3px);
}

/* Animations */
.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .hero-section {
    min-height: auto;
    padding: 150px 0 100px;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 25px;
  }

  /* Prevent any section from causing horizontal scroll */
  section,
  .hero-section,
  .ai-section,
  .testimonials-section,
  .cctv-banner-strip,
  footer {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Hero glass box padding fix on small screens */
  .hero-glass-box {
    padding: 2rem 1.25rem;
  }

  /* Banner strip text scale */
  .cctv-banner-strip h3 {
    font-size: 1.3rem !important;
  }
}

/* --- Added PFSI Corporate Profile Enhancements --- */

/* Hero glassmorphism overlay */
.hero-glass-box {
  background: rgba(28, 46, 35, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3.5rem;
  border-radius: 24px;
}

/* Infinite Scrolling Marquee */
.marquee-container {
  overflow: hidden;
  user-select: none;
  display: flex;
  gap: 4rem;
  padding: 30px 0;
  position: relative;
  width: 100%;
  max-width: 100vw; /* prevent overflow */
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  gap: 4rem;
  min-width: 100%;
  animation: scroll-marquee 40s linear infinite;
  will-change: transform; /* GPU compositing - avoids layout bleed */
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  height: 80px;
  width: 160px;
  flex-shrink: 0; /* stops items from squishing and overflowing */
}

.marquee-item img {
  max-height: 50px;
  max-width: 120px;
  object-fit: contain;
}

@keyframes scroll-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 4rem));
  }
}

/* Wrap the partner section to clip marquee overflow */
.bg-navy.overflow-hidden {
  overflow: hidden !important;
  max-width: 100vw;
}

/* Testimonials section styling */
.testimonials-section {
  background-color: var(--dark-gray);
  color: white;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--green-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-quote-icon {
  font-size: 2.5rem;
  color: var(--green-accent);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-client-meta {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.testimonial-client-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--green-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 15px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(85, 154, 91, 0.3);
}

.testimonial-client-name {
  font-weight: 600;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 2px;
}

/* Modern Card Hover Enhancements */
.service-card:hover {
  border-bottom: 3px solid var(--green-accent) !important;
}
.service-card:hover .service-icon {
  background: var(--navy) !important;
  color: var(--gold) !important;
}

/* Service card image zoom on hover */
.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

/* Light background text contrast overrides */
.bg-light-gray, 
.bg-light-gray h2, 
.bg-light-gray h3, 
.bg-light-gray h4, 
.bg-light-gray p,
.bg-light-gray .text-secondary,
.bg-light-gray .text-muted {
  color: #2b3d32 !important; /* Premium dark forest gray for contrast */
}
.bg-light-gray .section-title::after {
  background-color: var(--green-accent) !important;
}
