* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;color: #e0e0e0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
	overflow-y: hidden;
}
footer.footer {
  text-align: center;
  padding: 1.5rem 0;
  background: #18192a;
  color: #00fff7;
  letter-spacing: 1px;
  border-top: 2px solid #ff00cc;
  box-shadow: 0 -2px 16px #ff00cc44;
}

/* --- Footer pinned to bottom --- */
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #18192a;
  color: #fff;
  text-align: center;
  padding: 1.2rem 0 1rem 0;
  font-size: 1rem;
  z-index: 1000;
  box-shadow: 0 -2px 16px #00fff744;
  border-top: 2px solid #00fff7;
  letter-spacing: 1px;
}

/* Add bottom padding to container to prevent overlap with footer */
.container {
  max-width: 900px;
  height: calc(100vh - 35vh);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  isolation: isolate;
  margin-top: 0;
  margin-bottom: 25px;
  overflow: hidden;
  padding-top: 170px; /* Increased from 120px to push container down further */
  padding-bottom: 60px; /* Prevent content from being hidden behind the fixed footer */
}
/* Sticky card effect with 100px header offset */
.card {
  width: 100vw;
  max-width: 900px;
  margin: 0 auto;
  position: absolute;
  top: 70px; /* Pushed down from 0 to 70px to move cards down */
  height: calc(100vh - 35vh);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  background: rgba(20, 22, 40, 0.95);
  border: 1.5px solid #ff00cc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 1;
}
.card:last-child {
  margin-bottom: 0;
}
.card::-webkit-scrollbar {
  display: none;
}
.card h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: white;
}
.card p {
  font-size: 1.2rem;
  max-width: 600px;
  opacity: 0.9;
  color: white;
  margin-bottom: 1rem;
}
.card .feature {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  margin: 15px 0;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}
.card .feature h3 {
  color: white;
  margin-bottom: 10px;
  font-size: 1.3rem;
}
.card .feature p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 0;
}
.nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.nav a {
  color: #333;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav a:hover {
  color: #4834d4;
}
.nav a.active {
  color: #4834d4;
  font-weight: 700;
}
.header {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-bottom: 40px;
}
.header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.header p {
  font-size: 1.2rem;
  opacity: 0.9;
}
.debug-info {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-family: monospace;
  font-size: 12px;
  z-index: 1000;
}

#matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: #061d2b; /* deep neon blue background */
  opacity: 1;
}
body > *:not(#matrix-bg):not(.back-to-top):not(.customer-chat-widget):not(.nav) {
  position: relative;
  z-index: 1;
}
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  background: #18192a;
  color: #fff;
  border-bottom: 2px solid #00fff7;
  box-shadow: 0 2px 16px #00fff744;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
.navbar-logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  height: 48px;
  width: 48px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 0 16px #ff00cc, 0 0 32px #00fff7;
}
.site-title {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ff00cc;
  text-shadow: 0 0 8px #ff00cc, 0 0 16px #00fff7;
  animation: cyberpunkFlicker 2.8s infinite both;
}
@keyframes cyberpunkFlicker {
  0%, 100% { opacity: 1; text-shadow: 0 0 8px #ff00cc, 0 0 16px #00fff7; }
  2% { opacity: 0.7; }
  4% { opacity: 0.4; }
  6% { opacity: 0.9; }
  8% { opacity: 0.5; }
  10% { opacity: 1; }
  11% { opacity: 0.6; }
  12% { opacity: 1; }
  14% { opacity: 0.8; }
  16% { opacity: 1; }
  18% { opacity: 0.7; }
  20% { opacity: 1; }
  22% { opacity: 0.5; }
  24% { opacity: 1; }
  28% { opacity: 0.8; }
  32% { opacity: 1; }
  36% { opacity: 0.6; }
  40% { opacity: 1; }
  100% { opacity: 1; }
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: #00fff7;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.2s, text-shadow 0.2s;
  text-shadow: 0 0 6px #00fff7, 0 0 12px #ff00cc44;
}
.nav-links a:hover, .nav-links a.active {
  color: #ff00cc;
  text-shadow: 0 0 12px #ff00cc, 0 0 24px #00fff7;
}
/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}
.hamburger-line {
  width: 100%;
  height: 3px;
  background: #00fff7;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px #00fff7;
}
.mobile-menu-toggle:hover .hamburger-line {
  background: #ff00cc;
  box-shadow: 0 0 8px #ff00cc;
}
/* Mobile menu toggle animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
/* Mobile menu close button */
.mobile-menu-close {
  display: none; /* Hidden by default on desktop */
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #00fff7;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px #00fff7;
}
.mobile-menu-close:hover {
  color: #ff00cc;
  box-shadow: 0 0 12px #ff00cc;
  transform: scale(1.1);
}
.close-icon {
  font-weight: bold;
  line-height: 1;
}
@media (min-width: 1024px) and (max-width: 1366px) { 
  .card {
 		height: calc(100vh - 32vh);
	}
	.container {
		height: calc(100vh - 32vh);
	}
}
@media (max-width: 767px) {
	.card {
 		height: calc(100vh - 30vh);
	}
	.container {
		height: calc(100vh - 30vh);
	}
  .navbar {
    padding: 1rem;
  }
  .site-title {
    font-size: 1.5rem;
  }
  .logo {
    height: 40px;
    width: 40px;
  }
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }
  /* Hide desktop nav links */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(24, 25, 42, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 10000;
    border-left: 2px solid #00fff7;
    box-shadow: -2px 0 16px #00fff744;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links li {
    opacity: 0;
    transition: all 0.3s ease;
  }
  .nav-links.active li {
    opacity: 1;
  }
  .nav-links li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links li:nth-child(5) { transition-delay: 0.5s; }
  .nav-links a {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  .nav-links a:hover,
  .nav-links a.active {
    border-color: #00fff7;
    background: rgba(0, 255, 247, 0.1);
    transform: scale(1.05);
  }
  .mobile-menu-close {
    display: flex;
  }
}
@media (max-width: 600px) {
  .site-title {
    font-size: 1.2rem;
  }
  .logo {
    height: 36px;
    width: 36px;
  }
  .card {
    position: static;
    min-height: 0;
    max-height: none;
    overflow-y: visible;
    display: block;
  }
}

