@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");
/* new change */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Dark Theme Colors */

  --primary-color: #53a7fe;
  --primary-light: #08192a;
  --primary-dark: #0a1520;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --error-color: #ef4444;
  --success-color: #22c55e;
  --warning-color: #f59e0b;

  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --bg-card: #1e1e3f;

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --border-color: #374151;
  --border-light: #4b5563;
  --border-error: #ef4444;
  --border-success: #22c55e;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  --gradient-secondary: linear-gradient(135deg, var(--primary-dark), #53a7fe);
  --gradient-bg: linear-gradient(
    135deg,
    var(--bg-primary),
    var(--bg-secondary)
  );
  --gradient-error: linear-gradient(135deg, #ef4444, #dc2626);
  --gradient-success: linear-gradient(135deg, #53a7fe, #2e93ff);

  /* Shadows and Glows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --glow-primary: 0 0 20px rgba(99, 102, 241, 0.3);
  --glow-secondary: 0 0 20px rgba(16, 185, 129, 0.3);
  --glow-error: 0 0 20px rgba(239, 68, 68, 0.3);
  --glow-success: 0 0 20px rgba(34, 197, 94, 0.3);

  /* Animation Variables */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
  font-family: "Nunito", sans-serif;
  /* new change */
  background: var(--gradient-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px !important;
  /* new change */
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  /* new change */
  top: 10px;
  /* new change */
  width: 94%;
  /* new change */
  background: rgba(15, 15, 35, 0.533);
  /* new change */
  backdrop-filter: blur(2px);
  /* new change */
  z-index: 1000;
  /* new change */
  transition: var(--transition-smooth);
  /* new change */
  border-radius: 50px;
  /* new change */
}

.nav-container {
  max-width: 1280px;
  /* new change */
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-brand i {
  color: var(--primary-color);
  font-size: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* .hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 1px;
  background: var(--text-primary);
  margin: 4px 0;
  transition: var(--transition-smooth);
} */

.hamburger {
  width: 30px;
  height: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
}

.hamburger span {
  display: block;
  height: 1.8px;
  width: 100%;
  background: white; /* change color as needed */
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* When active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: -1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 70px;
  font-weight: 500;
  margin-bottom: 1.5rem;

  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: var(--glow-primary), var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--glow-primary);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.floating-elements {
  position: relative;
  width: 400px;
  height: 400px;
}

.floating-card {
  position: absolute;
  /* background: var(--primary-dark); */
  /* border: 1px solid var(--border-color); */
  border-radius: 0px;
  /* padding: 1.5rem; */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  /* box-shadow: var(--shadow-md); */
  animation: float 3s ease-in-out infinite;
  transition: all 0.3s;
}

.floating-card:nth-child(1) {
  top: 0%;
  left: 47%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.floating-card:nth-child(2) {
  bottom: 0%;
  right: -25%;
  animation-delay: -2s;
}

.floating-card:nth-child(3) {
  bottom: 0%;
  left: 0;
  animation-delay: -4s;
}

.floating-card i {
  font-size: 2rem;
  color: var(--primary-color);
}

.floating-card span {
  font-size: 0.9rem;
  color: #fff;
}

@media (max-width: 768px) {
  .floating-card:nth-child(1) {
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
  }
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--primary-dark);
  /* new change 02-09-ashmit */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #fff;
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Section */
.search-section {
  background: var(--bg-secondary);
}

.search-container {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.search-box {
  display: flex;
  align-items: center;
  background: #cecece;
  /* border: 1px solid var(--border-color); */
  border-radius: 50px;
  padding: 0;
  height: 65px;
  margin-bottom: 2rem;
  margin-top: 40px;
  transition: var(--transition-smooth);
}

.search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: var(--glow-primary);
}

.search-box i {
  color: var(--bg-primary);
  margin-right: 1rem;
  margin-left: 1rem;
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  color: var(--bg-primary);
  font-size: 1rem;
  outline: none;
}

.search-box input::placeholder {
  color: var(--bg-primary);
}

.search-btn {
  /* background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth); */
}

.search-btn:hover {
  box-shadow: var(--glow-primary);
}

.filter-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: #000;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.my-gradient:hover {
  background: linear-gradient(to right, #e0feff, #53a7fe);
}

.filter-tab.active,
.filter-tab:hover {
  background: #0e2d4edb;
  color: white;
  border-color: #0e2d4edb;
}

/* new changes  */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, max-content));
  gap: 1rem;
  place-content: center;
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 50% 50% !important;
    gap: 0.5rem;
  }

  .tools-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
  }
}

