html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* fixed header */
}

:root {
  --bg-color: #f9f9f9;
  --second-bg-color: #f9f9f9;
  --dusk: rgba(122, 21, 21, 0.1);
  --bg-default: linear-gradient(
    180deg,
    var(--bg-color) 0.05%,
    var(--dusk) 100%
  );
  --second-bg-default: linear-gradient(
    180deg,
    var(--second-bg-color) 0.05%,
    var(--dusk) 100%
  );
  --second-bg-default-reversed: linear-gradient(
    180deg,
    var(--dusk) 0.05%,
    var(--second-bg-color) 100%
  );

  --primary: #7a1515;
  --primary-light: #c53030;
  --primary-light-super: #fc8181;
  --dark: #2d3748;
  --gray: #718096;
  --light-gray: #e2e8f0;
  --light: #f8fafc;
  --white: #f9f9f9;
  --text-color: #2d3748;
  --card-bg: #f9f9f9;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.08);
  --border-radius: 16px;
  --transition: all 0.3s ease;

  --redis-red: #ff4438;
  --hyper-09: linear-gradient(90deg, var(--primary), var(--primary-light));

  /* LordIcon specific CSS variables */
  --lord-icon-primary: #121331;
  --lord-icon-secondary: #8b0000;

  /* Success colors */
  --success: #10b981;
  --success2: #41ce9f;
  --warning: #f59e0b;
  --info: #3b82f6;
  --error: #ef4444;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  --gradient-dark: linear-gradient(135deg, var(--dark) 0%, #1a202c 100%);

  /* Professional typography scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Brains Accounting chatbot Colors */
  --chat--color--primary: #c53030 !important;
  --chat--color--primary-shade-50: #7a1515 !important;
  --chat--color--primary--shade-100: #1e4678 !important;
  --chat--color--secondary: #20b69e !important;
  --chat--color-secondary-shade-50: #1ca08a !important;
  --chat--color-white: #f9f9f9 !important;
  --chat--color-light: #f8f9fa !important;
  --chat--color-light-shade-50: #e9ecef !important;
  --chat--color-light-shade-100: #dee2e6 !important;
  --chat--color-medium: #6c757d !important;
  --chat--color-dark: #343a40 !important;
  --chat--color-disabled: #adb5bd !important;
  --chat--color-typing: #495057 !important;

  /* Layout */
  --chat--spacing: 1rem;
  --chat--border-radius: 0.5rem;
  --chat--transition-duration: 0.2s;

  /* Window Size */
  --chat--window--width: 380px;
  --chat--window--height: 580px;

  /* Header - Fixed Gradient */
  --chat--header-height: auto;
  --chat--header--padding: 1.2rem var(--chat--spacing);
  --chat--header--background: #2c5aa0;
  --chat--header--color: var(--chat--color-white);
  --chat--header--border-bottom: 1px solid var(--chat--color--primary-shade-50);
  --chat--heading--font-size: 1.3em;
  --chat--subtitle--font-size: 0.9em;
  --chat--subtitle--line-height: 1.4;
  --chat--subtitle--opacity: 0.9;

  /* Input Area */
  --chat--textarea--height: 52px;
  --chat--textarea--border-radius: 25px;
  --chat--textarea--background: var(--chat--color-light);
  --chat--textarea--border: 1px solid var(--chat--color-light-shade-100);

  /* Messages */
  --chat--message--font-size: 0.95rem;
  --chat--message--padding: 0.8rem 1rem;
  --chat--message--border-radius: 1rem;
  --chat--message-line-height: 1.5;

  /* Bot Messages */
  --chat--message--bot--background: var(--chat--color-light);
  --chat--message--bot--color: var(--chat--color-dark);
  --chat--message--bot--border: 1px solid var(--chat--color-light-shade-100);

  /* User Messages */
  --chat--message--user--background: var(--chat--color--primary);
  --chat--message--user--color: var(--chat--color-white);
  --chat--message--user--border: none;

  /* Code/Pre blocks */
  --chat--message--pre--background: rgba(44, 90, 160, 0.08);
  --chat--message--pre--border: 1px solid rgba(44, 90, 160, 0.1);

  /* Toggle Button */
  --chat--toggle--background: var(--chat--color--primary);
  --chat--toggle--hover--background: var(--chat--color--primary-shade-50);
  --chat--toggle--active--background: var(--chat--color--primary--shade-100);
  --chat--toggle--color: var(--chat--color-white);
  --chat--toggle--size: 60px;
  --chat--toggle--border-radius: 50%;
  --chat--toggle--box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);

  /* Window Shadow */
  --chat--window--box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  --chat--window--border: 1px solid var(--chat--color-light-shade-100);

  --chat--button--color: #f7fafc;
}


