/*
Theme Name: SJ Forensic 
Author: trivia info it
Author URI: http://trivia.co.in/
Description: Bootstrap based wp theme for Saroj Jagdish Forensic LLP, SURAT
Version: 3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  /* Bootstrap Native Overrides */
  --bs-primary: #2e4682;
  --bs-primary-rgb: 46, 70, 130;
  --bs-dark: #0a0f1c;
  --bs-dark-rgb: 10, 15, 28;

  /* Color Palette */
  --primary: #2e4682; /* Logo Dark Blue */
  --primary-light: #4667ba;
  --primary-dark: #1f3059;
  --secondary: #888888; /* Logo Grey */
  --accent: #00b4d8; /* Tech/Futuristic touch */

  --dark: #0a0f1c; /* Deep dark for hero/footer */
  --dark-alt: #121b2f; /* Slightly lighter dark */

  --light: #f8f9fa;
  --white: #ffffff;

  /* Typography */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
}

/*Wordpress editor styles start*/

.entry-content img {
  margin: 0 0 1.5em 0;
}
.alignleft,
img.alignleft {
  margin-right: 1.5em;
  display: inline;
  float: left;
}
.alignright,
img.alignright {
  margin-left: 1.5em;
  display: inline;
  float: right;
}
.aligncenter,
img.aligncenter {
  margin-right: auto;
  margin-left: auto;
  display: block;
  clear: both;
}
.alignnone,
img.alignnone {
  /* not sure about this one */
}
.wp-caption {
  margin-bottom: 1.5em;
  text-align: center;
  padding-top: 5px;
}
.wp-caption img {
  border: 0 none;
  padding: 0;
  margin: 0;
}
.wp-caption p.wp-caption-text {
  line-height: 1.5;
  font-size: 10px;
  margin: 0;
}
.wp-smiley {
  margin: 0 !important;
  max-height: 1em;
}
blockquote.left {
  margin-right: 20px;
  text-align: right;
  margin-left: 0;
  width: 33%;
  float: left;
}
blockquote.right {
  margin-left: 20px;
  text-align: left;
  margin-right: 0;
  width: 33%;
  float: right;
}

/*Wordpress editor styles end*/

body {
  font-family: var(--font-body);
  color: #333;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

.text-primary-light {
  color: var(--primary-light) !important;
}
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent) 100%
  ) !important;
  border: none !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--primary) 100%
  ) !important;
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.5);
  transform: translateY(-2px);
  color: var(--white) !important;
}
.tracking-wide {
  letter-spacing: 2px;
}

/* ==========================================================================
   Global Header
   ========================================================================== */
#mainNav {
  transition: all 0.3s ease;
}
#mainNav .nav-link {
  color: #444;
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--primary);
}
#mainNav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
  transform: scaleX(1);
}

