/* ===== Reset & Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: none;
  user-select: none;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f7f9fc;
  color: #2c3e50;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-user-drag: none; /* Prevent dragging */
  -webkit-touch-callout: none; /* Prevent callout on touch devices */
  -moz-user-select: none; /* Prevent text selection in Firefox */
  -ms-user-select: none; /* Prevent text selection in IE */
  min-height: 100%;
}

/* Stop image dragging */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none; /* Prevents right-clicking on images */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

section + section {
  margin-top: 0;
  padding-top: 0;
}

/* ===== Fixed Header ===== */
.fixed-header {
  background-color: #ffffff;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px;
}

.nav-menu li a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: #0078d7;
}

.nav-menu li a:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #0078d7;
  transition: width 0.3s ease;
}

.nav-menu li a:hover:after {
  width: 100%;
}

/* Adjust main content for fixed header */
main {
  margin-top: 60px; /* Height of the fixed header */
  overflow-x: hidden;
}

/* ===== Footer ===== */
footer {
  background-color: #2c3e50;
  color: #ffffff;
  padding: 40px 20px;
}
.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-column {
  flex: 1;
  min-width: 200px;
}
.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  border-bottom: 1px solid #ffffff33;
  padding-bottom: 8px;
}
.footer-column ul {
  list-style: none;
  padding: 0;
}
.footer-column ul li {
  margin-bottom: 10px;
}
.footer-column ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-column ul li a:hover {
  color: #ffc107;
  text-decoration: underline;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.9rem;
  border-top: 1px solid #ffffff33;
  margin-top: 20px;
  color: #bdc3c7;
}
.footer-bottom a {
  color: #ffc107;
  text-decoration: none;
}
.footer-bottom a:hover {
  text-decoration: underline;
}

/* ===== Buttons ===== */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-primary {
  background-color: #0078d7;
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background-color: #005bb5;
  transform: translateY(-2px);
}
.btn-secondary {
  background-color: #ecf0f1;
  color: #2c3e50;
  border: 1px solid #bdc3c7;
}
.btn-secondary:hover {
  background-color: #dfe6e9;
  transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(120deg, #eaf2f8, #ffffff);
  display: flex;
  align-items: center;
  padding-top: 20px;
}
.hero-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.hero-text {
  flex: 1;
  padding: 20px;
  text-align: left;
}
.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #2c3e50;
}
.hero-text p {
  margin-bottom: 25px;
  color: #34495e;
  font-size: 1.1rem;
}
.hero-image {
  flex: 1;
  text-align: center;
}
.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  content-visibility: auto;
  contain-intrinsic-size: 200px auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ===== REDESIGNED Form Section ===== */
.form-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.form-image img {
  max-width: 100%;
  border-radius: 12px;
  content-visibility: auto;
  contain-intrinsic-size: 200px auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* New Registration Form Styling */
.registration-form {
  flex: 1;
  min-width: 320px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.registration-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.registration-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #0078d7, #34b7eb);
  z-index: 1;
}

.form-header {
  padding: 25px 30px 5px;
  text-align: center;
  position: relative;
}

.form-badge {
  position: absolute;
  top: -10px;
  right: 25px;
  background: linear-gradient(135deg, #0078d7, #34b7eb);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 120, 215, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 120, 215, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(0, 120, 215, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 120, 215, 0);
  }
}

.form-header h2 {
  margin-bottom: 10px;
  color: #2c3e50;
  font-size: 1.8rem;
}

.form-subtitle {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

#leadForm {
  padding: 10px 30px 30px;
}

.form-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  position: relative;
  margin-bottom: 5px;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 16px;
  color: #95a5a6;
  font-size: 16px;
  transition: color 0.3s ease;
  z-index: 1;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 15px 15px 15px 40px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  color: #2c3e50;
  font-family: 'Segoe UI', sans-serif;
}

.input-group textarea {
  resize: vertical;
  min-height: 120px;
}

.input-group label {
  position: absolute;
  left: 40px;
  top: 15px;
  color: #7f8c8d;
  transition: all 0.3s ease;
  pointer-events: none;
  font-size: 0.95rem;
}

.input-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #0078d7, #34b7eb);
  transition: width 0.3s ease;
}

/* Input focus and active state styling */
.input-group.focused input,
.input-group.focused textarea {
  border-color: #0078d7;
  box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.1);
  background-color: #fff;
}

.input-group.focused .input-icon {
  color: #0078d7;
}

.input-group.focused .input-highlight {
  width: 100%;
}