/* Root Dark mode */
[data-theme="dark"] {
  --bg-color: #0f1419;
  --second-bg-color: #1a1f2e;
  --primary: #e53e3e;
  --primary-light-super: #fc8181;
  --dark: #f7fafc;
  --gray: #a0aec0;
  --light-gray: #2d3748;
  --light: #2d3748;
  --white: #1a202c;
  --text-color: #f7fafc;
  --card-bg: #2d3748;
  --border-color: #4a5568;
  --shadow-color: rgba(0, 0, 0, 0.3);

  /* LordIcon specific CSS variables */
  --lord-icon-primary: #f7fafc;
  --lord-icon-secondary: #e53e3e;

  /* Brains Accounting chatbot Colors */
  --chat--color-light: #1a1d23;
  --chat--color-light-shade-50: #252932;
  --chat--color-light-shade-100: #2d323d;
  --chat--color-dark: #e9ecef;
  --chat--color-medium: #8b9bb4;
  --chat--color-disabled: #5a6578;
  --chat--color-typing: #8b9bb4;

  --chat--message--bot--background: #252932;
  --chat--message--bot--color: #e9ecef;
  --chat--message--bot--border: 1px solid #2d323d;

  --chat--textarea--background: #252932;
  --chat--textarea--border: 1px solid #2d323d;
  --chat--textarea--color: #e9ecef;

  --chat--message--pre--background: rgba(44, 90, 160, 0.15);
  --chat--message--pre--border: 1px solid rgba(44, 90, 160, 0.2);

  --chat--window--box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --chat--window--border: 1px solid #2d323d;
}

/* Apply CSS variables to LordIcon elements */
lord-icon {
  color: var(--lord-icon-primary);
}

/* Target secondary colors using CSS parts */
lord-icon::part(secondary) {
  color: var(--lord-icon-secondary);
}

/* Specific styling for different icon types */
lord-icon[data-icon-type="help"],
lord-icon[data-icon-type="demo"],
lord-icon[data-icon-type="careers"],
lord-icon[data-icon-type="map"] {
  --lord-icon-secondary: var(--lord-icon-secondary);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

::selection {
  color: white;
  background: var(--primary-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 10px 0;
}

.style-center {
  text-align: center !important;
}

.style-margin-right {
  margin-right: 16px !important;
}

.style-padding-top-bottom-32 {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}

.style-opacity {
  opacity: 0.6;
}

.style-row-padding > .style-col {
  padding: 0 8px;
}

.style-col.l3 {
  width: 24.99999%;
}

.fa-bars {
  color: var(--primary);
}

/*  Professional loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

/* Modern Breadcrumb */
.breadcrumb-nav {
  background: var(--light);
  border-bottom: 2px solid var(--primary-light);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.breadcrumb-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.breadcrumb-active .fas.fa-chevron-right {
  color: var(--primary);
  font-size: 0.8rem;
}

/*-----------------------------------Rotating Border-----------------------------------*/

.styles_button__YDNft {
  display: inline-flex;
  box-shadow: none;
  inset: 0;
  cursor: pointer;
  align-items: flex-end;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s ease;
  line-height: 150%;
  outline: none;
}

.styles_variant_pill__TyvvY {
  border-radius: 200px;
}

@keyframes styles_small-sparkle__Fog0U {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.4);
  }

  50% {
    transform: scale(1);
  }

  75% {
    transform: scale(1.4);
  }

  to {
    transform: scale(1);
  }
}

@keyframes styles_big-sparkle__w0G2N {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(0.6);
  }

  50% {
    transform: scale(1);
  }

  75% {
    transform: scale(0.6);
  }

  to {
    transform: scale(1);
  }
}

.styles_featuredButton__zj76v {
  position: relative;
  padding: 1px !important;
  border: 0 !important;
  overflow: hidden;
  color: white;
}

