* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* SMOOTH GRADIENT BACKGROUND - NO BANDING */
body {
  background: linear-gradient(135deg,
      #0000ff 0%,
      #0066cc 12.5%,
      #0099ff 25%,
      #00b3b3 37.5%,
      #00cccc 50%,
      #0099cc 62.5%,
      #006699 75%,
      #003366 87.5%,
      #000066 100%);
  background-attachment: fixed;
  background-size: 400% 400%;
  min-height: 100vh;
  animation: gradientMove 120s ease infinite;
  overflow-x: hidden;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Add subtle noise to reduce banding */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

/* Clear binary overlay */
.binary-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.binary-digit {
  position: absolute;
  font-family: 'Consolas', 'Monaco', monospace;
  font-weight: 900;
  color: rgba(197, 253, 255, 0.76);
  font-size: 20px;
  opacity: 0.5;
  animation: fall linear infinite;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes fall {
  to {
    transform: translateY(100vh);
  }
}

/* Main content container */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  margin-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  /* background: rgba(255, 255, 255, 0.9); */
  color: #0045ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #69e4ff, #2a0a8a);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid #9f9f9f;
  position: relative;
  overflow: visible;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
  text-align: center;
  /* margin: 4rem 0 6rem; */
  color: white;
}

.hero h1 {
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 2px 10px #00000066;
  font-weight: 800;
  line-height: 1.2;
}

.hero-highlight {
  color: #0045ff;
  text-shadow: 0 2px 10px #ffffffe8;
  background: linear-gradient(120deg, #4361ee20 0%, #3a0ca320 100%);
  padding: 0rem 0.8rem;
  border-radius: 8px;
}


.hero p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  color: white;
  text-shadow: 0 1px 50px #ffffffe8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  min-width: 180px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 1.5rem;
  color: white;
  text-shadow: 0 2px 10px #00000066;
}

.section-subtitle {
  text-align: center;
  color: white;
  max-width: 700px;
  margin: 0 auto 4rem;
  font-size: 1.2rem;
  line-height: 1.6;
  text-shadow: 0 1px 50px #ffffffe8;
}

/* Cards */
.services-grid,
.apps-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.apps-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card,
.app-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #4361ee, #3a0ca3);
}

.service-card:hover,
.app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.qa-icon {
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
}

.automation-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.dev-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.service-card h3,
.app-card h4 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.service-features,
.app-features {
  list-style: none;
  margin: 1.5rem 0;
}

.service-features li {
  padding: 0.6rem 0;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.05rem;
}

.service-features li i {
  color: #4361ee;
  margin-top: 4px;
  font-size: 1rem;
}

.app-icon-small {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.app-1 .app-icon-small {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.app-2 .app-icon-small {
  background: linear-gradient(135deg, #10b981, #059669);
}

.app-3 .app-icon-small {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.app-features li {
  padding: 0.5rem 0;
  color: #64748b;
  font-size: 1rem;
}

/* Auth Section */
.auth-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 4rem;
  margin: 6rem 0;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.auth-subtitle {
  font-size: 1.3rem;
  color: #64748b;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.auth-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.auth-button {
  padding: 1.3rem 3rem;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  min-width: 220px;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.login-btn {
  background: white;
  color: #4361ee;
  border: 3px solid #4361ee;
}

.login-btn:hover {
  background: #4361ee;
  color: white;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(67, 97, 238, 0.4);
}


.signup-btn {
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  color: white !important;
  border: none;
}

.signup-btn:hover {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(135deg, #3a56d4, #2a0a8a);
}

/* Footer */
.footer {
  padding: 3rem 0;
  text-align: center;
  color: white;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.copyright {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    background-size: 300% 300%;
  }

  .main-container {
    padding: 1rem;
  }

  .header {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .nav-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    margin: 0;
    font-size: 0.95rem;
    padding: 8px 16px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-item {
    min-width: 150px;
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .services-grid,
  .apps-grid {
    grid-template-columns: 1fr;
  }

  .auth-section {
    padding: 2.5rem 1.5rem;
  }

  .auth-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .auth-button {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stat-item {
    min-width: 130px;
    padding: 1.2rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

.log-in-btn {
  border: 3px solid #4361ee;
  color: #4361ee !important;
  border-radius: 6px;
  background: white !important;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  min-width: 20px;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.log-in-btn:hover {
  background: #4361ee !important;
  color: white !important;
  transform: translateY(-5px) scale(1.05) !important;
  box-shadow: 0 20px 50px rgba(67, 97, 238, 0.4) !important;
}







/* Logo icon - back to original with white binary */
/* Logo icon - KEEP the background effects */
/* Logo icon - back to original with white binary */
.logo-icon {
  color: #0045ff;
  width: 77px;
  height: 77px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.8rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

/* Binary S pattern container - OPTIMIZED */
.binary-s-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Distribute rows evenly */
  align-items: center;
  z-index: 1;
  opacity: 0.95;
  pointer-events: none;
  padding: 4px 5px;
  /* Balanced padding */
}

/* BINARY TEXT - OPTIMIZED SIZE */
.binary-row {
  font-family: 'Consolas', 'Monaco', monospace;
  font-weight: 900;
  font-size: 7px;
  /* Reduced from 8px */
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.3px;
  line-height: 1;
  height: auto;
  overflow: visible;
  white-space: nowrap;
  margin: 0;
  background: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  text-align: center;
  width: 100%;
  flex-shrink: 0;
  /* Prevent rows from shrinking */
}

/* Optimized S shape alignment - COMPACT VERSION */
.binary-row:nth-child(1) {
  text-align: center;
  padding-left: 5%;
  color: rgba(255, 255, 255, 1);
  margin-top: 1px;
  /* Small top margin */
}

.binary-row:nth-child(2) {
  text-align: left;
  padding-left: 10%;
  opacity: 0.9;
}

.binary-row:nth-child(3) {
  text-align: left;
  padding-left: 5%;
  opacity: 0.85;
}

.binary-row:nth-child(4) {
  text-align: center;
  padding-left: 0;
  color: rgba(255, 255, 255, 1);
}

.binary-row:nth-child(5) {
  text-align: right;
  padding-right: 10%;
  opacity: 0.9;
}

.binary-row:nth-child(6) {
  text-align: right;
  padding-right: 5%;
  opacity: 0.85;
}

.binary-row:nth-child(7) {
  text-align: center;
  padding-left: 15%;
  color: rgba(255, 255, 255, 1);
}

.binary-row:nth-child(8) {
  text-align: left;
  padding-left: 20%;
  opacity: 0.8;
  margin-bottom: 1px;
  /* Small bottom margin */
}

/* Shield icon */
.logo-icon i.fa-shield-check {
  position: relative;
  z-index: 2;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0.6;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* KEEP SilfaNet text effects */
.logo-text {
  color: #0045ff;
  text-shadow: 0 2px 10px #ffffffe8;
  padding: 0rem 0.8rem;
  border-radius: 8px;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(120deg, #4361ee20 0%, #3a0ca320 100%);
}

/* RESPONSIVE ADJUSTMENTS - OPTIMIZED */
@media (max-width: 768px) {
  .logo-icon {
    width: 55px;
    height: 55px;
  }

  .binary-s-pattern {
    padding: 3px 4px;
    /* Reduced padding for mobile */
    justify-content: space-evenly;
    /* Even spacing */
  }

  .binary-row {
    font-size: 4px;
    /* Smaller font for mobile */
    letter-spacing: 0.15px;
    margin: 0;
  }

  /* Compact mobile positioning */
  .binary-row:nth-child(1) {
    padding-left: 3%;
    margin-top: 0.5px;
  }

  .binary-row:nth-child(2) {
    padding-left: 8%;
  }

  .binary-row:nth-child(3) {
    padding-left: 3%;
  }

  .binary-row:nth-child(5) {
    padding-right: 8%;
  }

  .binary-row:nth-child(6) {
    padding-right: 3%;
  }

  .binary-row:nth-child(7) {
    padding-left: 12%;
  }

  .binary-row:nth-child(8) {
    padding-left: 15%;
    margin-bottom: 0.5px;
  }

  .logo-icon i.fa-shield-check {
    font-size: 1.2rem;
  }

  .logo-text {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .logo-icon {
    width: 50px;
    height: 50px;
  }

  .binary-s-pattern {
    padding: 2px 3px;
    /* Minimal padding */
  }

  .binary-row {
    font-size: 3.5px;
    /* Very small but readable */
    letter-spacing: 0.1px;
  }

  /* Tight positioning for small screens */
  .binary-row:nth-child(1) {
    padding-left: 2%;
    margin-top: 0.3px;
  }

  .binary-row:nth-child(2) {
    padding-left: 6%;
  }

  .binary-row:nth-child(3) {
    padding-left: 2%;
  }

  .binary-row:nth-child(5) {
    padding-right: 6%;
  }

  .binary-row:nth-child(6) {
    padding-right: 2%;
  }

  .binary-row:nth-child(7) {
    padding-left: 10%;
  }

  .binary-row:nth-child(8) {
    padding-left: 12%;
    margin-bottom: 0.3px;
  }

  .logo-icon i.fa-shield-check {
    font-size: 1rem;
  }

  .logo-text {
    font-size: 1.8rem;
  }
}

/* Extra small screens - SIMPLIFIED */
@media (max-width: 360px) {
  .logo-icon {
    width: 45px;
    height: 45px;
  }

  .binary-s-pattern {
    padding: 1px 2px;
  }

  .binary-row {
    font-size: 3px;
  }

  /* Reset margins for smallest screens */
  .binary-row:nth-child(1) {
    margin-top: 0;
  }

  .binary-row:nth-child(8) {
    margin-bottom: 0;
  }

  .logo-icon i.fa-shield-check {
    font-size: 0.9rem;
  }

  .logo-text {
    font-size: 1.6rem;
  }
}


/* Add to your CSS file */
.app-4 .app-icon-small {
  background: linear-gradient(135deg, #3a0ca3, #7209b7);
}

/* Update the apps-grid to handle 4 cards */
@media (min-width: 1024px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1400px) {
  .apps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 769px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