/* new changes  */
.tool-card {
  background-color: #0e2d4edb;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  animation-duration: 500ms;
  transition: transform 0.3s ease, background 0.6s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* new changes  */
.tool-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(to top, #0c2743 20%, #0f3b61 100%);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

/* new changes  */
.tool-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tool-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.tool-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tool-category {
  font-size: 0.9rem;
  color: #fff;
}

.tool-description {
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .hero-content {
    padding-top: 2% !important;
  }
  .tool-header {
    align-items: flex-start;
  }
  .tool-card {
    padding: 10px;
  }
  .tool-name {
    font-size: 14px;
    margin-bottom: 0px;
  }
  .tool-info {
    width: 70%;
  }
  .tool-header {
    gap: 0.5rem;
  }
  .tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
  }
  .tool-category {
    font-size: 12px;
    color: #fff;
  }
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tool-tag {
  padding: 4px 8px;
  background: rgb(109 115 231);
  color: #fff;
  border-radius: 12px;
  font-size: 0.8rem;
}

.tool-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tool-price {
  font-weight: 600;
  color: var(--secondary-color);
}

.tool-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.tool-link:hover {
  color: var(--primary-light);
}

/* Blog Section */
.blog-grid {
  display: grid;
  gap: 2rem;
}

/* Mobile (default: 1 column) */
.blog-grid {
  grid-template-columns: 1fr;
}

/* Tablets (≥640px) → 2 columns */
@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small laptops (≥768px) → 2–3 columns */
@media (min-width: 520px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Large screens (≥1024px) → 3 columns */
@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Extra large (≥1280px) → 4 columns */
@media (min-width: 1280px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.blog-link {
  text-decoration: none;
  color: #fff;
}

.blog-card {
  background-color: #0c2743;
  /* border: 1px solid var(--border-color); */
  border-radius: 12px;
  transition: var(--transition-smooth);
  padding: 20px 24px;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry))
    translateZ(var(--tz));
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  /* transform-origin: center;
  backface-visibility: hidden;
  contain: paint; */
  will-change: transform;
  overflow: visible !important;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  height: 230px;
  overflow: hidden;
  border-radius: 10px;
  margin-top: -30%;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem 0 10px 0;
}
/* new changes  */
.blog-category {
  display: inline-block;
  padding: 4px 12px;
  background-image: linear-gradient(to right, #53a7fe, #e0feff);
  color: var(--primary-dark);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: #fff;
  font-weight: 600;
}

.blog-content p {
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #e1e1e1;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* Services Section */
.services-section {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.service-card.featured {
  border: 2px solid var(--primary-color);
  box-shadow: var(--glow-primary);
}

.service-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.service-card ul {
  list-style: none;
  margin-bottom: 1rem;
  text-align: left;
}

.service-card li {
  padding: 0.1rem 0;
  color: #c5c5c5;
  position: relative;
  padding-left: 1.5rem;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.service-btn {
  background: var(--gradient-primary);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
  display: inline-block;
}

.service-btn:hover {
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

/* Contact Section Enhanced */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 20px 15px;
  /* background: var(--bg-card); */
  /* border: 1px solid var(--border-color); */
  /* border-radius: 12px; */
  transition: var(--transition-smooth);
}

/* .contact-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--glow-primary);
} */

.contact-item i {
  font-size: 2rem;
}

/* .contact-item h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
} */

.contact-item p {
  line-height: 1.2;
}

/* Enhanced Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Option 1: Using Flexbox (Parent container approach) */
.view-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0 0 0;
  width: 100%;
}

#viewMoreBtn {
  padding: 0.75rem 2rem;
  /* Internal button padding */
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid var(--bg-primary);
  transition: all 0.3s ease;
  background: transparent;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

#viewMoreBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 15px 16px;
  background: transparent;
  border: 1px solid var(--bg-primary);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--error-color);
  box-shadow: var(--glow-error);
  animation: shake 0.5s ease-in-out;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: var(--success-color);
  box-shadow: var(--glow-success);
}

.error-message {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  min-height: 1.2em;
  display: block;
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: -14px !important;
  font-style: italic;
}

/* Form Messages */
.form-messages {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid;
  animation: slideInDown 0.3s ease-out;
}

.form-messages.success {
  display: flex !important;
  background: #d1ffe1;
  border-color: var(--success-color);
  color: var(--success-color);
}

.form-messages.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--error-color);
  color: var(--error-color);
}

.form-messages.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--warning-color);
  color: var(--warning-color);
}

