* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body, html {
  width: 100%;
  height: 100%;
  background: #0F0F0F;
  /* Changed overflow to auto to allow scrolling if content exceeds screen height */
  overflow-x: hidden;
  overflow-y: auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover, nav a.active {
  color: rgba(255, 255, 255, 0.623);
}

.btn-login {
  padding: 8px 16px;
  border: 2px solid #59638b;
  border-radius: 6px;
  background: #59638b;
  color: #fff;
  margin-left: 15px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-login:hover {
  background: #fff;
  color: #59638b;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 80px 8%;
  background: #0F0F0F;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
  color: #FFFFFF;
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.2s;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
  color: #D0D0D0;
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.4s;
}

.hero .hero-buttons {
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.6s;
}

.hero .hero-buttons a {
  text-decoration: none;
  padding: 12px 30px;
  margin-right: 15px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary {
  display: inline-block;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: all 0.3s;
  background: #FF7A1A;
  color: #FFFFFF;
  border: 1px solid #FF7A1A;
  cursor: pointer;
}

.btn-primary:hover {
  background: #E56B17;
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.998);
}

.btn-secondary {
  background: #1F1F1F;
  color: #D0D0D0;
  border: 1px solid #333333;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.12s;
}

.btn-secondary:hover {
  background: #2A2A2A;
}

.tos-box {
  background: #151515;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #2A2A2A;
  color: #333;
  max-width: 800px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
}

.tos-box:nth-child(4) {
  animation-delay: 1.0s;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: #5e5e5e;
  mix-blend-mode: overlay;
  z-index: 0;
  pointer-events: none;
}

.circle.one { width: 200px; height: 200px; top: -50px; right: 50px; }
.circle.two { width: 300px; height: 300px; bottom: -100px; left: -100px; }
.circle.three { width: 150px; height: 150px; top: 200px; left: 60%; }

/* --- FIXED SERVICES HERO SECTION --- */
.services-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Vertically centers the content */
  min-height: 100vh;       /* Uses min-height to allow growth for content */
  background: #0F0F0F;
  color: #fff;
  text-align: center;
  position: relative;
  padding: 100px 8% 60px 8%; /* Increased padding to account for absolute header */
  overflow: hidden;
}

.services-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
}

.services-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  max-width: 780px;
  margin-bottom: 50px;
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

.services-container {
  display: flex;
  justify-content: center;
  align-items: stretch; /* Cards will be same height in a row */
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  z-index: 2;
}

.service-box {
  background: #151515;
  border: 1px solid #2A2A2A;
  border-radius: 16px;
  padding: 30px;
  width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Keeps button at bottom */
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
}

.service-box:nth-child(1) { animation-delay: 0.4s; }
.service-box:nth-child(2) { animation-delay: 0.5s; }
.service-box:nth-child(3) { animation-delay: 0.6s; }
.service-box:nth-child(4) { animation-delay: 0.7s; }

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
  border-color: #3a3a3a;
}

.service-box h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.service-box p {
  font-size: 0.95rem;
  margin-bottom: 25px;
  color: #B0B0B0;
  line-height: 1.5;
}

.service-box .icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.service-box .icon img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.obfuscator-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  width: 100%;
  max-width: 760px;
  padding: 22px;
  background: #151515;
  border: 1px solid #2A2A2A;
  border-radius: 14px;
  animation: fadeUp 0.9s ease-out forwards;
  z-index: 10;
}

.obfuscator-container textarea {
  width: 100%;
  min-height: 160px;
  max-height: 420px;
  background: #0F0F0F;
  border: 1px solid #2A2A2A;
  border-radius: 10px;
  color: #fff;
  font-family: monospace;
  font-size: 13.5px;
  line-height: 1.45;
  padding: 14px 16px;
  resize: none;
  outline: none;
}

.obf-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.status {
  margin-left: 6px;
  color: #FF7A1A;
  font-weight: 600;
  font-size: 0.95rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 50;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: 0.4s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 30;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

footer {
  width: 100%;
  text-align: center;
  padding: 25px 0;
  color: #666;
  font-size: 0.9rem;
  background: #0F0F0F;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero, .services-hero {
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px 20px;
  }
  .hero h1, .services-hero h1 { font-size: 2.2rem; }
  header { padding: 15px 20px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav#navMenu {
    display: flex !important;
    flex-direction: column !important;
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px !important;
    height: 100vh;
    background: #151515;
    padding: 80px 20px;
    transition: 0.4s ease;
    z-index: 40;
    gap: 15px !important;
  }
  nav#navMenu.open { right: 0; }
  nav a { margin: 0; font-size: 1.1rem; }
  
  .services-hero { height: auto; padding: 100px 20px; }
  .services-container { flex-direction: column; align-items: center; }
  .service-box { width: 100%; max-width: 400px; }
}