[data-theme="midnight"]
  .styles_featuredButton__zj76v
  .styles_featuredButtonContent__DVHK_ {
  background: var(--hyper-09);
}

[data-theme="midnight"]
  .styles_featuredButton__zj76v
  .styles_circleContainer__JKTvt {
  display: block;
}

.styles_featuredButton__zj76v:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(122, 21, 21, 0.4);
}

.styles_featuredButton__zj76v:hover
  .styles_featuredButtonIcon__qmKlU
  svg
  path:first-child {
  animation: styles_small-sparkle__Fog0U 3.3s ease-in-out infinite;
}

.styles_featuredButton__zj76v:hover
  .styles_featuredButtonIcon__qmKlU
  svg
  path:nth-child(2) {
  animation: styles_big-sparkle__w0G2N 3.3s ease-in-out infinite;
}

.styles_featuredButton__zj76v .styles_path__783Mk {
  position: absolute;
  width: 100%;
  height: 100%;
}

.styles_featuredButton__zj76v .styles_circleContainer__JKTvt {
  display: none;
  position: absolute;
  inset: 0;
}

.styles_featuredButton__zj76v
  .styles_circleContainer__JKTvt
  .styles_circleMover__l86dQ {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}

.styles_featuredButton__zj76v
  .styles_circleContainer__JKTvt
  .styles_circleMover__l86dQ
  .styles_circle__Ky5nK {
  position: relative;
  width: 60px;
  height: 60px;
  background-image: radial-gradient(var(--redis-red) 40%, transparent 60%);
  transition: opacity 0.2s ease-in-out;
  border-radius: 50%;
}

.styles_featuredButton__zj76v .styles_featuredButtonContent__DVHK_ {
  padding: 5px 16px 5px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-radius: 200px;
  width: 100%;
  height: 100%;
  transition: background-color 0.4s ease-in-out;
}

@media (max-width: 768px) {
  .styles_featuredButton__zj76v .styles_featuredButtonContent__DVHK_ {
    padding: 5px 10px 5px 8px;
  }
  .styles_button__YDNft {
    font-size: 12px;
  }
}

.styles_featuredButton__zj76v .styles_buttonText__3xbJn,
.styles_featuredButton__zj76v .styles_featuredButtonIconContainer__s1kUE {
  position: relative;
  z-index: 2;
}

.styles_featuredButtonIconContainer__s1kUE {
  padding-bottom: 2px;
}

.styles_featuredButtonIconContainer__s1kUE.styles_theme_midnight__brLAf {
  color: goldenrod;
}

.styles_featuredButtonIcon__qmKlU {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  stroke-width: inherit;
  position: relative;
  overflow: hidden;
  width: 16px;
  height: 16px;
}

.styles_featuredButtonIcon__qmKlU svg path {
  transform-origin: center;
  transform-box: fill-box;
}

.styles_featuredButtonIcon__qmKlU svg path:first-child,
.styles_featuredButtonIcon__qmKlU svg path:nth-child(2) {
  transition: 0.2s ease-in-out;
}

/*-----------------------------------Chatbot-----------------------------------*/

.chat-header {
  background: linear-gradient(
    135deg,
    var(--chat--color--primary) 0%,
    var(--chat--color--primary-shade-50) 100%
  ) !important;
  position: relative;
}

.chat-header::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #20b69e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.chat-heading h1 {
  font-weight: 600;
  margin-left: 1.5rem; /* Space for the pulsing dot */
}

.chat-button:hover {
  background-color: var(--chat--color--primary-shade-50);
}

.chat-button {
  background-color: var(--chat--color--primary);
}
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Remove "Powered by n8n"  */
.chat-footer > :not(.chat-input) {
  display: none !important;
}

[data-theme="dark"] .chat-window {
  background: #1a1d23;
}

[data-theme="dark"] .chat-message-from-bot {
  background: #252932 !important;
  color: #e9ecef !important;
  border: 1px solid #2d323d !important;
}

[data-theme="dark"] .chat-message-from-bot .chat-message-markdown {
  color: #e9ecef !important;
}

[data-theme="dark"] .chat-input textarea {
  background: #252932 !important;
  color: #e9ecef !important;
  border: 1px solid #2d323d !important;
}

[data-theme="dark"] .chat-input textarea::placeholder {
  color: #8b9bb4 !important;
}

