/* =======================
NAVBAR css starts here
======================= */
.navbar {
  position: fixed;
  top: 1%;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  z-index: 1100;
  height: 80px;
  border-radius: 60px;
  background: radial-gradient(90.16% 143.01% at 15.32% 21.04%, rgba(165, 239, 255, 0.2) 0%, rgba(110, 191, 244, 0.044) 77%, rgba(70, 144, 213, 0) 100%);
  border: 1px solid rgba(152, 249, 255, 1);
  backdrop-filter: blur(10px);
  transition: width 0.35s ease, background 0.35s ease, padding 0.5s ease;
  padding: 0 10%;
}

.container-fluid {
  padding: 0;
}

.navbar-hover {
  border-radius: 60px 60px 0px 0px;
  border-bottom: none;
}


.navbar.scrolled {
  width: 100%;
  border-radius: 0;
  top: 0;
  border: none;
  border-bottom: 1px solid rgba(152, 249, 255, 1);
}

.navbar-brand img {
  width: 68px;
  height: 50px;
  border-radius: 14px;
  object-fit: cover;
  /* margin-left: -8px; */
}

.navbar-brand {
  margin-top: 7px;
}

/* .navbar-li {
  margin-right: 5%;
} */

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 14px;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  text-decoration: none;
  transition: 0.2s;
}

.navbar-nav .nav-link.active,
#productsBtn.hover-active {
  background: radial-gradient(90.16% 143.01% at 15.32% 21.04%, rgba(165, 239, 255, 0.2) 0%, rgba(110, 191, 244, 0.045) 77%, rgba(70, 144, 213, 0) 100%);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 10px rgba(70, 144, 213, 0.8), 0 0 5px rgba(255, 255, 255, 0.7);
  color: #fff !important;
}

.nav-link:focus {
  outline: none;
}

#productsBtn:hover {
  font-size: 18px;
}

.head {
  margin-top: 20px;
}

/* =======================
BUTTONS
======================= */
.btn-gradient {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 50px;
  background: linear-gradient(0deg, #0147FF, #0147FF), radial-gradient(60% 60% at 32% 20%, rgba(255, 255, 255, 0.7),
      transparent);
  box-shadow: 0 0 22px rgba(1, 71, 255, 0.5);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: 0.2s ease;
}

.btn-gradient:hover {
  transform: translateY(-3px);
}

.navbar-toggler {
  border: none;
  width: 30px;
  height: 30px;
  position: relative;
  background: transparent;
}

.navbar-toggler .toggler-icon {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #fff;
  transition: 0.35s ease;
}

.top-bar {
  top: 0;
}

.middle-bar {
  top: 11px;
}

.bottom-bar {
  top: 22px;
}

.navbar-toggler:not(.collapsed) .top-bar {
  transform: rotate(135deg);
  top: 13px;
}

.navbar-toggler:not(.collapsed) .middle-bar {
  opacity: 0;
}

.navbar-toggler:not(.collapsed) .bottom-bar {
  transform: rotate(-135deg);
  top: 13px;
}

/* =======================
DROPDOWN PANEL
======================= */

#panel {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: none;
  /* padding: 25px 40px; */
  border: 1px solid rgba(219, 215, 215, 0.12);
  border-radius: 0 0 24px 24px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.1)),
    url("../images/navbar/dropdown-bg.png");

  background-size: cover;
  background-position: center;

}

#panel.open {
  display: block;
  animation: fadeSlide 1.0s ease;
}

#productsBtn {
  position: relative;
}

#productsBtn::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 20px;
  background: transparent;
  display: block;
}


@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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


/* ===============================
DROPDOWN GRID
================================= */
.dropdown-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  /* margin-left: 50px; */
}

.dropdown-grid a {
  text-decoration: none;
  color: white;
}

/* ===============================
CARDS RESPONSIVE
================================= */
.card {
  padding: 20px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: 0.25s ease;
  border: 0.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.10),
    0 6px 30px rgba(0, 0, 0, 0.55);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.card * {
  position: relative;
  z-index: 2;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1.4px rgba(255, 255, 255, 0.25),
    0 10px 35px rgba(0, 0, 0, 0.6);
}

/* Card text */
.card p {
  opacity: 0.8;
  margin: 4px 0;
}


.tag {
  width: 30px;
  min-width: 10px;
  height: 15px;
  background:
    linear-gradient(0deg, #0147FF, #0147FF),
    radial-gradient(63.11% 63.11% at 31.97% 19.67%,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0) 70%);
  background-blend-mode: overlay;

  transition: transform 0.2s ease, opacity 0.3s ease;
  color: #fff;
  border-radius: 10px;
  border: none;
  font-size: 10px;
  font-weight: 500;
  display: inline-block;
  padding: 0%;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(27, 90, 255, 0.35);
}