.input-group.focused label {
  transform: translateY(-26px);
  font-size: 0.8rem;
  color: #0078d7;
  font-weight: 600;
}

/* Captcha group styling */
.captcha-group {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(238, 242, 245, 0.5);
  padding: 15px;
  border-radius: 8px;
}

.captcha-icon {
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0078d7, #34b7eb);
  color: white;
  border-radius: 8px;
}

.captcha-input {
  flex: 1;
}

.captcha-input label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.85rem;
  color: #34495e;
  font-weight: 600;
}

.captcha-input input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.captcha-input input:focus {
  border-color: #0078d7;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.1);
}

/* Form action styling */
.form-action {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.privacy-notice {
  font-size: 0.8rem;
  color: #7f8c8d;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  margin-bottom: 5px;
  padding-bottom: 10px;
}

.privacy-notice::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 1px;
  background: #e0e0e0;
}

.privacy-notice i {
  color: #0078d7;
}

.btn-register {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0078d7, #34b7eb);
  color: white;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-register span {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.btn-register i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.btn-register::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.btn-register:hover {
  box-shadow: 0 5px 15px rgba(0, 120, 215, 0.4);
}

.btn-register:hover i {
  transform: translateX(3px);
}

.btn-register:hover::before {
  left: 100%;
}

/* Button loading state */
.btn-register.loading {
  background: #ccc;
  pointer-events: none;
}

.btn-register.loading span {
  visibility: hidden;
}

.btn-register.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Button success state */
.btn-register.success {
  background: #28a745;
}

.btn-register.success span {
  visibility: hidden;
}

.btn-register.success::after {
  content: "✓";
  font-size: 24px;
  color: white;
  animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Allow text selection in specific elements */
input, textarea, .data-cell {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}

/* ===== Services Section ===== */
.services-preview {
  background-color: #ffffff;
  text-align: center;
}
.services-preview h2 {
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: #2c3e50;
}
.service-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}
.icon-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  flex: 1 1 220px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.icon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}
.icon-box img {
  height: 60px;
  margin-bottom: 15px;
  content-visibility: auto;
  contain-intrinsic-size: 200px auto;
}

/* ===== Scrollable Tool & Blog Cards ===== */
.scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: #bdc3c7 #f1f1f1;
}

/* Custom scrollbar */
.scroll-container::-webkit-scrollbar {
  height: 6px;
}
.scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.scroll-container::-webkit-scrollbar-thumb {
  background: #bdc3c7;
  border-radius: 10px;
}
.scroll-container::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

.scroll-container a {
  background: #ffffff;
  border: 1px solid #dcdde1;
  border-radius: 10px;
  padding: 20px;
  min-width: 250px;
  flex-shrink: 0;
  color: #2c3e50;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.scroll-container a:hover {
  background-color: #f7f9fc;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* ===== Blog Section ===== */
.blog-preview h2,
.tools-preview h2 {
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: #2c3e50;
}

/* ===== SEO Section ===== */
.seo-updates {
  background-color: #f0f3f5;
  text-align: center;
}
.seo-updates h2 {
  margin-bottom: 20px;
  color: #2c3e50;
}
.seo-updates p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #34495e;
  line-height: 1.8;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-flex,
  .form-flex,
  .header-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .form-box,
  .hero-text,
  .hero-image {
    padding: 20px;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
  
  .header-container {
    flex-direction: column;
    padding: 10px;
  }
  
  .nav-menu {
    margin-top: 15px;
    justify-content: center;
    gap: 15px;
  }
  
  main {
    margin-top: 90px; /* Adjusted for mobile header height */
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .icon-box {
    flex: 0 0 100%;
  }
  
  /* Form responsive adjustments */
  .registration-form {
    width: 100%;
  }
  
  #leadForm {
    padding: 5px 15px 20px;
  }
  
  .form-step {
    gap: 15px;
  }
  
  .captcha-group {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .captcha-icon {
    margin-bottom: 10px;
  }
}

/* For larger mobile devices */
@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 1.6rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .container {
    width: 95%;
    padding: 30px 0;
  }
  
  .service-icons {
    gap: 15px;
  }
  
  .form-header {
    padding: 20px 15px 0;
  }
  
  .form-header h2 {
    font-size: 1.5rem;
  }
  
  .form-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .nav-menu {
    gap: 15px;
  }
  
  .header-container {
    padding: 0 15px;
  }
}

/* Prevent text selection in specific elements */
h1, h2, h3, p:not(form p), a, button {
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}