[data-theme="dark"] .chat-body {
  background: #1a1d23 !important;
}

[data-theme="dark"] .chat-messages-list {
  background: #1a1d23 !important;
}

/* Ensure gradient works in both themes */
.chat-header {
  background: linear-gradient(
    135deg,
    var(--chat--color--primary) 0%,
    var(--chat--color--primary-shade-50) 100%
  ) !important;
}

/* Fix toggle button position */
.chat-window-toggle {
  background: var(--chat--color--primary) !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3) !important;
}

.chat-window-toggle:hover {
  background: var(--chat--color--primary-shade-50) !important;
}

.chat-window-toggle:active {
  background: var(--chat--color--primary--shade-100) !important;
}

/* Message styling */
.chat-message-from-user {
  background: var(--chat--color--primary) !important;
  color: white !important;
}

.chat-message-from-bot {
  background: var(--chat--color-light) !important;
  color: var(--chat--color-dark) !important;
  border: 1px solid var(--chat--color-light-shade-100) !important;
}

/*-----------------------------------Section-----------------------------------*/
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
  line-height: 1.3;
}

.section-title span {
  color: var(--primary);
  position: relative;
}

.section-title span::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

.section-subtitle span {
  color: var(--primary);
  font-weight: 800;
}

body {
  background-color: #f9f9f9;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1330px;
  margin: 0 auto;
  padding: 20px;
}

.containerNoPadding {
  max-width: 1330px;
  margin: 0 auto;
}

[data-theme="dark"] .section-title {
  color: var(--text-color);
}

[data-theme="dark"] .section-subtitle {
  color: var(--gray);
}

/*-----------------------------------Header-----------------------------------*/
header {
  background: var(--white);
  box-shadow: 0 4px 8px 0 #a07d7d, 0 6px 20px 0 rgba(189, 43, 43, 0.19);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header {
  margin-right: 15px;
  height: 60px;
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
}

header nav ul {
  display: flex;
  list-style: none;
}

header nav ul li {
  margin-left: 30px;
}

header nav ul li a {
  display: inline-block;
  text-decoration: none;
  margin: auto;
  color: var(--dark);
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s;
  position: relative;
  opacity: 0;
  animation: slideTop 0.5s ease forwards;
  animation-delay: calc(0.2s * var(--i));
}

header nav ul li a:hover {
  color: var(--primary);
}

header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

header nav ul li a:hover::after {
  width: 100%;
}

.burger-menu {
  background: transparent;
  border: none;
  padding: 1rem;
  display: none;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.logo {
  display: flex;
  align-items: center;
  opacity: 0;
  animation: slideRight 1s ease forwards;
}

.logo h1:hover {
  color: var(--primary-light-super);
}

.logo a {
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.logo img {
  height: 40px;
  border-radius: 50%;
}

.logo > a:hover > img {
  filter: brightness(1.3) drop-shadow(0 0 0.4rem var(--primary-light));
  transition: var(--transition);
}

.logo h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  padding-left: 8px;
}

.logo span {
  color: var(--dark);
}

/* 4. Professional focus states for accessibility */
.btns:focus-visible,
header nav ul li a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navhelpcenter {
  opacity: 0;
  transition: 0.3s;
  animation: slideLeft 1s ease forwards;
}

.whitemode {
  color: var(--dark);
  font-weight: 500;
}

/* Hide mobile-only items on desktop */
.mobile-only {
  display: none;
}

@media (max-width: 992px) {
  .mobile-only {
    display: block;
  }

  /* Hide on mobile */
  .desktop-only {
    display: none !important;
  }

  /* Show burger menu */
  .burger-menu {
    display: block;
  }
}

/*-----------------------------------Footer-----------------------------------*/
footer {
  background: #2d3748;
  color: #f9f9f9;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.footer-column p {
  margin-bottom: 20px;
  color: #cbd5e0;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #f9f9f9;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links i {
  margin-right: 10px;
  color: var(--primary);
}

.footer-languages i {
  margin-right: 10px;
  color: var(--primary);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0aec0;
  font-size: 0.9rem;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 0.18rem solid;
  border-radius: 50%;
  font-size: 1.5rem;
  border-color: var(--gray);
  color: var(--dark);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  text-decoration: none;
  margin: 0.5rem 1rem 1.5rem 0;
  transition: 0.5s ease;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: calc(0.2s * var(--i));
}

.social-media a:hover {
  background: var(--primary);
  box-shadow: var(--shadow);
}

.btns {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  padding: 0.6rem 0.8rem;
  border-radius: 2rem;
  display: inline-flex;
      align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: 0.1rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(122, 21, 21, 0.3);
}

.btns:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(122, 21, 21, 0.4);
}

