/* ==========================================================================
   Base & Resets (Mobile First)
   ========================================================================== */
:root {
  /* Colors */
  --royal-50: #f0f4f8;
  --royal-100: #cce0ff;
  --royal-200: #99bbff;
  --royal-300: #6699ff;
  --royal-400: #3366cc;
  --royal-500: #0052a3;
  --royal-600: #004080;
  --royal-700: #003366;
  --royal-800: #00264d;
  --royal-900: #001a33;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --green-50: #f0fdf4;
  --green-100: #dcfce3;
  --green-200: #bbf7d0;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --red-100: #fee2e2;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --yellow-500: #eab308;
  --orange-400: #fb923c;
  --orange-600: #ea580c;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;

  --white: #ffffff;
  --transparent: transparent;

  /* Typography */
  --font-sans: "Roboto", sans-serif;
  --font-header: "Oswald", sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-700);
  background-color: var(--slate-50);
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  border: none;
  outline: none;
  width: 100%;
}

ul {
  list-style: none;
}

::selection {
  background-color: var(--royal-400);
  color: var(--white);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 999;
  background: var(--royal-700);
  color: var(--white);
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.75rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

/* ==========================================================================
   Animations - GPU Accelerated
   ========================================================================== */
@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  100% {
    transform: rotate(-360deg);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translate3d(0, -15%, 0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: translate3d(0, 0, 0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.gear-spin {
  animation: spin 10s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.gear-spin-reverse {
  animation: spin-reverse 15s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 2s infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.animate-marquee {
  animation: marquee 30s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

/* Reduce motion for accessibility */
@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;
  }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  width: 100%;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid var(--slate-100);
  top: 0;
  background: var(--white);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.nav-brand:focus-visible {
  outline: 3px solid var(--royal-300);
  outline-offset: 4px;
  border-radius: 0.5rem;
}

.nav-brand i {
  color: var(--royal-600);
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .nav-brand i {
    font-size: 1.875rem;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--royal-800);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.025em;
}

@media (min-width: 768px) {
  .brand-title {
    font-size: 1.5rem;
  }
}

.brand-subtitle {
  font-size: 0.5rem;
  color: var(--slate-500);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .brand-subtitle {
    font-size: 0.625rem;
    letter-spacing: 0.15em;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: 2rem;
  }
}

.nav-link {
  color: var(--slate-600);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--royal-600);
}

.btn-contact {
  padding: 0.625rem 1.5rem;
  background-color: var(--royal-600);
  color: var(--white);
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  will-change: transform;
  backface-visibility: hidden;
}

.btn-contact:hover {
  background-color: var(--royal-800);
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--slate-700);
  background-color: var(--slate-50);
  font-size: 1.25rem;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 5rem;
  left: 0;
  width: 100%;
  background: var(--white);
  border-top: 1px solid var(--slate-100);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--slate-700);
  font-weight: 700;
  border-bottom: 1px solid var(--slate-50);
  transition: all 0.3s;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.mobile-nav-link:hover {
  background-color: var(--royal-50);
  color: var(--royal-600);
}

.mobile-nav-admin {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  color: var(--royal-600);
  font-weight: 900;
  background-color: var(--royal-50);
  width: 100%;
  text-transform: uppercase;
  font-size: 0.875rem;
}

/* ==========================================================================
   Global UI Components
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  /* Add this line to prevent text from wrapping */
}

@media (min-width: 640px) {
  .badge {
    font-size: 0.75rem;
  }
}

.badge-hero {
  border: 1px solid rgba(96, 165, 250, 0.3);
  background: rgba(30, 58, 138, 0.3);
  backdrop-filter: blur(12px);
  color: var(--blue-200);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.badge-ping {
  position: relative;
  display: flex;
  height: 0.5rem;
  width: 0.5rem;
}

.badge-ping .ping {
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background-color: var(--green-400);
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

.badge-ping .dot {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  height: 0.5rem;
  width: 0.5rem;
  background-color: var(--green-400);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  width: 100%;
  text-align: center;
  will-change: transform;
  backface-visibility: hidden;
}

@media (min-width: 640px) {
  .btn {
    padding: 1rem 2rem;
    font-size: 0.875rem;
    width: auto;
  }
}

.btn:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background-color: var(--royal-600);
  color: var(--white);
  box-shadow: 0 0 20px rgba(51, 102, 204, 0.4);
}

.btn-primary:hover {
  background-color: var(--royal-500);
}

.btn-success {
  background-color: var(--green-600);
  color: var(--white);
}

.btn-success:hover {
  background-color: var(--green-500);
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section-light {
  background-color: var(--white);
}

.section-alt {
  background-color: var(--slate-50);
}

.section-title-wrap {
  margin-bottom: 3rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-title-wrap {
    margin-bottom: 4rem;
  }
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-badge {
    font-size: 0.75rem;
  }
}

.badge-royal {
  background-color: var(--royal-50);
  color: var(--royal-600);
}

.section-title {
  font-size: 2rem;
  font-family: var(--font-header);
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1.2;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.text-royal {
  color: var(--royal-600);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--slate-900);
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 26, 51, 0.9),
      rgba(15, 23, 42, 0.9));
}

@media (min-width: 768px) {
  .hero-overlay {
    background: linear-gradient(to right,
        rgba(0, 26, 51, 0.95),
        rgba(15, 23, 42, 0.85),
        rgba(15, 23, 42, 0.8));
  }
}

.hero-decor-1 {
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  opacity: 0.1;
  pointer-events: none;
  font-size: 300px;
  color: var(--white);
}

@media (min-width: 768px) {
  .hero-decor-1 {
    right: -8rem;
    bottom: -8rem;
    font-size: 500px;
  }
}

.hero-decor-2 {
  display: none;
}

@media (min-width: 1024px) {
  .hero-decor-2 {
    display: block;
    position: absolute;
    left: -5rem;
    top: 5rem;
    opacity: 0.1;
    pointer-events: none;
    font-size: 250px;
    color: var(--white);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 4rem 0;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-content {
    text-align: left;
    padding: 5rem 0;
  }
}

.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Spacing between the badges */
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  /* This prevents them from overlapping on small screens */
}

@media (min-width: 480px) {
  .hero-badges {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .hero-badges {
    justify-content: flex-start;
  }
}

.hero-title {
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
  }
}

.text-gradient-1 {
  background: linear-gradient(to right, var(--blue-400), var(--royal-400));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.text-gradient-2 {
  background: linear-gradient(to right, var(--royal-300), var(--blue-300));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1rem;
  color: var(--slate-300);
  margin-bottom: 2rem;
  max-width: 100%;
  font-weight: 300;
  line-height: 1.6;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 1.125rem;
    max-width: 48rem;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    margin-bottom: 2.5rem;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    width: auto;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-bar {
  background: linear-gradient(to right, var(--royal-800), var(--royal-900));
  padding: 2rem 1rem;
  position: relative;
  margin: -3rem 1rem 0;
  z-index: 20;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .stats-bar {
    margin: -5rem auto 0;
    max-width: 72rem;
    padding: 3rem 0;
    border-radius: 1.5rem;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.stat-item {
  padding: 0.5rem;
  transition: transform 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.stat-item:hover {
  transform: translate3d(0, -2px, 0);
}

@media (min-width: 768px) {
  .stat-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stat-item:last-child {
    border-right: none;
  }
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--white);
  font-family: var(--font-header);
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }
}

.stat-label {
  color: var(--blue-300);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (min-width: 768px) {
  .stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
  }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-text {
  color: var(--slate-600);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .about-text {
    font-size: 1.125rem;
    line-height: 1.7;
  }
}

.about-text p {
  margin-bottom: 1rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .about-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid var(--slate-100);
  transition: box-shadow 0.3s;
}

@media (min-width: 640px) {
  .feature-box {
    align-items: flex-start;
  }
}

.feature-box:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--royal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--royal-600);
  font-size: 1.125rem;
}

.feature-val {
  display: block;
  font-weight: 900;
  color: var(--slate-800);
  font-size: 1.125rem;
}

.feature-lbl {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 500;
}

.about-certs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .about-certs {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.cert-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  width: 100%;
}

@media (min-width: 480px) {
  .cert-pill {
    width: auto;
    padding: 0.5rem 1rem;
  }
}

.cert-green {
  background-color: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-800);
}

.cert-green i {
  color: var(--green-600);
}

.cert-blue {
  background-color: var(--blue-50);
  border: 1px solid var(--blue-200);
  color: var(--blue-800);
}

.cert-blue i {
  color: var(--blue-600);
}

.about-image-wrapper {
  position: relative;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .about-image-wrapper {
    margin-top: 0;
  }
}

.about-image-bg {
  position: absolute;
  top: -1rem;
  left: -1rem;
  right: -1rem;
  bottom: -1rem;
  background-color: var(--royal-50);
  border-radius: 1.5rem;
  transform: rotate(3deg);
  z-index: 0;
}

.about-img {
  position: relative;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--white);
  z-index: 1;
}

.about-floating-card {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--slate-100);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
}

@media (min-width: 768px) {
  .about-floating-card {
    left: -2.5rem;
    transform: none;
    bottom: -2.5rem;
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid var(--slate-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
}

@media (min-width: 768px) {
  .service-card {
    padding: 2rem;
  }
}

.service-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translate3d(0, -0.25rem, 0);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background-color: var(--royal-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .service-icon {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
  }
}

.service-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--slate-100);
  user-select: none;
  line-height: 1;
}

@media (min-width: 768px) {
  .service-num {
    font-size: 3.75rem;
  }
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
  font-family: var(--font-header);
}

@media (min-width: 768px) {
  .service-title {
    font-size: 1.5rem;
  }
}

.service-list {
  list-style: none;
  color: var(--slate-600);
  font-weight: 500;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .service-list {
    font-size: 1rem;
  }
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.service-list i {
  color: var(--green-500);
  margin-top: 0.25rem;
}

/* ==========================================================================
   Machineries Marquee - Seamless Loop Fix
   ========================================================================== */

.machinery-section {
  overflow: hidden;
  border-top: 1px solid var(--slate-100);
  padding: 4rem 0;
  /* Ensures consistent section spacing */
}

/* ==========================================================================
   Fixed Seamless Marquee Logic
   ========================================================================== */

/* ==========================================================================
   Seamless Marquee - Fixed Action
   ========================================================================== */

.marquee-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  display: flex;
  position: relative;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
  touch-action: pan-x;
}

.marquee-wrapper::-webkit-scrollbar {
  display: none;
}

.marquee-wrapper.is-dragging {
  cursor: grabbing;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: scroll-left 25s linear infinite;
  will-change: transform;
  /* Boosts smoothness on mobile */
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    /* This reset creates the seamless loop */
    transform: translateX(-50%);
  }
}

/* Optional: Pause on hover */
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.mach-card {
  width: 20rem;
  flex-shrink: 0;
  /* Prevents cards from getting squished */
  background-color: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.mach-card:hover {
  transform: translate3d(0, -5px, 0);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.mach-img-wrap {
  width: 100%;
  height: 12rem;
  background-color: var(--slate-100);
  overflow: hidden;
}

.mach-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  backface-visibility: hidden;
  will-change: transform;
}

.mach-card:hover .mach-img-wrap img {
  transform: scale3d(1.1, 1.1, 1);
}

.mach-info {
  padding: 1.5rem;
  text-align: center;
}

.mach-title {
  font-weight: 700;
  color: var(--slate-800);
  font-family: var(--font-header);
  font-size: 1.25rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive Adjustments */
@media (min-width: 640px) {
  .mach-card {
    width: 20rem;
  }

  .mach-img-wrap {
    height: 14rem;
  }
}

@media (max-width: 768px) {
  .marquee-track {
    animation-duration: 20s;
    /* Faster scroll on small screens */
  }
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
/* Scrollable Projects Section */
.projects-container {
  max-height: 500px;
  /* You can change height */
  overflow-y: auto;
  padding-right: 10px;
}

.projects-scroll {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: visible;
  /* allow marquee animation */
  padding-right: 5px;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects-scroll::-webkit-scrollbar {
  display: none;
}

.projects-scroll::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

/* Optional: Custom Scrollbar Design */
.projects-container::-webkit-scrollbar {
  width: 8px;
}

.projects-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.projects-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.projects-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Scroll Hint */
.scroll-hint {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--royal-500);
  animation: bounceHint 1.5s infinite;
}

@keyframes bounceHint {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

.clip-path-slant-reverse {
  padding-top: 4rem;
}

@media (min-width: 768px) {
  .clip-path-slant-reverse {
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    padding-top: 8rem;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background-color: var(--white);
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid var(--slate-200);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  will-change: transform;
  backface-visibility: hidden;
}

@media (min-width: 768px) {
  .project-card {
    padding: 1.5rem;
  }
}

.project-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translate3d(0, -4px, 0);
}

.project-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .project-head {
    gap: 1.25rem;
  }
}

.project-img-wrap {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background-color: var(--slate-100);
  overflow: hidden;
  border: 1px solid var(--slate-200);
}

@media (min-width: 768px) {
  .project-img-wrap {
    width: 4rem;
    height: 4rem;
  }
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  backface-visibility: hidden;
  will-change: transform;
}

.project-card:hover .project-img-wrap img {
  transform: scale3d(1.1, 1.1, 1);
}

.project-name {
  font-weight: 700;
  color: var(--slate-800);
  font-size: 1.125rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  transition: color 0.3s;
}

@media (min-width: 768px) {
  .project-name {
    font-size: 1.25rem;
  }
}

.project-card:hover .project-name {
  color: var(--royal-600);
}

.project-loc {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
}

.project-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.project-status {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-perc {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--slate-800);
}

.progress-bg {
  width: 100%;
  background-color: var(--slate-100);
  border-radius: 9999px;
  height: 0.4rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .progress-bg {
    height: 0.5rem;
  }
}

.progress-bar {
  height: 100%;
  border-radius: 9999px;
  transition: width 1s ease-out;
}

/* Dynamic Database Colors */
.bg-blue-500 {
  background-color: var(--blue-500);
}

.bg-blue-600 {
  background-color: var(--blue-600);
}

.bg-green-500 {
  background-color: var(--green-500);
}

.bg-green-600 {
  background-color: var(--green-600);
}

.bg-yellow-500 {
  background-color: var(--yellow-500);
}

.bg-red-500 {
  background-color: var(--red-500);
}

.bg-purple-500 {
  background-color: var(--purple-500);
}

.bg-orange-500 {
  background-color: var(--orange-600);
}

.bg-royal-600 {
  background-color: var(--royal-600);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  background-color: var(--slate-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .contact-section {
    padding: 6rem 0;
  }
}

.contact-decor {
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  font-size: 200px;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

@media (min-width: 768px) {
  .contact-decor {
    right: -6rem;
    bottom: -6rem;
    font-size: 400px;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: flex-start;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .contact-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .contact-links {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, transform 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}

@media (min-width: 768px) {
  .contact-card {
    gap: 1.25rem;
    padding: 1.25rem;
  }
}

.contact-card:hover {
  border-color: rgba(0, 82, 163, 0.5);
  transform: translate3d(0, -2px, 0);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

@media (min-width: 768px) {
  .contact-icon {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.contact-card:hover .contact-icon {
  transform: rotate(12deg);
}

.bg-green-600 {
  background-color: var(--green-600);
}

.bg-orange-600 {
  background-color: var(--orange-600);
}

.contact-lbl {
  font-weight: 700;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.6rem;
  margin-bottom: 0.25rem;
}

.contact-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
  word-break: break-all;
}

@media (min-width: 768px) {
  .contact-val {
    font-size: 1.25rem;
    word-break: normal;
  }
}

.contact-card:hover .contact-val {
  color: var(--royal-400);
}

.contact-address {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-200);
  line-height: 1.5;
}

.contact-form-wrap {
  background-color: var(--white);
  border-radius: 1.5rem;
  padding: 1.5rem;
  color: var(--slate-800);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--slate-100);
}

@media (min-width: 768px) {
  .contact-form-wrap {
    padding: 3rem;
    border-radius: 2rem;
  }
}

.form-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  font-family: var(--font-header);
}

@media (min-width: 768px) {
  .form-title {
    font-size: 1.875rem;
  }
}

.form-subtitle {
  color: var(--slate-500);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .form-subtitle {
    font-size: 0.875rem;
    margin-bottom: 2rem;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }
}

.form-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  margin-left: 0.25rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  font-size: 0.875rem;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

@media (min-width: 768px) {
  .form-control {
    padding: 1rem;
    font-size: 1rem;
  }
}

.form-control:focus {
  box-shadow: 0 0 0 2px var(--royal-500);
  background-color: var(--white);
  border-color: var(--royal-400);
}

textarea.form-control {
  resize: none;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background-color: var(--royal-600);
  color: var(--white);
  font-weight: 900;
  border-radius: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 0 20px rgba(51, 102, 204, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
  touch-action: manipulation;
  cursor: pointer;
}

.btn-submit:hover {
  background-color: var(--royal-700);
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 0 30px rgba(51, 102, 204, 0.4);
}

.btn-submit:active {
  transform: translate3d(0, -2px, 0);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--slate-950);
  color: var(--white);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    text-align: left;
    gap: 1.5rem;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .footer-brand {
    justify-content: flex-start;
  }
}

.footer-brand i {
  color: var(--royal-500);
  font-size: 1.5rem;
}

.footer-brand p {
  font-weight: 900;
  font-size: 1.25rem;
  font-family: var(--font-header);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

@media (min-width: 768px) {
  .footer-brand p {
    font-size: 1.5rem;
  }
}

.footer-desc {
  font-size: 0.8rem;
  color: var(--slate-400);
  font-weight: 500;
}

.footer-addr {
  font-size: 0.7rem;
  color: var(--slate-500);
  margin-top: 0.5rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--slate-500);
}

@media (min-width: 768px) {
  .footer-right {
    align-items: flex-end;
    font-size: 0.875rem;
  }
}

.admin-link {
  color: var(--royal-500);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: all 0.3s;
}

.admin-link:hover {
  color: var(--white);
  background-color: var(--royal-600);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-msg {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(6rem);
  opacity: 0;
  transition: all 0.3s;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
  max-width: calc(100% - 2.5rem);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  background-color: var(--green-600);
}