@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css");

:root {
  --primary-color: #0c2a4b;
  --secondary-color: #164ca7;
  --accent-color: #2a619e;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 0.75rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

@media (max-width: 768px) {
  .flip-card {
    min-height: 250px !important;
  }

  .flip-card-front,
  .flip-card-back {
    padding: 1.5rem !important;
  }
}

/* Smart Discovery Card Animations */
@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }

  100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
}

.smart-discovery-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.smart-discovery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3) !important;
}

.smart-discovery-card .btn:hover {
  background-color: #f8f9fa !important;
  color: #667eea !important;
}

@media (max-width: 768px) {
  .smart-discovery-card {
    max-width: 100% !important;
    margin: 0 1rem;
  }
}

.resource-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.resource-card:hover .card-img-top {
  transform: scale(1.05);
}

.resource-card:hover .position-absolute {
  opacity: 1 !important;
}

@media (max-width: 576px) {
  .resource-card .card-body {
    padding: 1rem 0.75rem;
  }

  .resource-card .card-title {
    font-size: 1rem;
  }

  .resource-card .card-text {
    font-size: 0.8rem;
  }

  .resource-card ul {
    font-size: 0.75rem !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .resource-card .card-body {
    padding: 1.25rem 1rem;
  }
}

.workspace-feature-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.workspace-feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Ensure revealed workspace feature cards match the dimensions and layout of project cards */
.workspace-feature-card.h-100.scroll-reveal.revealed {
  width: 295px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.feature-card-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-icon-wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.feature-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.feature-icon-circle.feature-icon-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow: 0 8px 16px rgba(40, 167, 69, 0.3);
}

.feature-icon-circle.feature-icon-warning {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  box-shadow: 0 8px 16px rgba(255, 193, 7, 0.3);
}

.feature-icon-circle i {
  font-size: 1.8rem;
  color: #ffffff;
}

.workspace-feature-card:hover .feature-icon-circle {
  transform: scale(1.1) rotate(5deg);
}

.feature-image-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.workspace-feature-card:hover .feature-image {
  transform: scale(1.08);
}

.feature-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.workspace-feature-card:hover .feature-image-overlay {
  opacity: 1;
}

.feature-content {
  padding: 30px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.3;
  transition: color 0.3s ease;
  height: 60px;
}

.workspace-feature-card:hover .feature-title {
  color: #667eea;
}

.feature-description {
  font-size: 0.95rem;
  color: #5a6c7d;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: linear-gradient(135deg, #f0f2ff 0%, #e8ebff 100%);
  color: #667eea;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.feature-tag-success {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #28a745;
}

.feature-tag-warning {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #ff9800;
}

.workspace-feature-card:hover .feature-tag {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .feature-image-container {
    height: 200px;
  }

  .feature-content {
    padding: 25px 20px;
  }

  .feature-title {
    font-size: 1.25rem;
  }

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

  .feature-icon-circle {
    width: 55px;
    height: 55px;
  }

  .feature-icon-circle i {
    font-size: 1.6rem;
  }
}

@media (max-width: 767.98px) {
  .workspace-feature-card {
    margin-bottom: 20px;
  }

  .feature-image-container {
    height: 180px;
  }

  .feature-content {
    padding: 20px 18px;
  }

  .feature-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }

  .feature-description {
    font-size: 0.875rem;
    margin-bottom: 15px;
  }

  .feature-icon-circle {
    width: 50px;
    height: 50px;
    top: 15px;
    right: 15px;
  }

  .feature-icon-circle i {
    font-size: 1.4rem;
  }

  .feature-tag {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
}

@media (max-width: 575.98px) {
  .feature-image-container {
    height: 160px;
    border-radius: 16px 16px 0 0;
  }

  .workspace-feature-card {
    border-radius: 16px;
  }

  .feature-content {
    padding: 18px 16px;
  }

  .feature-title {
    font-size: 1.1rem;
  }

  .feature-description {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .feature-icon-circle {
    width: 45px;
    height: 45px;
  }

  .feature-icon-circle i {
    font-size: 1.3rem;
  }
}

/* Animation on scroll */
@media (prefers-reduced-motion: no-preference) {
  .workspace-feature-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
  }

  .col-lg-4:nth-child(1) .workspace-feature-card {
    animation-delay: 0.1s;
  }

  .col-lg-4:nth-child(2) .workspace-feature-card {
    animation-delay: 0.2s;
  }

  .col-lg-4:nth-child(3) .workspace-feature-card {
    animation-delay: 0.3s;
  }

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

/* Scoped small card for Projects card-body */
.nbfc-small-card {
  width: 100%;
  height: 120px;
  transition: all 0.5s;
  box-shadow: 15px 15px 30px rgba(25, 25, 25, 0.11),
    -15px -15px 30px rgba(60, 60, 60, 0.082);
  text-align: center;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  display: block;
  margin-top: 0;
}

.nbfc-small-card:hover {
  height: 260px;
  background: linear-gradient(360deg, #edededc5 60%, hsla(0, 0%, 13%, 1) 70%);
}

.nbfc-small-card .header {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #212121;
  color: #edededc5;
}

.nbfc-small-card .header .img-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nbfc-small-card .header .img-box svg {
  width: 40px;
  height: 40px;
  display: block;
}

.nbfc-small-card .header .title {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 0 10px 0;
  transition: all 0.5s;
  color: #edededc5;
}

.nbfc-small-card:hover .header {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 96%);
}

.nbfc-small-card .content {
  display: block;
  text-align: left;
  color: #212121;
  margin: 12px 18px;
}

.nbfc-small-card .content p {
  transition: all 0.5s;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #58606a;
}

.nbfc-small-card .content a {
  color: #1d8122;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.nbfc-small-card .content a:hover {
  border-bottom: 1px solid #1d8122;
  padding-bottom: 2px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .workspace-feature-card,
  .feature-image,
  .feature-icon-circle {
    transition: none !important;
    animation: none !important;
  }

  .workspace-feature-card:hover {
    transform: none;
  }
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

.fullpage-wrapper {
  min-height: 100vh;
  overflow-y: visible;
  scroll-behavior: smooth;
}

/* Mobile responsive height for main div */
@media (max-width: 768px) {
  .fullpage-wrapper {
    height: 850px;
    min-height: 850px;
  }
}

@media (max-width: 576px) {
  .fullpage-wrapper {
    height: 850px;
    min-height: 850px;
  }
}

@media (max-width: 480px) {
  .fullpage-wrapper {
    height: 850px;
    min-height: 850px;
  }
}

.fullpage-section {
  min-height: auto;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem 0;
}

/* Responsive padding for fullpage sections */
@media (max-width: 768px) {
  .fullpage-section {
    padding: 1.5rem 0;
  }
}

@media (max-width: 576px) {
  .fullpage-section {
    padding: 1rem 0;
  }
}

/* Ensure proper spacing and layout */
.fullpage-section > .container,
.fullpage-section > .ag-format-container,
.fullpage-section > div {
  width: 100%;
}

.scroll-indicator {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-flow: column nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
}

.scroll-indicator-item {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.scroll-indicator-label {
  font-size: 13px;
  font-weight: 500;
  color: #999;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 14px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateX(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.scroll-indicator-item:hover .scroll-indicator-label {
  opacity: 1;
  transform: translateX(0);
  color: #357abd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.scroll-indicator-item.active .scroll-indicator-label {
  opacity: 1;
  transform: translateX(0);
  color: #4a90e2;
  background: rgba(74, 144, 226, 0.1);
  border-color: rgba(74, 144, 226, 0.3);
  font-weight: 600;
}

/* Dark theme support for scroll indicator */
body[data-theme="dark"] .scroll-indicator-label {
  background: rgba(40, 40, 40, 0.95);
  color: #888;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body[data-theme="dark"] .scroll-indicator-item:hover .scroll-indicator-label {
  color: #60a5fa;
}

body[data-theme="dark"] .scroll-indicator-item.active .scroll-indicator-label {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.3);
}

.scroll-indicator-dot {
  width: 12px;
  height: 12px;
  margin: 0;
  border-radius: 50%;
  z-index: 10;
  outline: 6px solid #ccc;
  outline-offset: -6px;
  box-shadow: 0 0 0 0 #333, 0 0 0 0 rgba(51, 51, 51, 0);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.scroll-indicator-dot:hover {
  outline-color: #357abd;
  transform: scale(1.2);
}

.scroll-indicator-dot.active {
  animation: check 0.4s linear forwards;
}

@keyframes check {
  50% {
    outline-color: #4a90e2;
    box-shadow: 0 0 0 12px #4a90e2, 0 0 0 36px rgba(74, 144, 226, 0.2);
  }

  100% {
    outline-color: #4a90e2;
    box-shadow: 0 0 0 0 #4a90e2, 0 0 0 0 rgba(74, 144, 226, 0);
  }
}

/* Dark theme support for dots */
body[data-theme="dark"] .scroll-indicator-dot {
  outline-color: #555;
}

body[data-theme="dark"] .scroll-indicator-dot:hover {
  outline-color: #60a5fa;
}

body[data-theme="dark"] .scroll-indicator-dot.active {
  outline-color: #60a5fa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  font-size: 16px;
  background-color: #fafafa;
}

.grid-container {
  width: min(75rem, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: var(--spacing-xl);
  padding: var(--spacing-md);
}

.card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color)
  );
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(1) {
  transition-delay: 0.1s;
}
.fade-in:nth-child(2) {
  transition-delay: 0.2s;
}
.fade-in:nth-child(3) {
  transition-delay: 0.3s;
}
.fade-in:nth-child(4) {
  transition-delay: 0.4s;
}

.banner-section {
  min-height: 100vh;
  padding: var(--spacing-2xl) var(--spacing-md);
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.banner-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  pointer-events: none;
}

section.container {
  padding: var(--spacing-2xl) var(--spacing-md);
  scroll-behavior: smooth;
}

#workspaces {
  background: linear-gradient(
    135deg,
    rgba(12, 42, 75, 0.02) 0%,
    rgba(22, 76, 167, 0.05) 100%
  );
  position: relative;
  overflow: hidden;
}

#workspaces::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(22, 76, 167, 0.08) 0%,
    transparent 50%
  );
  pointer-events: none;
}