.tags {
  min-width: 10px;
  height: 15px;
  width: 30px;
  background:
    linear-gradient(0deg, #0147FF, #0147FF),
    radial-gradient(63.11% 63.11% at 31.97% 19.67%,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0) 70%);
  background-blend-mode: overlay;
  transition: transform 0.2s ease, opacity 0.3s ease;
  color: #fff;
  border-radius: 10px;
  border: none;
  font-size: 10px;
  font-weight: 500;
  display: inline-block;
  padding: 0%;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(27, 90, 255, 0.35);
}

.large {
  background-image: url('../images/navbar/image1.jpg');
}

.top {
  background-image: url('../images/navbar/image2.png');
}

.bottom {
  background-image: url('../images/navbar/image3.png');
}

.link {
  font-weight: 500;
  font-size: 20px;
}

.link:hover {
  color: #1B5AFF;

}

.title h3 {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 15px;
}

#flip a:hover,
#flip a.active {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.social-icons {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
}



.icon {
  color: white;
}

.icon:hover {
  color: #1B5AFF;
}

.products-btn.active-btn a {
  color: #fff !important;
  background: transparent !important;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.image {
  width: 3%;
  margin-right: 5px;
}

.small {
  margin-bottom: 10px;

}

/* ===============================
   MEDIA QUERIES
================================= */
/* ================================
DESKTOP (min-width: 988px)
================================ */

.submenu-separator {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 10px 0 15px 0;
  opacity: 0;
}

.sub-nav-content.collapsing .submenu-separator,
.sub-nav-content.show .submenu-separator {
  opacity: 1;
}

.collapsing {
  transition: none !important;
  height: auto !important;
}

html.nav-open,
body.nav-open {
  overflow: hidden !important;
  height: auto !important;
  position: static !important;
}


.cntr-mrs {
  margin: 0 10%;
  margin-bottom: 5%;
}

.cntr-pd {
  padding: 0 10%;
  padding-bottom: 5%;
}

/* MAIN FOOTER WRAPPER */
.footer-box {
  background-color: #fff;
  padding: 50px;
  border-radius: 40px;
  margin: 100px 10% 100px 10%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  font-family: 'Syne', sans-serif;
  color: #1b1b1b !important;
  word-wrap: break-word;
}

/* GRID LAYOUT - RESPONSIVE */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.footer-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
}

/* LIST STYLING */
.footer-links {
  padding: 0;
  margin: 0;
}

a {
  color: #000;
  text-decoration: none;
}

.footer-links>li>a:hover {
  color: rgba(1, 71, 255, 1)
}

.contact-row>span>a:hover {
  color: rgba(1, 71, 255, 1);
}

.footer-links li {
  list-style: none;
  margin-bottom: 8px;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  transition: 0.3s ease;
}

.footer-links li a::before {
  content: "";
  position: absolute;
  left: -8%;
  /* space from the text */
  top: 50%;
  /* vertically center */
  transform: translateY(-50%);
  height: 2px;
  /* thickness of the hyphen line */
  width: 0;
  /* start with zero length */
  background-color: #1B5AFF;
  /* blue hyphen */
  transition: width 0.3s ease;
}

.footer-links li a:hover::before {
  width: 11px;
  /* grow to desired length on hover */
}

.footer-links li a:hover {
  color: #1B5AFF;
  transform: translateX(5px);
}

/* SOCIAL ICONS */
.social-icons {
  margin-bottom: 12px;
}

.social-icons a {
  font-size: 22px;
  color: #000;
  margin-right: 15px;
  transition: 0.25s ease;
  display: inline-block;
}

.social-icons a:hover {
  color: #1B5AFF;
  transform: translateY(-3px);
}

/* CONTACT ROW */
.contact-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 15px;
  color: #000;
  transition: 0.25s ease;
  gap: 5px;
}

.contact-row:hover {
  transform: translateY(-1px);
  color: #1B5AFF;
}

.contact-row a {
  color: inherit;
  transition: 0.25s ease;
}

/* COPYRIGHT */
.copy {
  color: grey;
  margin-top: 18px;
  font-size: 14px;
  text-align: center;
}

.card {
  margin-bottom: 8px;
}

.fa-solid {
  margin-right: 6px;
}


/* ===== RESPONSIVE BREAKPOINTS ===== */