/*-----------------------------------Dark mode transition-----------------------------------*/
* {
  transition: background-color 0.3s ease, border-color 0.3s ease,
    color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background: var(--light-gray);
  border-radius: 25px;
  border: none;
  cursor: pointer;
  margin-left: 20px;
  display: flex;
  align-items: center;
  padding: 0 5px;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.3s ease;
  left: 4px;
}

[data-theme="dark"] .theme-toggle::before {
  transform: translateX(30px);
}

.theme-toggle i {
  font-size: 14px;
  z-index: 1;
}

.theme-toggle .fa-sun {
  color: #f59e0b;
  margin-right: auto;
}

.theme-toggle .fa-moon {
  color: #f7fafc;
  margin-left: auto;
}

[data-theme="dark"] body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

[data-theme="dark"] header {
  background: var(--white);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] ::selection {
  background: var(--primary);
  color: white;
}

/*-----------------------------------KEYFRAMES ANIMATION-----------------------------------*/
@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-100%, 0);
  }
}

@keyframes slideRight {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }

  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes slideLeft {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }

  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes slideTop {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }

  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

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

  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@keyframes slide-in {
  0% {
    opacity: 0;
    transform: translateY(50%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

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

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }

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

  100% {
    transform: translateY(0);
  }
}

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

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/*-----------------------------------Responsive Design-----------------------------------*/
@media (max-width: 992px) {
  header nav ul {
    display: none;
    position: fixed;
    top: 71px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
  }

  header nav ul.active {
    display: flex;
    align-items: center;
    font-size: 1.8em;
    transform: translateY(0);
    opacity: 1;
  }

  .burger-menu {
    display: block;
  }

  .theme-toggle {
    margin-left: 10px;
  }

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

  .answer-block {
    flex-direction: column;
  }

  .header {
    padding: 2rem 3%;
  }


  .portfolio {
    padding-bottom: 7rem;
  }

  .contact {
    min-height: auto;
  }

  .footer {
    padding: 2rem 3%;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.6rem;
  }

  .home {
    flex-direction: column;
    padding: 80px 5% 0;
  }

  .bg-video video {
    filter: brightness(0.25);
  }

  .home-content {
    text-align: center;
  }

  .home-img img {
    margin-top: 2rem;
  }

  .home-content h3 {
    font-size: 1.6rem;
  }

  .home-content h1 {
    font-size: 2.6rem;
  }

  .gradient-card-wrapper {
    padding: 1rem;
  }

  .gradient-card-content {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 2rem;
    text-align: center;
  }

  .gradient-card-content .home-content {
    text-align: center;
    max-width: 100%;
  }

  .gradient-card-content .home-content h1 {
    font-size: 2.5rem;
  }

  .gradient-card-content .home-content h3 {
    font-size: 1.4rem;
  }

  .gradient-card-content .home-img img {
    max-width: 300px;
  }

  .effect-gradient {
    width: 250px;
    height: 250px;
    filter: blur(50px);
  }

  .about {
    flex-direction: column-reverse;
  }

  .about-img img {
    width: 50vw;
    margin-top: 4rem;
  }
}

@media (max-width: 600px) {
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }

  .logo h1 {
    font-size: 1.6rem;
  }

  .btns {
    font-size: 0.875rem;
  }

  .gradient-card-content .btns {
    font-size: 0.8rem;
  }

  .social-media a {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.1rem;
    border: 0.12rem solid var(--primary);
  }

  .about-content p {
    font-size: 1rem;
  }

  .details h1 {
    font-size: 1.6em;
  }

  .details h2 {
    font-size: 1em;
  }

  .details .tags {
    font-size: 0.7em;
  }

  .details .cardfeatures ul li {
    font-size: 0.8em;
  }

  .contact form .input-box input {
    width: 100%;
  }

  .home-img img {
    width: 90vw;
    margin: 0;
  }

}