/* Mega Menu Dropdown */
.dropdown-mega {
  min-width: 280px;
  padding: 1rem 0;
}
.dropdown-item {
  padding: 0.5rem 1.5rem;
  font-size: 0.95rem;
}
.dropdown-header {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 85vh;
  background-color: var(--dark);
  overflow: hidden;
}
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(46, 70, 130, 0.6),
      transparent 60%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(0, 180, 216, 0.25),
      transparent 60%
    );
  z-index: 0;
}
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
}
.text-shadow {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Trust & Accreditation Bar
   ========================================================================== */
.trust-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.trust-item h6 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   Intro Section
   ========================================================================== */
.intro-link {
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}
.intro-link:hover {
  border-bottom: 2px solid var(--primary);
}
.floating-badge {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.service-card {
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-color: var(--white);
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(46, 70, 130, 0.1) !important;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.explore-link .transition-transform {
  transition: transform 0.3s ease;
}
.service-card:hover .explore-link .transition-transform {
  transform: translateX(5px);
}

/* ==========================================================================
   Process Section (Chain of Custody)
   ========================================================================== */
.timeline-node {
  box-shadow: 0 0 0 8px rgba(46, 70, 130, 0.3);
  transition: all 0.3s ease;
}
.timeline-step:hover .timeline-node {
  box-shadow: 0 0 0 12px rgba(46, 70, 130, 0.5);
  transform: scale(1.1);
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why-us-item i {
  width: 32px;
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-links a {
  transition: all 0.3s ease;
}
.footer-links a:hover {
  color: var(--white) !important;
  opacity: 1 !important;
  padding-left: 5px;
}

/* ==========================================================================
   Hero 3D Depth Element
   ========================================================================== */
.hero-3d-scene {
  perspective: 1200px;
  width: 350px;
  height: 350px;
  position: relative;
  z-index: 10;
}
.hero-3d-object {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(15deg) rotateY(-25deg);
}
.hero-3d-object .layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}
.layer-back {
  background: rgba(46, 70, 130, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.3);
  transform: translateZ(-80px);
  box-shadow: 0 0 50px rgba(0, 180, 216, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.layer-mid {
  transform: translateZ(20px);
}
.logo-3d {
  font-size: 11rem;
  color: rgba(0, 180, 216, 0.9);
  filter: drop-shadow(0 0 20px rgba(0, 180, 216, 0.5));
}
.layer-front {
  transform: translateZ(120px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  overflow: hidden;
}
.scanner-bar {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  box-shadow:
    0 0 20px var(--accent),
    0 0 40px var(--accent);
  opacity: 0.8;
}
.data-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--white);
}
.node-1 {
  top: 20%;
  right: 15%;
}
.node-2 {
  bottom: 25%;
  left: 20%;
  background: var(--primary-light);
  box-shadow: 0 0 12px var(--primary-light);
}
.node-3 {
  top: 60%;
  right: 25%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* ==========================================================================
   CTA Banner Section
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.04);
  transform: rotate(30deg);
}
.cta-banner::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 40%;
  height: 200%;
  background: rgba(0, 180, 216, 0.05);
  transform: rotate(30deg);
}

/* ==========================================================================
   Trust Bar Hover Effects
   ========================================================================== */
.trust-item {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 1rem;
  border-radius: 12px;
}
.trust-item:hover {
  transform: translateY(-8px) scale(1.05);
  background: var(--white);
  box-shadow: 0 10px 25px rgba(46, 70, 130, 0.1);
}
.trust-item i {
  transition: all 0.3s ease;
}
.trust-item:hover i {
  transform: scale(1.2) rotate(10deg);
  color: var(--accent) !important;
}

/* ==========================================================================
   Intro Section Image Hover
   ========================================================================== */
.group:hover .intro-img,
.image-wrapper:hover .intro-img {
  transform: scale(1.08);
}
.intro-img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.overlay-glass {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(10, 15, 28, 0.7), transparent 60%);
  pointer-events: none;
}

/* ==========================================================================
   Process Section Hover Effects
   ========================================================================== */
.timeline-step {
  cursor: default;
}
.timeline-step h5 {
  transition: color 0.3s ease;
}
.timeline-node {
  transition: all 0.3s ease;
}
.timeline-step:hover h5 {
  color: var(--accent) !important;
}
.timeline-step:hover .timeline-node {
  background-color: var(--accent) !important;
  box-shadow: 0 0 0 12px rgba(0, 180, 216, 0.25) !important;
  transform: scale(1.2);
}

/* ==========================================================================
   Why Us Hover Effects (Card Style)
   ========================================================================== */
.why-us-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.why-us-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 70, 130, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.why-us-card:hover {
  transform: translateX(10px) translateY(-5px);
  border-color: var(--primary) !important;
  box-shadow: 0 15px 35px rgba(46, 70, 130, 0.1) !important;
}
.why-us-card:hover::before {
  opacity: 1;
}
.why-us-card .icon-box {
  transition: all 0.4s ease;
}
.why-us-card:hover .icon-box {
  color: var(--accent) !important;
  transform: scale(1.2) rotate(-5deg);
}

/* ==========================================================================
   Advanced CTA Banner Styles
   ========================================================================== */
.cta-banner {
  background-color: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
/* Override simple gradient pseudo elements from earlier */
.cta-banner::before,
.cta-banner::after {
  display: none;
}
.cta-bg-shape {
  position: absolute;
  filter: blur(90px);
  z-index: 0;
  border-radius: 50%;
  animation: pulseShape 10s infinite alternate ease-in-out;
}
.shape-1 {
  top: -30%;
  left: -10%;
  width: 60%;
  height: 120%;
  background: rgba(46, 70, 130, 0.7);
}
.shape-2 {
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 130%;
  background: rgba(0, 180, 216, 0.5);
  animation-delay: -5s;
  animation-duration: 12s;
}
@keyframes pulseShape {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(40px, -40px);
  }
}
.cta-glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.hover-lift {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================================================
   Certifications Section
   ========================================================================== */
.cert-badge {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
}
.cert-badge:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(46, 70, 130, 0.1);
  border-color: var(--primary) !important;
  background-color: var(--white) !important;
}
.cert-badge i {
  transition: transform 0.4s ease;
}
.cert-badge:hover i {
  transform: scale(1.15) rotate(5deg);
  color: var(--accent) !important;
}

/* ==========================================================================
   Vibrancy & Utility Classes
   ========================================================================== */
.bg-gradient-primary {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent) 100%
  ) !important;
}
.text-gradient-light {
  background: linear-gradient(135deg, var(--white) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.hover-lift-subtle {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.hover-lift-subtle:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 180, 216, 0.15) !important;
  border-color: rgba(0, 180, 216, 0.3) !important;
}

/* ==========================================================================
   Group Hover Utilities
   ========================================================================== */
.group:hover .group-hover-opacity-100 {
  opacity: 1 !important;
}
.transition-all {
  transition: all 0.4s ease;
}

/* ==========================================================================
   Responsive Logo Sizing
   ========================================================================== */
.nav-logo {
  height: 95px;
  width: auto;
  transition: height 0.3s ease;
}

/* Shrink logo on scroll (when navbar py-3 changes to py-2) */
#mainNav.py-2 .nav-logo {
  height: 70px;
}

