* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Cyber-punk color palette with neon accents */
  --primary-dark: #0a0e27;
  --primary-blue: #1a2f5a;
  --accent-cyan: #00d4ff;
  --accent-neon-green: #00ff88;
  --accent-purple: #9d4edd;
  --text-dark: #e4e4e7;
  --text-light: #a1a1a1;
  --background: #0f1419;
  --card-bg: #1a1f2e;
  --border-neon: #00d4ff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--background);
}

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

/* Enhanced navigation with scroll opacity and logo image */
.navbar {
  background: rgba(10, 14, 39, 0.95);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  background: rgba(10, 14, 39, 0.7);
  box-shadow: 0 2px 30px rgba(0, 212, 255, 0.15);
}

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

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
}

.logo-image {
  height: 45px;
  width: auto;
  opacity: 1;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
}

.navbar.scrolled .logo-image {
  opacity: 0.7;
}

.logo-text {
  font-size: 1.3rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  font-size: 0.95rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0a0e27 0%, #1a2f5a 50%, #0d1a3a 100%);
  color: white;
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(157, 78, 221, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: slideInDown 0.8s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  color: var(--accent-cyan);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-neon-green));
  color: var(--primary-dark);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 255, 136, 0.3);
}

/* Auto-scrolling carousel section */
.carousel-section {
  padding: 4rem 2rem;
  background: var(--card-bg);
  border-top: 2px solid var(--border-neon);
  border-bottom: 2px solid var(--border-neon);
}

.carousel-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.carousel-container {
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.carousel-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
  display: block;
  opacity: 1;
}

.carousel-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(26, 47, 90, 0.8), rgba(157, 78, 221, 0.1));
}

.carousel-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.carousel-text h3 {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.carousel-text p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1.05rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(10, 14, 39, 0.6);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid var(--accent-cyan);
}

.carousel-dot.active {
  background: var(--accent-cyan);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* Services Section */
.services {
  padding: 5rem 2rem;
  background: var(--background);
}

.services h2,
.expertise h2,
.contact h2 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

/* Material design service cards with separated title/body and AI images */
.service-card {
  background: linear-gradient(135deg, rgba(26, 47, 90, 0.4), rgba(157, 78, 221, 0.1));
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), inset 0 0 20px rgba(0, 212, 255, 0.05);
  transform: translateY(-8px);
}

.service-header {
  padding: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(157, 78, 221, 0.1));
  border-bottom: 2px solid var(--accent-cyan);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.service-header h3 {
  padding: 1.5rem;
  color: var(--accent-cyan);
  font-size: 1.3rem;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
  line-height: 1.3;
}

.service-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-body p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.service-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  color: var(--text-light);
  position: relative;
  font-size: 0.9rem;
}

.service-features li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-neon-green);
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

/* Expertise Section */
.expertise {
  padding: 5rem 2rem;
  background: var(--card-bg);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.expertise-card {
  background: linear-gradient(135deg, rgba(26, 47, 90, 0.6), rgba(157, 78, 221, 0.2));
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s;
  animation: fadeInUp 0.6s ease-out;
  border: 2px solid rgba(0, 212, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  transition: all 0.6s;
}

.expertise-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), inset 0 0 20px rgba(0, 212, 255, 0.05);
  transform: translateY(-6px);
}

.expertise-card:hover::before {
  top: -25%;
  right: -25%;
}

.expertise-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  position: relative;
  z-index: 1;
}

.expertise-card p {
  opacity: 0.95;
  line-height: 1.7;
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

/* Cyber-punk themed contact section with grid background */
.contact {
  padding: 5rem 2rem;
  background: var(--background);
  position: relative;
  overflow: hidden;
}

.cyber-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
      0deg,
      transparent 24%,
      rgba(0, 212, 255, 0.05) 25%,
      rgba(0, 212, 255, 0.05) 26%,
      transparent 27%,
      transparent 74%,
      rgba(0, 212, 255, 0.05) 75%,
      rgba(0, 212, 255, 0.05) 76%,
      transparent 77%,
      transparent
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      rgba(0, 212, 255, 0.05) 25%,
      rgba(0, 212, 255, 0.05) 26%,
      transparent 27%,
      transparent 74%,
      rgba(0, 212, 255, 0.05) 75%,
      rgba(0, 212, 255, 0.05) 76%,
      transparent 77%,
      transparent
    );
  background-size: 50px 50px;
  pointer-events: none;
  opacity: 0.5;
}

.contact-content {
  position: relative;
  z-index: 1;
}

.contact-form {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(26, 47, 90, 0.4), rgba(157, 78, 221, 0.1));
  padding: 3rem;
  border-radius: 12px;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2), inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.form-group {
  position: relative;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(10, 14, 39, 0.6);
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(10, 14, 39, 0.8);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), inset 0 0 10px rgba(0, 212, 255, 0.1);
}

.submit-button {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-neon-green));
  color: var(--primary-dark);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  margin-top: 0.5rem;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 255, 136, 0.3);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Added hCaptcha container styling */
.h-captcha-container {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.h-captcha {
  transform: scale(0.9);
  transform-origin: center;
}

@media (max-width: 500px) {
  .h-captcha {
    transform: scale(0.85);
  }
}

.form-status {
  text-align: center;
  padding: 1rem;
  border-radius: 6px;
  min-height: 1.5rem;
  font-weight: 600;
  display: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-status.success {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-neon-green);
  border: 2px solid var(--accent-neon-green);
  display: block;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.form-status.error {
  background: rgba(255, 0, 100, 0.1);
  color: #ff0064;
  border: 2px solid #ff0064;
  display: block;
  box-shadow: 0 0 15px rgba(255, 0, 100, 0.2);
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #0a0e27 0%, #050710 100%);
  color: white;
  text-align: center;
  padding: 2rem;
  border-top: 2px solid var(--border-neon);
  box-shadow: 0 -2px 20px rgba(0, 212, 255, 0.1);
}

/* Enhanced animations with cyber-punk effects */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes glitch {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

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

  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .logo-text {
    font-size: 1rem;
  }

  .carousel-content {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .carousel-text h3 {
    font-size: 1.4rem;
  }

  .services h2,
  .expertise h2,
  .contact h2 {
    font-size: 2rem;
  }

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

  .contact-form {
    padding: 2rem;
  }
}