section.bg-light,
section.apps {
  background: var(--bg-light);
  padding: var(--spacing-2xl) var(--spacing-md);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.app-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.app-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.app-content h3 {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  font-weight: 600;
}

.app-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  flex-grow: 1;
}

.app-link,
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: calc(var(--border-radius) * 0.5);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Different font styles for different button types */
.btn-primary {
  font-family: "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.btn-outline-secondary,
.secondary-btn {
  font-family: "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.primary-btn {
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tools-nav-btn {
  font-family: "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: capitalize;
}

#btn-back-to-top {
  font-family: "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0a2340, #1340a0);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.ag-format-container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.ag-courses_box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  padding: var(--spacing-2xl) 0;
}

.ag-courses_item {
  border-radius: calc(var(--border-radius) * 1.5);
  overflow: hidden;
  transition: var(--transition);
}

.ag-courses_item:hover {
  transform: translateY(-4px);
}

.ag-courses-item_link {
  display: block;
  padding: var(--spacing-xl);
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  );
  color: white;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ag-courses-item_link:hover,
.ag-courses-item_link:focus {
  color: white;
  text-decoration: none;
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.ag-courses-item_link:hover .ag-courses-item_bg {
  transform: scale(12);
  opacity: 0.9;
}

.ag-courses-item_title {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  z-index: 2;
  position: relative;
  margin: 0;
}

.ag-courses-item_bg {
  height: 120px;
  width: 120px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
  position: absolute;
  top: -60px;
  right: -60px;
  border-radius: 50%;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-courses_item:nth-child(2n) .ag-courses-item_bg {
  background: rgba(62, 205, 94, 0.3);
}
.ag-courses_item:nth-child(3n) .ag-courses-item_bg {
  background: rgba(228, 64, 2, 0.3);
}
.ag-courses_item:nth-child(4n) .ag-courses-item_bg {
  background: rgba(149, 42, 255, 0.3);
}
.ag-courses_item:nth-child(5n) .ag-courses-item_bg {
  background: rgba(205, 62, 148, 0.3);
}
.ag-courses_item:nth-child(6n) .ag-courses-item_bg {
  background: rgba(76, 73, 234, 0.3);
}

.fade-in-low-delay {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.1s;
}

.fade-in-low-delay.show {
  opacity: 1;
  transform: translateY(0);
}

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

.fade-down {
  animation: fadeDown 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@media (max-width: 768px) {
  .banner-section {
    min-height: 80vh;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
  }

  .ag-format-container {
    padding: 0 var(--spacing-sm);
  }

  .ag-courses_box {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .ag-courses-item_title {
    font-size: 1.25rem;
  }

  .ag-courses-item_link {
    padding: var(--spacing-lg);
    min-height: 140px;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .feature-card {
    margin-bottom: var(--spacing-xl);
  }
}

@media (max-width: 480px) {
  .ag-courses-item_title {
    font-size: 1.1rem;
  }

  .banner-title {
    font-size: 2rem !important;
  }

  .display-5 {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in,
  .fade-in-low-delay,
  .fade-down {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

*:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.ag-courses-item_link:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
}

@media print {
  .banner-section {
    break-inside: avoid;
  }

  .ag-courses_item,
  .app-card,
  .feature-card {
    break-inside: avoid;
    margin-bottom: var(--spacing-lg);
  }

  .fade-in,
  .fade-in-low-delay {
    opacity: 1 !important;
    transform: none !important;
  }
}

#btn-back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  transform: scale(0.8) translateY(100px);
  opacity: 0;
  z-index: 1000;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0c2a4b, #164ca7);
  border: none;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  outline: none;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(12, 42, 75, 0.3);
}

#btn-back-to-top.show {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

#btn-back-to-top:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 16px rgba(12, 42, 75, 0.4);
}

#btn-back-to-top:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

#btn-back-to-top i {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

#btn-back-to-top:hover i {
  transform: translateY(-2px);
}

.banner-section {
  background: linear-gradient(
    135deg,
    rgba(12, 42, 75, 0.05) 0%,
    rgba(22, 76, 167, 0.1) 100%
  );
  position: relative;
  overflow: hidden;
}

.banner-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(22, 76, 167, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.banner-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, #0c2a4b, #164ca7, #2a619e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.banner-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #4a5568;
  max-width: 600px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0c2a4b, #164ca7, #2a619e);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-card h5 {
  color: #1a202c;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card img {
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.hub-spoke-section {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  position: relative;
}

.hub-circle {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(22, 76, 167, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.hub-circle:hover {
  transform: scale(1.05);
}

/* ========== MODERN VISUAL ENHANCEMENTS ========== */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced workspace feature cards */
.workspace-feature-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.workspace-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.workspace-feature-card:hover::before {
  opacity: 1;
}

.workspace-feature-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

/* Enhanced feature images */
.feature-image-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.workspace-feature-card:hover .feature-image {
  transform: scale(1.1) rotate(1deg);
}

.feature-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(102, 126, 234, 0.2),
    rgba(118, 75, 162, 0.2)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.workspace-feature-card:hover .feature-image-overlay {
  opacity: 1;
}

/* Enhanced icon animations */
.feature-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-icon-circle::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
  background-size: 400% 400%;
  border-radius: 50%;
  z-index: -1;
  animation: iconBorderGlow 4s ease infinite;
  opacity: 0.7;
}

.feature-icon-circle.feature-icon-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow: 0 8px 16px rgba(40, 167, 69, 0.3);
}

.feature-icon-circle.feature-icon-success::before {
  background: linear-gradient(45deg, #28a745, #20c997, #17a2b8, #28a745);
}

.feature-icon-circle.feature-icon-warning {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  box-shadow: 0 8px 16px rgba(255, 193, 7, 0.3);
}

.feature-icon-circle.feature-icon-warning::before {
  background: linear-gradient(45deg, #ffc107, #ff9800, #ff5722, #ffc107);
}

.feature-icon-circle i {
  font-size: 1.8rem;
  color: #ffffff;
  transition: all 0.3s ease;
}

.workspace-feature-card:hover .feature-icon-circle {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.4);
}

.workspace-feature-card:hover .feature-icon-circle i {
  transform: scale(1.1);
}

@keyframes iconBorderGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Enhanced content areas */
.feature-content {
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.workspace-feature-card:hover .feature-title {
  color: #667eea;
}

.feature-description {
  font-size: 0.95rem;
  color: #5a6c7d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Enhanced feature tags */
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.feature-tag:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.feature-tag.feature-tag-success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border-color: rgba(40, 167, 69, 0.2);
}

.feature-tag.feature-tag-success:hover {
  background: rgba(40, 167, 69, 0.2);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.feature-tag.feature-tag-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border-color: rgba(255, 193, 7, 0.2);
}

.feature-tag.feature-tag-warning:hover {
  background: rgba(255, 193, 7, 0.2);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Responsive improvements */
@media (max-width: 1200px) {
  .workspace-feature-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 992px) {
  .feature-image-container {
    height: 200px;
  }

  .feature-content {
    padding: 1.5rem;
  }

  .feature-title {
    font-size: 1.15rem;
  }

  .feature-icon-circle {
    width: 55px;
    height: 55px;
  }

  .feature-icon-circle i {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .workspace-feature-card {
    margin: 0 1rem 2rem;
  }

  .feature-image-container {
    height: 180px;
  }

  .feature-content {
    padding: 1.25rem;
  }

  .feature-title {
    font-size: 1.1rem;
    text-align: center;
  }

  .feature-description {
    font-size: 0.9rem;
    text-align: center;
  }

  .feature-tags {
    justify-content: center;
  }

  .feature-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .feature-icon-circle {
    width: 50px;
    height: 50px;
  }

  .feature-icon-circle i {
    font-size: 1.4rem;
  }
}

@media (max-width: 576px) {
  .workspace-feature-card {
    margin: 0 0.5rem 1.5rem;
    border-radius: 16px;
  }

  .feature-image-container {
    height: 160px;
    border-radius: 16px 16px 0 0;
  }

  .feature-content {
    padding: 1rem;
  }

  .feature-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .feature-description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .feature-tags {
    gap: 0.25rem;
  }

  .feature-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Touch device optimizations */
@media (pointer: coarse) {
  .workspace-feature-card:hover {
    transform: none;
  }

  .workspace-feature-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .feature-tag:hover {
    transform: none;
  }

  .feature-tag:active {
    transform: scale(0.96);
  }
}

/* Accessibility improvements */
.workspace-feature-card:focus-within {
  outline: 3px solid rgba(102, 126, 234, 0.5);
  outline-offset: 4px;
}

.feature-tag:focus {
  outline: 2px solid rgba(102, 126, 234, 0.5);
  outline-offset: 2px;
}

/* Performance optimizations */
.workspace-feature-card,
.feature-image,
.feature-icon-circle {
  will-change: transform;
  backface-visibility: hidden;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .workspace-feature-card,
  .feature-image,
  .feature-icon-circle,
  .feature-tag {
    transition: none !important;
    animation: none !important;
  }

  .workspace-feature-card:hover,
  .workspace-feature-card:hover .feature-image,
  .workspace-feature-card:hover .feature-icon-circle {
    transform: none !important;
  }
}

/* 3D Flip Card Styles for Projects Features Section */
.wrapper {
  width: 90%;
  margin: 0 auto;
  max-width: 80rem;
}

.cols {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.col {
  width: 500px;
  height: 400px;
  margin: 1rem;
  cursor: pointer;
}

.container {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  width: 100%;
  height: 100%;
}

.front,
.back {
  background-size: cover;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  background-position: center;
  -webkit-transition: -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  -o-transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1),
    -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  text-align: center;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  color: #fff;
  font-size: 1.5rem;
}

.back {
  background-image: linear-gradient(to left bottom, #051937, #1d223e, #2e2d45, #3d384c, #4b4453);
}

.front:after {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  content: "";
  display: block;
  opacity: 0.6;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
}
.col .container:hover .front,
.col .container:hover .back {
  -webkit-transition: -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  -o-transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1),
    -webkit-transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.inner {
  -webkit-transform: translateY(-50%) translateZ(60px) scale(0.94);
  transform: translateY(-50%) translateZ(60px) scale(0.94);
  top: 50%;
  position: absolute;
  left: 0;
  width: 100%;
  padding: 2rem;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  outline: 1px solid transparent;
  -webkit-perspective: inherit;
  perspective: inherit;
  z-index: 2;
}

.col .container .back {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.col .container .front {
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.col .container:hover .back {
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.col .container:hover .front {
  -webkit-transform: rotateY(-180deg);
  transform: rotateY(-180deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.front .inner p {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.front .inner p:after {
  content: "";
  width: 4rem;
  height: 2px;
  position: absolute;
  background: #c6d4df;
  display: block;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: -0.75rem;
}

.front .inner span {
  color: rgba(255, 255, 255, 0.7);
  font-family: "Montserrat";
  font-weight: 300;
}

@media screen and (max-width: 64rem) {
  .col {
    width: 500px;
    height: 700px;
    margin: 1rem auto;
  }
}

@media screen and (max-width: 48rem) {
  .col {
    width: 500px;
    height: 700px;
    margin: 1rem auto;
  }
}

@media screen and (max-width: 32rem) {
  .col {
    width: 500px;
    height: 700px;
    margin: 0 auto 2rem auto;
  }

  /* Scale down for very small screens */
  .cols {
    transform: scale(0.8);
    transform-origin: center;
  }
}


.tools-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(124, 179, 66, 0.1);
}

.tools-carousel {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: 0C2A4B;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.tools-track {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    width: calc(320px * 8 + 2rem * 7 + 4rem); /* 8 cards total including duplicates */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fallback CSS animation for when JavaScript is disabled */
.tools-track:not(.js-controlled) {
    animation: toolsScroll 40s linear infinite;
}

/* CSS class to enable/disable JS control */
.tools-track.js-controlled {
    animation: none !important;
}



.tool-card {
    flex: 0 0 320px;
    height: 480px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(#2A619E);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    background-color: #2A619E;
}

.tool-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(#2A619E);
    border-color: rgba(#2A619E);
}

.tool-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.tool-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 179, 66, 0.8) 0%, rgba(139, 195, 74, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.tool-card:hover .tool-overlay {
    opacity: 1;
}

.tool-category {
    background: rgba(255, 255, 255, 0.9);
    color: #7cb342;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-content {
    padding: 1.5rem;
    height: 260px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: 2A619E;
}

.tool-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.tool-content p {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-link2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #0C2A4B;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.5rem;
  border: 2px solid #0C2A4B;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.tool-link2:hover{
      color: #ffffff;
}

.tool-link2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0C2A4B;
    transition: left 0.3s ease;
    z-index: -1;
}

.tool-link2:hover::before {
    left: 0;
}

.tool-link2 i {
    transition: transform 0.3s ease;
}

.tool-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.5rem;
  border: 2px solid #0C2A4B;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.tool-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0C2A4B;
    transition: left 0.3s ease;
    z-index: -1;
}

.tool-link:hover::before {
    left: 0;
}

/* .tool-link:hover {
    color: #0C2A4B;
    transform: translateY(-2px);
} */

.tool-link i {
    transition: transform 0.3s ease;
}

/* .tool-link:hover i {
    transform: translateX(4px);
} */

.tools-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(124, 179, 66, 0.2);
    border-radius: 0 0 20px 20px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7cb342 0%, #9ccc65 50%, #c5e1a5 100%);
    border-radius: 0 0 24px 24px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    box-shadow: 0 0 20px rgba(124, 179, 66, 0.4);
}

@keyframes toolsScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-320px * 6 - 2rem * 6)); /* Move by 6 original cards */
    }
}

@keyframes progressAnimation {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .tools-section {
        min-height: 80vh !important;
    }
    
    .tools-carousel {
        height: 400px;
    }
    
    .tool-card {
        flex: 0 0 280px;
        height: 360px;
    }
    
    .tool-image {
        height: 160px;
    }
    
    .tool-content {
        height: 200px;
        padding: 1.25rem;
    }
    
    .tool-content h3 {
        font-size: 1.2rem;
    }
    
    .tool-content p {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .tools-track {
        width: calc(280px * 8 + 1.5rem * 7 + 4rem);
        gap: 1.5rem;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@media (max-width: 576px) {
    .tools-section {
        min-height: 75vh !important;
    }
    
    .tools-carousel {
        height: 350px;
    }
    
    .tool-card {
        flex: 0 0 260px;
        height: 310px;
    }
    
    .tool-image {
        height: 140px;
    }
    
    .tool-content {
        height: 170px;
        padding: 1rem;
    }
    
    .tool-content h3 {
        font-size: 1.1rem;
    }
    
    .tool-content p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .tools-track {
        width: calc(260px * 8 + 1rem * 7 + 2rem);
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .tools-section {
        min-height: 70vh !important;
    }
    
    .tools-carousel {
        height: 320px;
    }
    
    .tool-card {
        flex: 0 0 240px;
        height: 280px;
    }
    
    .tool-image {
        height: 120px;
    }
    
    .tool-content {
        height: 160px;
        padding: 1rem;
    }
    
    .tool-content h3 {
        font-size: 1rem;
    }
    
    .tool-content p {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .tools-track {
        width: calc(240px * 8 + 1rem * 7 + 2rem);
        gap: 1rem;
        padding: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .tools-track,
    .progress-bar {
        animation: none !important;
    }
    
    .tool-card:hover {
        transform: none !important;
    }
}

/* Tools Carousel Navigation Buttons */
.tools-carousel-container {
    position: relative;
}

/* Auto-scroll animation */
.tools-track {
    animation: autoScroll 50s linear infinite;
}

@keyframes autoScroll {
    0% { transform: translateX(0); }
    16.66% { transform: translateX(-352px); }
    33.33% { transform: translateX(-704px); }
    50% { transform: translateX(-1056px); }
    66.66% { transform: translateX(-1408px); }
    83.33% { transform: translateX(-1760px); }
    100% { transform: translateX(-2112px); }
}

.tools-nav-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.tools-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #2A619E;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.tools-nav-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(#2A619E, 0.4);
    background: #0C2A4B;
}

.tools-nav-btn:active {
    transform: scale(0.95);
}

.tools-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: linear-gradient(135deg, #ccc 0%, #aaa 100%);
}

.tools-nav-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(124, 179, 66, 0.1);
}

/* Progress bar styling to accommodate buttons */
.tools-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(124, 179, 66, 0.15);
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7cb342 0%, #9ccc65 50%, #c5e1a5 100%);
    border-radius: 0 0 24px 24px;
    animation: progressAnimation 50s linear infinite;
    box-shadow: 0 0 20px rgba(124, 179, 66, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tools-nav-btn {
        width: 160px !important;
        height: 160px !important;
        font-size: 3.6rem !important;
    }
    
    .tools-nav-container {
        gap: 2rem !important;
        padding-top: 50px !important;
        padding-bottom: 50px !important;
        bottom: 8px;
    }
}

@media (max-width: 480px) {
    .tools-nav-container {
        display: none;
    }
}