.animated-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(135deg, rgba(0,255,247,0.07) 0 2px, transparent 2px 40px),
              repeating-linear-gradient(45deg, rgba(255,0,204,0.07) 0 2px, transparent 2px 40px);
  animation: gridMove 12s linear infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes gridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 200px 200px, -200px -200px; }
}

/* --- Card Switch Animation System --- */
.container {
  position: relative;
  overflow: hidden;
}
.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.5s, opacity 0.5s;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.card.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  transform: translateY(0);
}
.card.slide-out-up {
  transform: translateY(-100%);
  opacity: 0;
}
.card.slide-out-down {
  transform: translateY(100%);
  opacity: 0;
}

/* Remove excess spacing for about and contact cards */
#about.card, #contact.card {
  padding: 0;
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 8px;
}
#about.card .content {
  width: 95%;
  max-width: 95%;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

#about.card .about-columns {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.customer-chat-widget {
  position: fixed;
  left: 2rem;
  bottom: 4.5rem;
  z-index: 3000;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #ff00cc 0%, #00fff7 100%);
  border-radius: 50%;
  box-shadow: 0 0 16px #ff00cc, 0 0 32px #00fff7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #18192a;
  font-size: 2rem;
  cursor: pointer;
  transition: width 0.3s, height 0.3s, border-radius 0.3s, box-shadow 0.2s;
  overflow: hidden;
}
.customer-chat-widget.open {
  width: 340px;
  height: 420px;
  border-radius: 18px;
  background: rgba(24, 25, 42, 0.98);
  box-shadow: 0 0 32px #00fff7, 0 0 64px #ff00cc;
  color: #fff;
  flex-direction: column;
  padding: 0;
}
.customer-chat-widget .chat-header {
  background: linear-gradient(90deg, #ff00cc 0%, #00fff7 100%);
  color: #18192a;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.7rem 1.2rem;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.customer-chat-widget .chat-close {
  background: none;
  border: none;
  color: #18192a;
  font-size: 1.3rem;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: color 0.2s;
}
.customer-chat-widget .chat-close:hover {
  color: #ff00cc;
}
.customer-chat-widget .chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  font-size: 1rem;
  color: #fff;
  background: transparent;
}
.customer-chat-widget .chat-input-row {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem;
  background: #18192a;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}
.customer-chat-widget .chat-input {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: #232946;
  color: #fff;
  margin-right: 0.7rem;
  outline: none;
}
.customer-chat-widget .chat-send {
  background: linear-gradient(90deg, #ff00cc 0%, #00fff7 100%);
  color: #18192a;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.customer-chat-widget .chat-send:hover {
  background: linear-gradient(90deg, #00fff7 0%, #ff00cc 100%);
  color: #fff;
}
.customer-chat-widget .chat-bubble {
  background: #ff00cc33;
  color: #fff;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  max-width: 80%;
  word-break: break-word;
  box-shadow: 0 0 8px #ff00cc44;
}
.customer-chat-widget .chat-bubble.user {
  background: #00fff733;
  color: #18192a;
  align-self: flex-end;
}
.customer-chat-widget .chat-bubble.bot {
  background: #ff00cc33;
  color: #fff;
  align-self: flex-start;
}

.customer-chat-widget .chat-bubble.typing {
  background: #00fff733;
  color: #18192a;
  font-style: italic;
  animation: typingPulse 1.5s ease-in-out infinite;
}

@keyframes typingPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@media (max-width: 600px) {
  .customer-chat-widget {
    left: 1rem;
    bottom: 4.5rem;
  }
}

/* Mobile layout - swap chat widget and back-to-top positions */
@media (max-width: 768px) {
  .customer-chat-widget {
    left: 1rem;
    right: auto;
    bottom: 4.5rem;
  }
  
  .back-to-top {
    right: 1rem;
    left: auto;
    bottom: 4.5rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .customer-chat-widget {
    left: 0.5rem;
    right: auto;
    bottom: 4.5rem;
  }
  
  .back-to-top {
    right: 0.5rem;
    left: auto;
    bottom: 4.5rem;
  }
}

/* --- Force mobile positions for chat widget and back-to-top with high specificity --- */
@media (max-width: 768px) {
  body .customer-chat-widget {
    left: 1rem;
    right: auto;
    bottom: 4.5rem;
  }
  body .back-to-top {
    right: 1rem;
    left: auto;
    bottom: 4.5rem;
  }
}
@media (max-width: 480px) {
  body .customer-chat-widget {
    left: 0.5rem;
    right: auto;
    bottom: 4.5rem;
  }
  body .back-to-top {
    right: 0.5rem;
    left: auto;
    bottom: 4.5rem;
  }
}

.back-to-top {
  width: 3.5rem;
  height: 3.5rem;
}