/* Submit Button Enhanced */
.btn-loading {
  display: none;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loading {
  display: inline-block;
}

.btn.loading {
  pointer-events: none;
}

/* reCAPTCHA Styling */
.g-recaptcha {
  margin: 0.5rem 0;
  display: flex;
  justify-content: center;
}

/* Footer */
.footer {
  background-color: #fff;
  padding-bottom: 20px;
}

.footer_bg {
  background: var(--primary-dark);
  width: 96%;
  margin: auto;
  padding: 4rem 10px 30px 10px;
  border-radius: 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: #fff;
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 400px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #c2c2c2;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-column a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: #0d2032;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background: linear-gradient(to right, #53A7FE, #E0FEFF);
  color: #000;
  border-color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: white;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

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

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

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.slide-in {
  animation: slideIn 0.6s ease-out forwards;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  cursor: pointer;
  display: none !important;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
  z-index: 1000;
  font-size: 1.2rem;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--glow-primary), var(--shadow-lg);
}

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media all and (max-width: 1220px) {
  .floating-elements {
    transform: scale(0.8);
  }
}

@media all and (max-width: 1024px) {
  .nav-container {
    padding: 10px 20px;
    /* width: 94%; */
    /* display: block; */
  }
  .hero-content {
    padding-top: 10%;
  }
  .floating-elements {
    top: 50px;
  }

  /* .floating-elements {
    transform: scale(1);
  } */
  .blog-card {
    margin-top: 100px;
  }
}

/* Responsive Design */
@media (max-width: 767px) {
  .search-box input {
    font-size: 0.9rem;
  }

  .hamburger {
    display: flex;
  }

  .navbarResponsive {
    display: flex !important;
  }

  .nav-container {
    padding: 1rem 30px !important;
    /* new change */
    display: block;
    /* new change */
    width: 95%;
    /* new change */
  }

  .nav-menu {
    position: fixed;
    /* new change */
    top: 65px;
    /* new change */
    left: -110%;
    /* new change */
    width: 100%;
    /* new change */
    height: calc(100vh - 280px);
    /* new change */
    background: #0a1520;
    /* new change */
    flex-direction: column;
    /* new change */
    align-items: center;
    /* new change */
    justify-content: flex-start;
    /* new change */
    padding-top: 2rem;
    /* new change */
    border-radius: 30px;
    /* new change */
    transition: var(--transition-smooth);
    /* new change */
  }

  .nav-menu.active {
    left: 0;
  }
}
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 119px 20px 60px;
  }

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

  .hero-buttons {
    justify-content: left;
  }

  .floating-elements {
    width: 100%;
    height: 330px;
    z-index: 9999 !important;
    margin-top: 0rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .services-grid,
  .tools-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

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

  .floating-card:nth-child(1) {
    left: 35%;
  }

  .floating-card:nth-child(2) {
    bottom: 0 !important;
    right: 0;
  }
  .floating-card:nth-child(3) {
    bottom: -0%;
    left: 0;
    animation-delay: -4s;
  }

  .blog-card {
    margin-top: 80px;
  }
  .blog-image {
    height: 190px;
    overflow: hidden;
    border-radius: 10px;
    margin-top: -30%;
  }
  .footer_bg {
    padding: 2.5rem 10px 30px 10px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-buttons {
    justify-content: center !important;
  }

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

  .filter-tabs {
    gap: 0.5rem;
  }

  .filter-tab {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .container {
    padding: 0 15px;
  }

  /* new changes  */
  .nav-container {
    padding: 11px 15px !important;
    display: block;
  }
  .search-box {
    height: 50px;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1280px) {
  .container {
    padding: 0 35px;
  }
  .nav-container {
    padding: 1rem 30px;
  }
}
@media only screen and (min-width: 800px) and (max-width: 991px) {
  .floating-card:nth-child(2) {
    bottom: 0%;
    right: 0% !important;
    animation-delay: -2s;
  }
  .floating-card:nth-child(1) {
    top: 0%;
    left: 37%;
    transform: translateX(-50%);
    animation-delay: 0s;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
  }
  .nav-link {
    font-size: 13px !important;
  }
}
@media only screen and (max-width: 1023px) and (min-width: 640px) {
  .why-detailsWrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  .why-details {
    width: 48%;
  }
}

/* shrink badge to only show logo */
.grecaptcha-badge {
  width: 70px !important; /* only logo visible */
  overflow: hidden !important;
  transition: all 0.4s ease-in-out; /* smooth expand/collapse */
  position: fixed !important;
  left: 0px !important; /* keep on left */
  bottom: 10px !important;
  right: auto !important;
  z-index: 9999;
  opacity: 0.8; /* slight fade effect */
}

/* expand badge when hovered */
.grecaptcha-badge:hover {
  width: 256px !important; /* full badge width */
  opacity: 1; /* fully visible */
}

.chat-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
}

/* Chat button */
#chat-button {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2a27da, #00ccff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* box-shadow: 0 4px 14px rgba(0, 77, 255, 0.5); */
  transition: transform 0.3s ease;
}
#chat-button:hover {
  transform: scale(1.1);
}
#chat-button svg {
  fill: #fff;
}