/* MEDIUM SCREENS (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
  .footer-title {
    font-size: 16px;
  }

  .footer-links li,
  .contact-row {
    font-size: 14px;
  }

  .social-icons a {
    font-size: 20px;
    margin-right: 12px;
  }
}

/* TABLETS (up to 1024px) */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 5%;
  }

  .navbar-brand {
    margin-top: 0;
  }

  .footer-box {
    padding: 35px;
    margin: 5%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "solutions resources"
      "company support"
      "follow follow";
    text-align: start;
    align-items: start;
  }

  .footer-grid>div:nth-child(1) {
    grid-area: solutions;
  }

  .footer-grid>div:nth-child(2) {
    grid-area: resources;
  }

  .footer-grid>div:nth-child(3) {
    grid-area: company;
  }

  .footer-grid>div:nth-child(4) {
    grid-area: support;
  }

  .footer-grid>div:nth-child(5) {
    grid-area: follow;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: start;
    text-align: start;
  }

  .footer-links li a::before {
    left: -4%;
  }
}

@media (min-width: 992px) {

  .dropdown-toggle-btn,
  .sub-nav-content {
    display: none !important;
  }

  #panel {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    padding: 25px 5%;
    display: none;
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.1)),
      url("../images/navbar/dropdown-bg.png");
    background-size: cover;
    border-radius: 0 0 24px 24px;
    z-index: 1000;
  }

  .panel-hover {
    border-radius: 0px 0px 60px 60px !important;

    border: 1px solid rgba(152, 249, 255, 1) !important;
    border-top: none !important;
  }

  #panel.open {
    display: block;
    animation: fadeSlide 0.5s ease;
  }

  .dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    /* margin-left: 50px; */
  }

  .navbar-brand {
    /* margin-left: 5%; */
    margin-top: 7px;
  }

  .card.large {
    max-width: 570px;
    height: 330px;
  }

  .card.small {
    max-width: 830px;
    height: 160px;
  }

  /* Desktop: Larger font & icons */
  .link {
    display: inline-block;
    margin-top: 3px;
    font-size: 22px;
  }

  .link i {
    font-size: 16px;
  }
}

@media (min-width: 992px) and (max-width: 1100px) {
  .dropdown-grid{
    gap: 20px;
  }
}

@media (min-width: 1025px) {
  #panel {
    padding: 25px 10%;
  }
}

