#scrolltop {
  position: fixed;
  bottom: 30px;
  right: 25px;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 16px;
  display: none;
  width: 35px;
  height: 34px;
  text-align: center;
  padding-top: 3px;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #0b50e5;
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #ffffff;
  display: inline-block;
  margin-top: 3px;
}

#scrolltop:hover {
  background-color: #555;
  border-color: rgba(0, 0, 0, 0.2);
  color: #fff;
}

#scrolltop:hover .arrow-up {
  border-bottom-color: #ffffff;
}

.foot-links-btn:hover {
  color: #012ab2;
}

.footer-links-container {
  width: 200px;
  /* display: inline-block; */
}

.footer-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 200px;
  /* align-items: center; */
}

.required {
  color: #ff0000;
  position: absolute;
  left: -15px;
  top: 0;
  font-weight: bold;
}

.form-group {
  position: relative;
}

.form-group label {
  display: inline-block;
  margin-left: 0;
}

/* Custom Notification System */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
  pointer-events: none;
}

.notification {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-left: 4px solid;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.hide {
  transform: translateX(100%);
  opacity: 0;
}

.notification-success {
  border-left-color: #10b981;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.notification-error {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.notification-info {
  border-left-color: #3b82f6;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  margin-top: 2px;
}

.notification-success .notification-icon {
  background: #10b981;
}

.notification-error .notification-icon {
  background: #ef4444;
}

.notification-info .notification-icon {
  background: #3b82f6;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 4px 0;
  color: #111827;
  line-height: 1.3;
}

.notification-message {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.notification-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #374151;
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 12px 12px;
  transition: width linear;
}

.notification-success .notification-progress {
  background: #10b981;
}

.notification-error .notification-progress {
  background: #ef4444;
}

.notification-info .notification-progress {
  background: #3b82f6;
}

/* AutoForge Header Styles */
/* .autoforge-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.autoforge-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  min-height: 70px;
}

.autoforge-logo {
  flex-shrink: 0;
}

.autoforge-logo-link {
  display: block;
  text-decoration: none;
}

.autoforge-logo img {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
}

.autoforge-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.autoforge-nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.autoforge-nav-item {
  position: relative;
}

.autoforge-nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.autoforge-nav-link:hover {
  background: rgba(11, 80, 229, 0.1);
  color: #0b50e5;
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2px;
  background: #f9fafb;
}

.lang-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lang-btn.active,
.lang-btn:hover {
  background: #fff;
  color: #0b50e5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
} */

/* Mobile Menu Toggle */
.autoforge-mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  padding: 4px;
  border-radius: 8px;
  background: rgba(11, 80, 229, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.autoforge-mobile-toggle:hover {
  background: rgba(11, 80, 229, 0.1);
  transform: scale(1.05);
}

.autoforge-mobile-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: #333;
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  position: absolute;
}

.autoforge-mobile-toggle span:nth-child(1) {
  top: 10px;
}

.autoforge-mobile-toggle span:nth-child(2) {
  top: 15px;
}

.autoforge-mobile-toggle span:nth-child(3) {
  top: 20px;
}

.autoforge-mobile-toggle.active {
  background: rgba(11, 80, 229, 0.15);
}

.autoforge-mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 15px;
}

.autoforge-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.autoforge-mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 15px;
}

/* Mobile Menu Overlay */
.autoforge-mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 252, 0.98) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 999;
  overflow-y: auto;
  border-top: 1px solid rgba(11, 80, 229, 0.1);
}

