/*
   NexGen Digital - Custom Stylesheet
   Theme: Premium Dark Agency
   Colors: Navy (#0B0F2F), Blue (#3B82F6), Purple (#7C3AED)
*/

:root {
  --bg-navy: #0b0f2f;
  --bg-navy-light: #121735;
  --primary-blue: #ff3b3b;
  /* Aliased to red to avoid breaking old classes */
  --primary-red: #ff3b3b;
  --primary-purple: #ff1f1f;
  --text-white: #ffffff;
  --text-muted: #cccccc;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-hero: linear-gradient(135deg, #0b0f2f 0%, #121735 100%);
  --gradient-primary: linear-gradient(90deg, #ff3b3b 0%, #ff1f1f 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-navy);
  color: var(--text-white);
  scroll-behavior: smooth;
}

.bg-navy {
  background-color: var(--bg-navy);
}

.bg-navy-light {
  background-color: var(--bg-navy-light);
}

.text-primary {
  color: var(--text-white) !important;
}

.btn-primary,
.btn-custom {
  background: #ff3b3b;
  color: #fff;
  border-radius: 5px;
  padding: 10px 25px;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-custom:hover {
  background: #ff1f1f;
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255, 59, 59, 0.6);
}

.text-gradient {
  color: #ff3b3b;
  font-weight: 800;
}

.text-danger {
  color: #ff3b3b !important;
}

.py-100 {
  padding: 100px 0;
}

.fw-extra-bold {
  font-weight: 800;
}

.text-light-50 {
  color: var(--text-muted);
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-navy);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Navbar */
.navbar {
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#mainNav {
  transition: all 0.3s ease;
  background: transparent;
}

#mainNav.navbar-shrink {
  padding: 10px 0;
  background: rgba(18, 23, 53, 0.75) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Slightly lighter navy for better logo contrast */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

#mainNav .nav-link {
  font-weight: 500;
  color: #fff !important;
  position: relative;
  transition: 0.3s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #ff3b3b !important;
}

#mainNav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

#mainNav .nav-link :hover::after {
  transform: scaleX(1);
}