@media (max-width: 991px) {
  .navbar {
    position: fixed;
    top: 1%;
    width: 95%;
    z-index: 1100;
    padding: 0 4% !important;

    /* SAME as dropdown */
    background: radial-gradient(100% 100% at 50% 0%, #174278 0%, rgba(13, 26, 42, 0.95) 100%);
    backdrop-filter: blur(10px);
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.12); */

    height: 80px;
    padding: 0.8rem 1.4rem;
    transition: 0.3s ease;
  }

  /* --- 1. Full-Screen Menu Container Styling --- */
  .navbar-collapse {
    position: fixed;
    top: 79px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    overflow-y: auto;
    /* ADDED: Margin around the main content (top/bottom) */
    padding: 1rem 0;

    /* Background matching image: dark base with blue radial gradient and blur */
    background: radial-gradient(100% 100% at 50% 0%, #174278 0%, rgba(13, 26, 42, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1090;
  }

  .cm {
    order: 1;
    margin-left: 10px;
  }

  .pm {
    order: 0;
  }

  .navbar.scrolled {
    width: 100%;
    border-radius: 0;
    top: 0;
  }

  /* 1-column layout for all small screens */
  .dropdown-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card.large,
  .card.small {
    width: 90%;
    max-width: 100%;
    height: auto;
    border-radius: 22px;
    box-sizing: border-box;

    /* Center cards */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
  }

  #navMenu {
    padding: 15px 24px;
    box-sizing: border-box;
  }

  #navMenu .navbar-nav .nav-item:last-child:not(.sub-menu-item) {
    border-bottom: none;
  }

  .navbar-toggler {
    margin-right: 24px;
    margin-bottom: 4px;
  }

  .navbar-nav .nav-link.active {
    background: none !important;
    border: none !important;
    color: #1B5AFF !important;
    box-shadow: none !important;
  }

  .tag {
    min-width: 10px;
    height: 15px;
    width: 30px;
    margin-top: 5px;

  }

  .tags {
    min-width: 10px;
    height: 15px;
    width: 30px;
    margin-top: 5px;
  }

  .image {
    width: 20px;
    height: auto;
    min-width: 20px;
  }

  .navbar {
    height: 60px;
    padding: 6px 16px;
  }

  .navbar-brand img {
    width: 56px;
    height: 40px;
  }

  .navbar-collapse {
    top: 59px;
    height: calc(100vh - 60px);
  }

  /* Primary Nav Item Separators */
  .navbar-nav .nav-item {
    margin: 0;
    /* Border-bottom 1px with color #626262 */
    border-bottom: 1px solid #626262;
  }

  /* Remove button styles as per request */
  .btn-gradient {
    display: none !important;
  }

  /* --- 2. Primary Navigation Links (Product, Resources, Pricing, Contact, Account) --- */

  .navbar-nav .nav-link {
    color: #1B5AFF;
    font-weight: 600;
    font-size: 18px;
    /* Padding matches the desired content area */
    padding: 16px 20px;
    margin: 0;
  }

  /* --- 3. Sub-Menu Item Layout and Toggles (Resources, Pricing, Contact) --- */

  .nav-item.sub-menu-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    /* Reset padding, as the link holds the vertical padding */
    padding: 0;
    width: 100%;
  }

  .dropdown-toggle-btn {
    color: #1B5AFF;
    cursor: pointer;
    /* Match link padding for alignment */
    padding: 16px 20px;
    align-self: center;
    /* Added for neatness and function */
    background: none;
    border: none;
    line-height: 1;
  }

  /* --- TOGGLE BUTTON ROTATION LOGIC --- */
  .dropdown-toggle-btn i {
    transition: transform 0.3s ease-in-out;
    display: block;
  }

  .dropdown-toggle-btn[aria-expanded="true"]{
    transform: rotate(180deg);
  }

  /* ------------------------------------- */

  /* --- 5. Sub-Menu Content Container (Uses Bootstrap .collapse and .show) --- */

  .sub-nav-content {
    /* Reset mobile layout properties, remove display:none from checkbox hack */
    width: 100%;
    order: 100;
    margin: 0;
    padding: 0;
    position: relative;
  }

  /* Bootstrap Collapse logic */
  .sub-nav-content.collapse:not(.show) {
    display: none;
  }

  .sub-nav-content.collapse.show {
    display: block;
  }
  
  .sub-nav-content .sub-link {
    display: flex;
    align-items: center;
    /* Mobile Sub-Link Color: White */
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;

    /* ADDED: Padding for indentation and spacing */
    /* Indent from the left (20px) + a little extra space (15px) */
    padding: 10px 20px 10px 35px;

    /* ADDED: Border-bottom for separation */
    border-bottom: 1px solid #626262;
  }

  /* Fix the last sub-link border */
  .sub-nav-content .sub-link:last-child {
    border-bottom: none;
  }

  .sub-nav-content .sub-link:hover {
    color: #1B5AFF;
  }

  /* REMOVE ALL BORDERS, OUTLINES, SHADOWS FROM TOGGLER */
  .navbar-toggler,
  .navbar-toggler:focus,
  .navbar-toggler:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .navbar-toggler.collapsed,
  .navbar-toggler:not(.collapsed) {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  .navbar-toggler .toggler-icon {
    background-color: #fff !important;
  }

  #panel {
    display: none !important;
    position: static;
    border: none;
    background: none;
    padding: 16px 5%;
    /* Padding matches the main link side padding */
  }

  #productsBtn.active~#panel {
    display: block !important;
  }

  /* Ensure sub-menu-item display remains flex for the new button */
  .nav-item.sub-menu-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    width: 100%;
  }
}

/* LARGE MOBILE (up to 700px) */
@media (max-width: 700px) {
  .footer-box {
    padding: 30px;
  }

  .footer-grid>div {
    padding: 0 10px;
  }

  .footer-links li a::before {
    left: -6%;
  }
}

/* SMALL MOBILE (up to 480px) */
@media (max-width: 480px) {
  .footer-box {
    padding: 25px;
    border-radius: 30px;
    margin: 5%;
  }

  .footer-grid>div {
    padding: 0 5px;
  }

  .social-icons a {
    margin-right: 10px;
  }

  .footer-title {
    font-size: 16px;
  }

  .footer-links li,
  .contact-row {
    font-size: 14px;
  }

  .footer-links li a::before {
    left: -8%;
  }
}

/* EXTRA SMALL DEVICES (up to 360px) */
@media (max-width: 350px) {
  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "solutions"
      "resources"
      "company"
      "support"
      "follow";
  }

  .footer-grid>div {
    padding: 0;
    margin-bottom: 15px;
  }

  .footer-grid>div:nth-child(5) {
    margin-top: 20px;
  }

  .footer-links li a::before {
    left: -4%;
  }
}