/* Chat box */
.frame-content {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 320px;
  height: 450px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25, 1.25, 0.5, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* When open (slide up + bounce) */
#chat-toggle:checked ~ .frame-content {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Chat header */
.chat-header {
  background: linear-gradient(135deg, #2a27da, #00ccff);
  color: #fff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header h2 {
  margin: 0;
  font-size: 18px;
}
.exit-chat {
  cursor: pointer;
}

/* Messages */
#conversation-group {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f9f9f9;
}
.message {
  padding: 10px 16px;
  border-radius: 20px;
  margin: 5px 0;
  font-size: 14px;
  line-height: 20px;
  max-width: 80%;
}
.message-operator {
  background: #e9ecf3;
  color: #06132b;
}
.sentText {
  background: #f2f9ff;
  color: #007dfc;
  margin-left: auto;
}

/* Input Area */
.input-group {
  padding: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  border-top: 1px solid #ddd;
}
.input-group textarea {
  flex: 1;
  border: none;
  resize: none;
  font-size: 14px;
  padding: 10px;
  border-radius: 10px;
  color: #333;
  background: #f5f5f5;
  outline: none;
}
.input-group .send-icon {
  background: none;
  border: none;
  margin-left: 10px;
  cursor: pointer;
}
.input-group .send-icon svg {
  width: 22px;
  height: 22px;
}