@media (max-width: 991px) {
  .navbar {
    padding: 10px 20px !important;
  }

  .navbar-collapse {
    background: rgba(18, 23, 53, 0.95);
    backdrop-filter: blur(10px);
    margin-top: 0;
    padding: 20px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: flex-start !important;
  }

  .navbar-nav {
    text-align: center;
    width: 100%;
    margin-top: 0 !important;
  }

  .navbar-nav .nav-item {
    margin: 8px 0;
  }

  .navbar-nav .nav-item:first-child {
    margin-top: 0;
  }

  .navbar-nav .nav-link::after {
    left: 30%;
    right: 30%;
  }
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  padding-top: 120px;
  background: var(--gradient-hero);
  position: relative;
  display: flex;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-section {
    text-align: center;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-section .d-flex {
    justify-content: center !important;
  }

  .hero-section .lead {
    text-align: justify !important;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(59, 130, 246, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(124, 58, 237, 0.15) 0%,
      transparent 40%
    );
  z-index: 0;
}

.hero-image-wrapper {
  position: relative;
  perspective: 1000px;
}

.hero-image-wrapper img {
  transform: rotateY(-10deg) rotateX(5deg);
  transition: all 0.5s ease;
  border: 1px solid var(--glass-border);
}

.hero-image-wrapper:hover img {
  transform: rotateY(0deg) rotateX(0deg);
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  animation: float 4s ease-in-out infinite;
}

.badge-1 {
  top: 10%;
  right: -20px;
}

.badge-2 {
  bottom: 10%;
  left: -20px;
  animation-delay: 2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Service Card */
/* .service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
} */

/* Service Card */
.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-10px); /* Premium lift */
  border-color: rgba(59, 130, 246, 0.8); /* Brighter border */
  box-shadow:
    0 15px 35px rgba(59, 130, 246, 0.3),
    0 0 15px rgba(59, 130, 246, 0.2); /* Stronger glow */
}

/* Icon Box */
.service-card .icon-box {
  width: 70px;
  height: 70px;
  background: var(--glass-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  font-size: 30px;
  margin-bottom: 20px;
}

.icon-box i {
  transition: 0.3s;
}

.service-card:hover .icon-box i,
.icon-box:hover i {
  color: #ff3b3b;
}

/* Heading */
/* .service-card h4 {
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 18px;
} */
.service-card h4 {
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

/* Paragraph */
/* .service-card p {
    text-align: justify;
    line-height: 1.8;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
} */
.service-card p {
  text-align: center;
  line-height: 1.7;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
}
/* Read More */
.read-more {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 991px) {
  .service-card {
    text-align: center;
  }

  .service-card .icon-box {
    margin-left: auto;
    margin-right: auto;
  }

  .service-card p {
    text-align: center;
  }
}

/* Portfolio Card Layout */
.portfolio-item {
  background:
    linear-gradient(#0f172a, #0f172a) padding-box,
    linear-gradient(90deg, #00c6ff, #7b2ff7, #ff3b3b, #00c6ff) border-box;
  background-size:
    100% 100%,
    300% 100%;
  border: 2px solid transparent;
  border-radius: 15px;
  overflow: hidden;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow:
    0 0 10px rgba(0, 198, 255, 0.4),
    0 0 20px rgba(123, 47, 247, 0.3);
}

@keyframes borderMove {
  0% {
    background-position:
      100% 0,
      0% 0;
  }
  100% {
    background-position:
      100% 0,
      100% 0;
  }
}

.portfolio-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 0 20px rgba(0, 198, 255, 0.6),
    0 0 40px rgba(123, 47, 247, 0.5);
}

.portfolio-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
  display: block;
  transition: transform 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-body {
  padding: 25px;
}

.portfolio-tag {
  display: inline-block;
  color: var(--color-red-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.portfolio-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.portfolio-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.8;
  margin-top: 15px;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .portfolio-body {
    text-align: center;
  }
}

.portfolio-read-more {
  color: var(--color-red-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.portfolio-read-more:hover {
  color: #ffffff;
  gap: 12px;
}

.portfolio-link {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-link {
  transform: translate(-50%, -50%) scale(1);
}

/* Process */
.process-step {
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 90px;
  height: 90px;
  border: 2px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  margin: 0 auto;
  position: relative;
  background: var(--bg-navy);
  transition: all 0.3s ease;
}

.process-step:hover .step-icon {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: rotateY(360deg);
}

@media (max-width: 991px) {
  #about,
  #about .col-lg-6 {
    text-align: center !important;
  }

  .about-image-stack {
    margin-bottom: 50px;
  }
  .about-image-stack:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
      0 0 20px rgba(0, 198, 255, 0.6),
      0 0 40px rgba(123, 47, 247, 0.5);
  }

  #about .btn {
    margin: 10px auto !important;
    display: inline-block;
  }

  .feature-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .feature-item .icon-box-sm {
    margin-right: 0 !important;
    margin-bottom: 15px !important;
  }

  .section-bg-services .row.align-items-center {
    text-align: center;
  }
}

@media (max-width: 991px) {
  .hero-image-wrapper {
    margin-top: 40px;
  }

  .hero-image-wrapper img {
    max-width: 100%;
    transform: none !important;
  }

  .floating-badge {
    display: none;
  }
}

.step-num {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 30px;
  height: 30px;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.process-row::before {
  content: "";
  position: absolute;
  top: 45px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--glass-border);
  z-index: 0;
  display: none;
}

@media (min-width: 768px) {
  .process-row::before {
    display: block;
  }
}

.contact-wrapper {
  background: #0f0f17;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.15);
}

.contact-info-panel {
  background: #1e1b4b;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form-panel {
  background: #0f0f17;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#contactForm {
  width: 100%;
  max-width: 500px;
}

.contact-subtext {
  color: #cbd5e1 !important;
}

.info-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info-list .d-flex:hover .info-icon {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  color: #8b5cf6;
}

.form-control {
  background: #181824;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 15px;
  border-radius: 12px;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: #8b5cf6;
  color: white;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.form-floating label {
  color: #94a3b8;
}

.btn-contact {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: white;
  border: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4);
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #8b5cf6;
  border-color: #8b5cf6;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

@media (max-width: 991px) {
  .contact-info-panel {
    text-align: center !important;
  }

  .contact-info-list .d-flex {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .contact-info-list .info-icon {
    margin-right: 0 !important;
    margin-bottom: 15px !important;
  }

  .social-links {
    justify-content: center !important;
  }
}

/* Premium Footer Setup */
.premium-footer {
  background: linear-gradient(135deg, #05081c 0%, #0b0f2f 100%);
  padding: 80px 60px;
  color: #b0b0b0;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
}

.premium-footer h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 25px;
  font-size: 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col p,
.contact-item {
  color: #b0b0b0;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 0;
}

.contact-item {
  margin-bottom: 16px !important;
}

.footer-email {
  color: #b0b0b0;
  text-decoration: none;
  transition: 0.3s;
  cursor: pointer !important;
  pointer-events: auto !important;
  display: inline-block;
}

.footer-email:hover {
  color: #ff3b3b !important;
}

.footer-links li {
  margin-bottom: 18px;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  transition: 0.3s;
  font-size: 16px;
}

.footer-links a:hover {
  color: #ff3b3b;
  padding-left: 5px;
}

@media (min-width: 992px) {
  .footer-grid {
    text-align: center;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    justify-content: center;
    width: 100%;
  }

  .footer-links {
    padding-left: 0;
    list-style: none;
  }

  .social-icons {
    justify-content: center;
    width: 100%;
  }
}

/* Footer Bottom Links */
.footer-bottom-links a {
  color: #b0b0b0;
  text-decoration: none;
  transition: 0.3s;
  font-size: 14px;
}

.footer-bottom-links a:hover {
  color: #ff3b3b;
}

.premium-footer .small {
  font-size: 14px !important;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
  color: #ff3b3b;
  border-color: #ff3b3b;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 59, 59, 0.4);
}

/* Newsletter */
.newsletter-group {
  background: transparent;
}

.newsletter-input {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50px 0 0 50px;
  color: #ffffff;
  padding: 12px 20px;
  font-size: 16px;
}

.newsletter-input:focus {
  box-shadow: none;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
}

.newsletter-input::placeholder {
  color: #888888;
}

.newsletter-btn {
  background: #ff3b3b;
  color: #ffffff;
  border: none;
  border-radius: 0 50px 50px 0;
  padding: 12px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 16px;
}

.newsletter-btn:hover {
  background: #b00000;
  color: #ffffff;
  transform: scale(1.02);
}

/* Responsive Footer */
@media (max-width: 991px) {
  .premium-footer {
    padding: 60px 20px;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .contact-item i {
    margin-right: 0 !important;
    margin-bottom: 10px;
  }

  .footer-links {
    text-align: center;
    padding-left: 0;
  }

  .social-icons {
    justify-content: center !important;
  }

  .newsletter-group {
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-col p,
  .footer-links a,
  .newsletter-input,
  .newsletter-btn {
    font-size: 15px;
  }
}

@media (max-width: 575px) {
  .premium-footer {
    padding: 50px 30px;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .social-icons {
    justify-content: center;
  }
  .contact-info p span.ms-4 {
    margin-left: 0 !important;
  }
  .footer-bottom-links {
    margin-top: 15px;
  }
  .premium-footer h5 {
    font-size: 19px;
  }
}

/* Floating Buttons */
.floating-btn {
  position: fixed;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.back-to-top {
  bottom: 30px;
  background: var(--gradient-primary);
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-5px);
  color: white;
}

/* Advanced Components UI */
.icon-box-sm {
  width: 50px;
  height: 50px;
  font-size: 20px;
}

.feature-item {
  padding: 15px;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-item:hover {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  transform: translateX(10px);
}

.filter-blur {
  filter: blur(80px);
}

/* Blog Section */
.blog-card {
  transition: all 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-blue) !important;
}

.blog-img-wrapper img {
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
  transform: scale(1.1);
}

.blog-title {
  transition: color 0.3s ease;
}

/* Testimonial Section Refinement */
.testimonial-card {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff3b3b, #ff1f1f);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(255, 59, 59, 0.3);
}

.testimonial-text {
  font-size: 1.45rem !important;
  line-height: 1.8 !important;
  margin-bottom: 35px !important;
  color: rgba(255, 255, 255, 0.95);
}

.testimonial-card h5 {
  font-size: 1.35rem;
  margin-bottom: 10px !important;
}

.testimonial-card span {
  font-size: 1rem !important;
  letter-spacing: 0.5px;
}

.blog-title:hover {
  color: var(--primary-blue) !important;
}

/* FAQ Accordion */
.custom-accordion .accordion-button {
  transition: all 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed) {
  color: var(--text-white);
  background-color: var(--primary-blue);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.custom-accordion .accordion-button::after {
  filter: invert(1);
  transition: transform 0.3s ease;
}

/* SVG Dividers */
.svg-wave-divider {
  line-height: 0;
  margin-top: -1px;
  margin-bottom: -1px;
}

/* Pulse Button Animation */
.pulse-btn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Responsiveness */
@media (max-width: 991px) {
  .py-100 {
    padding: 60px 0;
  }

  .hero-section {
    min-height: auto;
    padding-bottom: 80px;
  }

  /* Mobile Navbar Fixes */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 47, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 40px;
    border-bottom: 1px solid var(--glass-border);
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .navbar-nav {
    align-items: flex-start !important;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 15px 0 !important;
    font-size: 18px;
  }

  #mainNav .nav-link::after {
    display: none;
  }

  .text-logo {
    font-size: 24px;
  }

  .brand-subtitle {
    font-size: 11px;
  }
}

/* Custom Background Images Section */
.section-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.section-bg > .container {
  position: relative;
  z-index: 1;
}

.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.section-bg-hero {
  background-image:
    linear-gradient(rgba(11, 15, 47, 0.85), rgba(11, 15, 47, 0.95)),
    url("../assets/images/hero_bg.png");
}

.section-bg-services {
  background-image:
    linear-gradient(rgba(11, 15, 47, 0.85), rgba(11, 15, 47, 0.95)),
    url("../assets/images/services_bg.png");
}

.section-bg-about {
  background-image:
    linear-gradient(rgba(11, 15, 47, 0.7), rgba(11, 15, 47, 0.85)),
    url("../assets/images/about_bg.png");
}

.section-bg-portfolio {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)),
    url("../assets/images/stats_bg.png");
}

.section-bg-cta {
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.9)),
    url("../assets/images/cta_bg.png");
  filter: brightness(0.9);
  padding: 100px 20px !important;
}

.cta-heading {
  color: #ffffff !important;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

.cta-paragraph {
  color: #d0d0d0 !important;
  max-width: 800px;
}

.btn-cta-red {
  background: linear-gradient(45deg, #ff3b3b, #ff0000);
  color: #ffffff !important;
  border: none;
  transition: all 0.3s ease;
}

.btn-cta-red:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
  color: #ffffff !important;
}

.section-bg-contact {
  background-image:
    linear-gradient(rgba(11, 15, 47, 0.85), rgba(11, 15, 47, 0.95)),
    url("../assets/images/contact_bg.png");
}

.section-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 28, 28, 0.7);
  /* Updated to match new dark grey theme */
  pointer-events: none;
  z-index: 0;
}

/* .logo-img {
    height: 85px;
    width: auto;
    display: block;
    position: relative;
    top: 4px;
} */

.logo img,
.navbar img {
  max-height: 80px !important;
  width: auto !important;
  object-fit: contain;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

/* Text Logo Formatting */
.text-logo {
  font-size: 30px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: #b0b0b0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.text-logo .logo-c {
  color: #c00000;
  font-weight: bold;
}

.text-logo .logo-text {
  color: #a0a0a0;
  font-weight: bold;
}

.text-logo:hover .logo-c,
.text-logo:hover .logo-text {
  opacity: 0.9;
  transition: 0.3s;
}

/* Join Now Button */
.btn-join {
  background-color: #c00000;
  color: white;
  border-radius: 5px;
  padding: 8px 24px;
  transition: all 0.3s ease;
  border: none;
  font-weight: 500;
}

.btn-join:hover {
  background-color: #900000;
  color: white;
}

@media (max-width: 991px) {
  .navbar-brand .brand-logo {
    max-height: 45px;
  }
}

@media (max-width: 575px) {
  .navbar-brand .brand-logo {
    max-height: 35px;
  }
  .brand-subtitle {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  .text-logo {
    font-size: 20px;
    gap: 8px;
  }
}

.loader-logo {
  height: 150px;
  width: auto;
  animation: logoPulse 1.5s infinite ease-in-out;
}

@keyframes logoPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

@media (max-width: 575px) {
  .premium-brand-text {
    font-size: 0.95rem;
    white-space: normal;
    max-width: 150px;
  }
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-main {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 85px;
  width: auto;
  display: block;
}

.brand-subtitle {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  line-height: 1;
}

.about-image-stack img {
  transition: all 0.4s ease;
  cursor: pointer;
}

.about-image-stack img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 0 20px rgba(0, 198, 255, 0.6),
    0 0 40px rgba(123, 47, 247, 0.5);
}
.built {
  transition: all 0.4s ease;
  cursor: pointer;
}

.built:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 0 20px rgba(0, 198, 255, 0.6),
    0 0 40px rgba(123, 47, 247, 0.5);
}
