/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}
body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0F0F0F;
}

.services-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  background: var(--hero-gradient);
  color: #fff;
  text-align: center;
  position: relative;
  padding: 80px 8% 40px 8%;
}

.services-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  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;
}

.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: var(--mono-font);
  font-size: 13.5px;
  line-height: 1.45;
  padding: 14px 16px;
  resize: none;
  outline: none;
  white-space: pre;
  overflow: auto;
}

.obfuscator-container textarea::placeholder {
  color: rgba(255,255,255,0.55);
}

.obf-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn-primary {
  text-decoration: none;
  background: #FF7A1A;
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid #FF7A1A;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:active { transform: translateY(1px) scale(0.998); }
.btn-primary:hover {
	background: #E56B17;
}

.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;
}

.btn-secondary[disabled],
.btn-primary[disabled] {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.status {
  margin-left: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .obfuscator-container { padding: 16px; margin: 22px 24px 0 24px; }
  .obf-controls { justify-content: center; }
  .btn-primary, .btn-secondary { padding: 10px 14px; }
  .obfuscator-container textarea { min-height: 130px; }
}

@media (max-width: 460px) {
  .obf-controls { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  .status { margin-left: 0; text-align: center; }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}

.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;
}

@media (max-width: 768px) {
	.hamburger { display: flex; }
	nav {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background: #0F0F0F;
		backdrop-filter: blur(10px);
		flex-direction: column;
		gap: 18px;
		padding: 0;
		overflow: hidden;
		max-height: 0;
		opacity: 0;
		transition: max-height 0.45s ease, opacity 0.35s ease;
		z-index: 40;
	}
	nav.open {
		padding: 20px 0 30px 0;
		max-height: 400px;
		opacity: 1;
	}
	nav a {
		color: white;
		font-size: 1rem;
		text-align: center;
		padding: 10px 0;
		margin: 0;
		width: 100%;
	}
	.btn-login {
		width: 100%;
		margin: 0;
		border-color: white;
		background: rgba(255,255,255,0.15);
		text-align: center;
	}
	header {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

.dropdown-menu {
	display: none;
	flex-direction: column;
	width: 100%;
	background: rgba(0, 0, 0, 0.8);
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.4s ease;
}

.dropdown-menu.open {
	display: flex;
	max-height: 500px;
}

.dropdown-menu a {
	display: block;
	width: 100%;
	padding: 12px 20px;
	color: #fff;
	text-decoration: none;
	background: rgba(255,255,255,0.05);
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-menu a:hover {
	background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
	#navMenu, header nav {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 0 !important;
		width: 100% !important;
	}
	#navMenu a, header nav a {
		display: block !important;
		width: 100% !important;
		margin-left: 0 !important;
		padding: 14px 20px !important;
		box-sizing: border-box !important;
		text-align: center !important;
		border-bottom: 1px solid rgba(255,255,255,0.06) !important;
		color: #fff !important;
	}
	#navMenu a.btn-login, header nav a.btn-login {
		background: rgba(255,255,255,0.12) !important;
		border-color: rgba(255,255,255,0.18) !important;
		margin-left: 0 !important;
	}
	#navMenu {
		max-height: 0 !important;
		overflow: hidden !important;
		transition: max-height 0.45s ease, opacity 0.35s ease;
	}
	#navMenu.open {
		max-height: 500px !important;
		opacity: 1 !important;
	}
}
