/* TeamShipper Blue Gradient Theme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors - Deep blue gradient palette matching hero */
  --primary-bg: #090c12;
  --secondary-bg: #0f1318;
  --tertiary-bg: #141a24;
  --accent-color: #0D6EFD;
  --sec-accent-color: #0b5ed7;
  --accent-glow: rgba(13, 110, 253, 0.25);
  --text-color: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border-color: rgba(255, 255, 255, 0.1);
  
  /* Gradient backgrounds */
  --gradient-section: radial-gradient(circle at 20% 50%, rgba(13, 110, 253, 0.08), transparent 50%),
                      radial-gradient(circle at 80% 50%, rgba(13, 110, 253, 0.05), transparent 40%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;

  /* Container */
  --container-width: 1350px;
  --top-bar-height: 44px;

  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-medium: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--primary-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-color);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

h3 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: var(--spacing-md);
}

.text-accent {
  color: #0D6EFD;
  /* Fallback */
  color: var(--accent-color);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(135deg, #0D6EFD 0%, #0b5ed7 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: linear-gradient(135deg, #0b5ed7 0%, #0a4fc4 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.4);
  color: #fff;
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  align-content: center;
  font-size: 1rem;
}

.btn-outline::before {
  display: none;
}

.btn-outline:hover {
  background: #fff;
  color: #0D6EFD;
  border-color: #fff;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-dark {
  background: linear-gradient(135deg, #1a1f2e 0%, #0f1318 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-dark:hover {
  background: linear-gradient(135deg, #252b3d 0%, #1a1f2e 100%);
  border-color: rgba(13, 110, 253, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Header - Transparent that changes on scroll */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.5s ease;
}

.transparent-header {
  background-color: transparent;
  box-shadow: none;
}

.solid-header {
  background-color: rgba(9, 12, 18, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: block;
}

.logo {
  height: 60px;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-menu li {
  display: flex;
  align-items: center;
}

.nav-menu a {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-medium);
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
  width: 100%;
}

.contact-btn {
  background: linear-gradient(135deg, #0D6EFD 0%, #0b5ed7 100%);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 2rem;
  border: none;
}

.contact-btn:hover {
  background: linear-gradient(135deg, #0b5ed7 0%, #0a4fc4 100%);
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.contact-btn.active {
  background: linear-gradient(135deg, #0b5ed7 0%, #0a4fc4 100%);
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  padding-top: 200px;
  /* Account for header */
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 2.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.942);
}

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

.hero-buttons .btn {
  min-width: 250px;
  padding: 0.95rem 2.4rem;
  font-size: 1.3rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* About Section */
.about {
  padding: var(--spacing-xl) 0;
  background: var(--gradient-section), var(--secondary-bg);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-content h2 {
  margin-bottom: var(--spacing-lg);
  color: var(--text-color);
}

.about-content p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

.about-image {
  height: 400px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* Services Section */
.services {
  padding: var(--spacing-xl) 0;
  background: var(--gradient-section), var(--primary-bg);
}

.services-title-index {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

/* Grid variations based on card count */
.services-grid.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.services-grid.grid-6 {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  background: var(--gradient-card), var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-medium);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
  border-color: rgba(13, 110, 253, 0.3);
}

.service-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.service-content {
  padding: var(--spacing-lg);
}

.service-content h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-color);
}

.service-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* Added service icon styles */
.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  max-width: 100%;
  max-height: 100%;
}

/* Portfolio/Projects Section */
.portfolio {
  padding: var(--spacing-xl) 0;
  background-color: var(--secondary-bg);
}

.portofolio-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.portfolio-item {
  position: relative;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-md);
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.portfolio-overlay p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.view-all-btn {
  display: block;
  width: 200px;
  margin: 0 auto;
  text-align: center;
}

/* Stats Section */
.stats-section {
  padding: var(--spacing-xl) 0;
  background: radial-gradient(circle at 50% 50%, rgba(13, 110, 253, 0.1), transparent 60%), var(--secondary-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  text-align: center;
}

.stat-item h3 {
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: var(--spacing-sm);
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 1.4rem;
}

/* Testimonials */
.testimonial {
  padding: var(--spacing-xl) 0;
  background: var(--gradient-section), var(--primary-bg);
  text-align: left;
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-title {
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.testimonial-content {
  font-size: 1.4rem;
  font-style: italic;
  position: relative;
  padding: 0 var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.testimonial-content::before {
  content: '"';
  font-size: 6rem;
  position: absolute;
  top: -3rem;
  left: 0;
  color: var(--accent-color);
  opacity: 0.3;
  font-family: Arial, sans-serif;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-color);
}

.testimonial-company {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Added testimonial slider styles */
.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  text-align: center;
  padding: 0 20px;
}

.testimonial-slide blockquote {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-slide cite {
  font-style: normal;
  font-weight: 600;
  color: var(--accent-color);
}

/* CTA Section */
.services-cta {
  padding: var(--spacing-xl) 0;
  background: radial-gradient(circle at 50% 0%, rgba(13, 110, 253, 0.15), transparent 50%),
              var(--secondary-bg);
  text-align: center;
}

.services-cta h2 {
  margin-bottom: var(--spacing-lg);
}

.services-cta p {
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
  color: var(--text-secondary);
}

.cta-btn {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
footer {
  background: linear-gradient(to bottom, var(--secondary-bg), var(--primary-bg));
  padding: var(--spacing-xl) 0 var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-column h3 {
  color: var(--text-color);
  margin-bottom: var(--spacing-lg);
  font-size: 1.2rem;
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #0D6EFD 0%, #0b5ed7 100%);
}

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

.footer-column ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-column ul li a {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* Benefits list styles */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.benefits-list li {
  margin-bottom: 20px;
}

.benefits-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* Modal and Popup Styles */
.project-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 12, 18, 0.95);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  max-width: 1000px;
  margin: 80px auto;
  background: var(--gradient-card), var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  z-index: 2001;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  z-index: 10;
  background: transparent;
  border: none;
}

/* Popups */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-container {
  background-color: var(--secondary-bg);
  max-width: 500px;
  width: 90%;
  padding: 30px;
  border-radius: 8px;
  position: relative;
  text-align: center;
  z-index: 2001;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-color);
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

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

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

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0D6EFD 0%, #0b5ed7 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s, box-shadow 0.3s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #0b5ed7 0%, #0a4fc4 100%);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

/* Basic form styles */
.form-group {
  margin-bottom: 15px;
  flex: 1;
  min-width: 200px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
  /* Updated shadow color */
}

.form-control:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
  transition: var(--transition-fast);
}

a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.form-control,
.btn,
.service-card,
.portfolio-item,
.testimonial-slide {
  border-radius: 8px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--accent-color);
  margin-right: 5px;
}

.error-message {
  background-color: rgba(255, 0, 0, 0.1);
  color: red !important;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  font-size: 12px;
  margin-top: 5px;
}

.error {
  border-color: red !important;
  background-color: rgba(255, 0, 0, 0.05);
}

.input-error {
  border-color: red;
}

.success-message {
  background-color: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: none;
}

.success-message {
  text-align: center;
  padding: 30px;
  background-color: var(--secondary-bg);
  border-radius: 8px;
  display: none;
}

.success-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.hidden {
  display: none !important;
}

.logout-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.logout-btn:hover {
  color: var(--sec-accent-color);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
}

.loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid var(--accent-color);
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background-color: white;
  transition: var(--transition-medium);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -5px);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-medium);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Media queries */
@media (max-width: 992px) {

  .about-container,
  .contact-two-col {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid.grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid.grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .form-group {
    margin-bottom: 12px;
  }

  .hamburger {
    display: block !important;
  }

  /* Hide desktop navigation */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: linear-gradient(180deg, var(--secondary-bg), var(--primary-bg));
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 20px 30px;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
    display: flex;
  }

  .nav-menu > li {
    width: 100%;
    margin-bottom: 0;
    display: block;
  }

  .nav-menu > li > a {
    display: block;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
  }

  /* Dropdown in mobile nav */
  .nav-menu > li.dropdown {
    display: block;
    width: 100%;
  }

  .nav-menu > li.dropdown > a.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu .dropdown-menu {
    position: static !important;
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 0;
    margin: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    transition: max-height 0.3s ease;
  }

  .nav-menu .dropdown.active .dropdown-menu {
    max-height: 400px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu .dropdown-menu li {
    display: block;
    width: 100%;
    margin: 0;
  }

  .nav-menu .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: none;
  }

  .nav-menu .dropdown-menu a:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--accent-color);
  }

  .contact-btn {
    width: 40% !important;
    text-align: center;
    display: block !important;
  }

  /* Prevent body scroll when menu is open */
  .no-scroll {
    overflow: hidden;
  }

  .about-container,
  .contact-two-col {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 576px) {
  :root {
    --spacing-xl: 2.5rem;
    --spacing-lg: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero {
    min-height: 500px;
  }

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

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .services-grid.grid-4,
  .services-grid.grid-6 {
    grid-template-columns: 1fr;
  }

  .stat-item h3 {
    font-size: 2.5rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

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

  /* Better spacing for mobile forms */
  .form-group {
    margin-bottom: 10px;
  }

  /* Ensure buttons are properly sized on small screens */
  .btn, .cta-btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .hero-buttons .btn {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

/* Top Bar Styles */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--top-bar-height);
  background-color: transparent;
  font-size: 0.9rem;
  z-index: 1001;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
}

.top-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: transparent;
  transition: background 0.3s ease;
}

.solid-top-bar {
  background-color: rgba(9, 12, 18, 0.95);
  backdrop-filter: blur(10px);
}

.solid-top-bar::after {
  background: rgba(255, 255, 255, 0.05);
}

.top-bar-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-bar-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.top-bar-link:hover {
  color: var(--accent-color);
}

/* Adjust header position to account for top bar */
header {
  top: var(--top-bar-height);
}

body {
  padding-top: 0;
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown>a {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.dropdown>a.dropdown-toggle {
  pointer-events: auto;
}

.dropdown>a i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.dropdown.active>a i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(145deg, rgba(15, 19, 24, 0.98), rgba(9, 12, 18, 0.98));
  backdrop-filter: blur(10px);
  min-width: 220px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 10px 0;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  list-style: none;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--text-color);
  transition: all 0.3s ease;
  border-bottom: none;
}

.dropdown-menu a:hover {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--accent-color);
  padding-left: 25px;
}

.dropdown-menu a:after {
  display: none;
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: 2rem;
}

.header-cta {
  margin-left: 0;
}

/* Header CTA mobile - consolidated */
@media (max-width: 992px) {
  .header-cta {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .contact-btn {
    width: 70% !important;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    text-align: center;
    margin-left: 0;
  }

  .top-bar-links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .top-bar-link {
    font-size: 0.75rem;
  }
}

/* Checkbox styling improvements */
.checkbox-group {
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-text {
  flex: 1;
  line-height: 1.5;
}

.checkbox-text a {
  color: var(--accent-color);
  text-decoration: underline;
}

.checkbox-text a:hover {
  color: var(--sec-accent-color);
}