@media (max-width: 991px) {
  .nav-logo {
    height: 75px;
  }
  #mainNav.py-2 .nav-logo {
    height: 60px;
  }
}

/* Global Rich Content Styling for Pages */
.about-content, .service-content, .rich-content {
    font-family: var(--bs-body-font-family);
}
.about-content h2, .service-content h2, .rich-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}
.about-content h2::after, .service-content h2::after, .rich-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}
.about-content h3, .service-content h3, .rich-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}
.about-content p, .service-content p, .rich-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}
.about-content ul, .service-content ul, .rich-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
    margin-top: 1rem;
}
.about-content ul li, .service-content ul li, .rich-content ul li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #444;
}
.about-content ul li::before, .service-content ul li::before, .rich-content ul li::before {
    content: '\f058'; /* FontAwesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary);
    font-size: 1.25rem;
}
.about-content .quote, .service-content .quote, .rich-content .quote {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.05) 0%, rgba(0, 119, 182, 0.05) 100%);
    border-left: 5px solid var(--primary);
    border-radius: 0 1rem 1rem 0;
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 500;
    color: var(--primary-dark);
    margin: 3rem 0;
    padding: 2.5rem !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    line-height: 1.7;
}

/* ==========================================================================
   Artistic Fingerprint Statement Section
   ========================================================================== */
.quote-statement-section {
    background: #ffffff;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.statement-img-card {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(46, 70, 130, 0.06);
    border: 1px solid rgba(46, 70, 130, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.statement-img-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(46, 70, 130, 0.1);
}