.autoforge-mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.autoforge-mobile-menu-content {
  padding: 3rem 1.5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  animation: slideInFromTop 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes slideInFromTop {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.autoforge-mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.autoforge-mobile-nav-item {
  transform: translateY(20px);
  opacity: 0;
  animation: slideInItem 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.autoforge-mobile-nav-item:nth-child(1) {
  animation-delay: 0.1s;
}
.autoforge-mobile-nav-item:nth-child(2) {
  animation-delay: 0.15s;
}
.autoforge-mobile-nav-item:nth-child(3) {
  animation-delay: 0.2s;
}
.autoforge-mobile-nav-item:nth-child(4) {
  animation-delay: 0.25s;
}
.autoforge-mobile-nav-item:nth-child(5) {
  animation-delay: 0.3s;
}

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

.autoforge-mobile-nav-link {
  display: block;
  padding: 1.25rem 1.5rem;
  color: #1f2937;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(248, 250, 252, 0.8) 100%
  );
  border: 1px solid rgba(11, 80, 229, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.autoforge-mobile-nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(11, 80, 229, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.autoforge-mobile-nav-link:hover::before {
  left: 100%;
}

.autoforge-mobile-nav-link:hover,
.autoforge-mobile-nav-link:active {
  background: linear-gradient(
    135deg,
    rgba(11, 80, 229, 0.08) 0%,
    rgba(11, 80, 229, 0.12) 100%
  );
  color: #0b50e5;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(11, 80, 229, 0.15);
  border-color: rgba(11, 80, 229, 0.2);
}

.autoforge-mobile-language {
  margin-top: 2.5rem;
  text-align: center;
  animation: slideInItem 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.35s both;
}

.autoforge-mobile-language .language-switcher {
  display: inline-flex;
  justify-content: center;
  max-width: 200px;
  box-shadow: 0 4px 12px rgba(11, 80, 229, 0.1);
}

/* Hero Section Adjustments */
.hero-section {
  padding-top: 90px; /* Account for fixed header */
}

/* Image Container Optimization */
.autoforge-image {
  margin: 2rem 0;
  text-align: center;
}

.autoforge-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin: 0 1rem 1rem 0;
  transition: transform 0.3s ease;
}

.autoforge-image img:hover {
  transform: scale(1.02);
}

/* Card Grid Responsive */
.neural-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* gap: 1.5rem; */
  margin-top: 2rem;
}

.neural-spec {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

/* .neural-spec:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.software-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.software-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.software-card-100 {
  grid-column: 1 / -1;
} */

/* Container Responsive */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .autoforge-nav {
    display: none;
  }

  .autoforge-mobile-toggle {
    display: flex;
  }

  .software-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }

  .neural-specs {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .hero-section {
    padding-top: 80px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .autoforge-image img {
    margin: 0.5rem;
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .autoforge-header-content {
    padding: 0.75rem 0;
    min-height: 60px;
  }

  .autoforge-logo img {
    height: 32px;
  }

  .hero-section {
    padding-top: 70px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .software-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .neural-specs {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .software-card {
    padding: 1.5rem;
  }

  .neural-spec {
    padding: 1.25rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  .autoforge-image img {
    margin: 0.25rem;
    max-width: calc(100% - 0.5rem);
  }

  .footer-container {
    gap: 1.5rem;
  }

  .content-title-1 {
    font-size: 1.75rem;
  }

  .content-title-2 {
    font-size: 1.5rem;
  }

  .content-title-3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .notification {
    padding: 14px 16px;
    margin-bottom: 8px;
  }

  .notification-title {
    font-size: 13px;
  }

  .notification-message {
    font-size: 12px;
  }

  .autoforge-header-content {
    min-height: 50px;
    padding: 0.5rem 0;
  }

  /* .autoforge-logo img {
    height: 28px;
  } */

  .hero-section {
    padding-top: 60px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 0.5rem;
  }

  .software-card {
    padding: 1.25rem;
  }

  .neural-spec {
    padding: 1rem;
  }

  .autoforge-mobile-menu-content {
    padding: 1.5rem 0.75rem;
  }

  .autoforge-mobile-nav-link {
    font-size: 16px;
    padding: 0.875rem;
  }

  .content-title-1 {
    font-size: 1.5rem;
  }

  .content-title-2 {
    font-size: 1.25rem;
  }

  .content-title-3 {
    font-size: 1.125rem;
  }
}

/* Universal image optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Specific image containers */
.hero-section img,
.tools-process-image img,
.autoforge-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Icon images in cards should maintain aspect ratio */
.spec-icon img,
.card-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto;
}

/* Image optimization for mobile */
@media (max-width: 640px) {
  .autoforge-image {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .autoforge-image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  /* Ensure case image is responsive */
  .tools-process-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }

  /* Icon size adjustments for mobile */
  .spec-icon img,
  .card-icon img {
    width: 40px;
    height: 40px;
  }

  /* Banner images should be fully contained */
  .hero-section-forge .autoforge-image img {
    max-height: 300px;
    object-fit: contain;
    width: auto;
    max-width: 100%;
  }
}

/* Prevent horizontal scroll */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
  max-width: 100%;
}

/* Ensure all containers don't exceed viewport width */
.container,
.row,
.col-lg-12,
.col-lg-6,
.col-lg-9 {
  max-width: 1200px;
  /* overflow-x: hidden; */
}

/* Prevent text overflow */
.hero-title,
.hero-description,
.content-title-1,
.content-title-2,
.content-title-3,
.product-description,
.card-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Additional mobile optimizations */
@media (max-width: 768px) {
  /* Ensure no elements cause horizontal overflow */
  .neural-spec,
  .software-card {
    min-width: 0; /* Allow flex items to shrink below content size */
    word-break: break-word;
  }

  /* Optimize modal for mobile */
  .autoforge-modal__dialog {
    margin: 10px;
    max-width: calc(100vw - 20px);
    width: 100%;
  }

  .autoforge-form__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Optimize tables and wide content */
  table {
    font-size: 14px;
  }

  /* Ensure buttons don't overflow */
  .btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile optimizations */
  .hero-section {
    padding: 60px 0 2rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  /* Optimize form layout for small screens */
  .form-group label {
    font-size: 14px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0.75rem;
  }

  /* Ensure footer content doesn't overflow */
  .footer-container {
    padding: 1rem 0.5rem;
  }

  .footer-links-container {
    width: 100%;
    max-width: 100%;
  }
}

/* Button responsive adjustments */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Black bullet points for software card lists */
.software-card-ul-25 {
  list-style: none !important;
  padding-left: 0 !important;
}

.software-card-ul-25 li {
  position: relative;
  padding-left: 20px !important;
}

.software-card-ul-25 li::before {
  content: "•";
  color: #000;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2em;
  line-height: 1.2;
}
