html, body {
  max-width: 100%;
  overflow-x: hidden;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #121218;
  --bg-tertiary: #1a1a24;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent-primary: #00f0ff;
  --accent-secondary: #ff00aa;
  --accent-tertiary: #ffcc00;
  --success-color: #00ff66;
  --error-color: #ff3366;
  --panel-border: 1px solid rgba(0, 240, 255, 0.3);
  --glow-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

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

body {
  font-family: "Rajdhani", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  background-image: radial-gradient(circle at 25% 25%, rgba(0, 240, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 0, 170, 0.05) 0%, transparent 50%);
  min-height: 100vh;
}

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

/* Header Styles */
.header {
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: pulse 4s infinite alternate;
}

.scan-line {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  animation: scan 3s ease-in-out infinite;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1 .accent {
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-primary);
}

p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

/* Button Styles */
.button-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.button-group .cyber-button {
  margin: 0;
  flex: 1;
  min-width: 200px;
  white-space: nowrap;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 44px;
}

.vuln-button {
  margin: 0;
  white-space: nowrap;
}

.cyber-button {
  position: relative;
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 10px 25px;
  font-family: "Share Tech Mono", monospace;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
  text-decoration: none;
}

.cyber-button:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.cyber-button:active {
  transform: translateY(2px);
}

.button-text {
  position: relative;
  z-index: 1;
}

.button-glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-primary);
  opacity: 0;
  z-index: 0;
}

.cyber-button:hover .button-glitch {
  opacity: 0.1;
  animation: glitch 0.3s linear;
}

.analyze-button {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.1), rgba(0, 240, 255, 0.2));
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 600;
  width: 100%;
  margin-top: 10px;
}

.submit-button {
  background: linear-gradient(90deg, rgba(255, 204, 0, 0.1), rgba(255, 204, 0, 0.2));
  border-color: var(--accent-tertiary);
  color: var(--accent-tertiary);
  font-weight: 600;
  width: 100%;
  margin-top: 20px;
}

.copy-button {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 3px 8px;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.copy-button:hover {
  background: rgba(0, 240, 255, 0.2);
}

/* Panel Styles */
.panel {
  background-color: var(--bg-secondary);
  border: var(--panel-border);
  border-radius: 4px;
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.panel-header {
  background-color: var(--bg-tertiary);
  padding: 15px;
  border-bottom: var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-content {
  padding: 20px;
}

/* Code Block Styles */
.code-block {
  background-color: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 4px;
  margin: 15px 0;
  overflow: hidden;
}

.code-header {
  background-color: rgba(0, 240, 255, 0.1);
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.code-title {
  font-family: "Share Tech Mono", monospace;
  color: var(--accent-primary);
}

.code-block pre {
  margin: 0;
  padding: 15px;
  white-space: pre;
  font-family: "Share Tech Mono", monospace;
  color: var(--text-primary);
  line-height: 1.5;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: auto;
}

.code-block pre::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.code-block pre::-webkit-scrollbar-track {
  background: rgba(0, 240, 255, 0.1);
  border-radius: 4px;
}

.code-block pre::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}

.code-block code {
  display: block;
}

/* Form Elements */
.analysis-section {
  margin: 30px 0;
}

.analysis-area {
  width: 100%;
  min-height: 120px;
  background-color: rgba(10, 10, 15, 0.8);
  color: var(--text-primary);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  padding: 15px;
  font-family: "Share Tech Mono", monospace;
  resize: vertical;
  transition: border 0.3s, box-shadow 0.3s;
}

.analysis-area:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: var(--glow-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-primary);
  pointer-events: none;
  font-size: 0.8rem;
}

select,
input[type="text"],
input[type="month"] {
  width: 100%;
  padding: 10px 15px;
  background-color: rgba(10, 10, 15, 0.8);
  color: var(--text-primary);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  appearance: none;
  transition: border 0.3s, box-shadow 0.3s;
}

select:focus,
input[type="text"]:focus,
input[type="month"]:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: var(--glow-shadow);
}

/* Checkbox Styles */
.cyber-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  user-select: none;
}

.cyber-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.cyber-checkbox:hover input ~ .checkmark {
  border-color: var(--accent-primary);
}

.cyber-checkbox input:checked ~ .checkmark {
  background-color: rgba(0, 240, 255, 0.2);
  border-color: var(--accent-primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.cyber-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.cyber-checkbox .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--accent-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Results Styles */
.result {
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.result::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.success {
  background: rgba(0, 255, 102, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(0, 255, 102, 0.3);
}

.success::before {
  background: var(--success-color);
}

.error {
  background: rgba(255, 51, 102, 0.1);
  color: var(--error-color);
  border: 1px solid rgba(255, 51, 102, 0.3);
}

.error::before {
  background: var(--error-color);
}

.result h4 {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.result p {
  color: inherit;
  opacity: 0.9;
}

.cyber-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 50%;
  font-size: 14px;
}

.success .cyber-icon {
  background: rgba(0, 255, 102, 0.2);
}

.error .cyber-icon {
  background: rgba(255, 51, 102, 0.2);
}

.result ul {
  margin: 10px 0;
  padding-left: 20px;
  list-style-type: none;
}

.result ul li {
  margin: 5px 0;
  position: relative;
}

.result ul li:before {
  content: "•";
  color: var(--accent-primary);
  position: absolute;
  left: -15px;
}

/* Footer Styles */
footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.x-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.x-link:hover {
  color: var(--accent-primary);
}

.x-link::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0e0e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M16.99 0h3.308l-7.227 8.26 8.502 11.24h-6.657l-5.214-6.817L3.736 19.5H.426l7.73-8.835L0 0h6.826l4.713 6.231L16.99 0zm-1.161 17.52h1.833L5.83 1.876H3.863L15.829 17.52z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.x-link:hover::after {
  opacity: 1;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M16.99 0h3.308l-7.227 8.26 8.502 11.24h-6.657l-5.214-6.817L3.736 19.5H.426l7.73-8.835L0 0h6.826l4.713 6.231L16.99 0zm-1.161 17.52h1.833L5.83 1.876H3.863L15.829 17.52z'/%3e%3c/svg%3e");
}

/* Utility Classes */
.hidden {
  display: none;
}

.coming-soon {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.loading-dots {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: var(--accent-primary);
  color: var(--accent-primary);
  animation: dotFlashing 1s infinite linear alternate;
  animation-delay: .5s;
}

.loading-dots::before,
.loading-dots::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
}

.loading-dots::before {
  left: -15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: var(--accent-primary);
  color: var(--accent-primary);
  animation: dotFlashing 1s infinite alternate;
  animation-delay: 0s;
}

.loading-dots::after {
  left: 15px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: var(--accent-primary);
  color: var(--accent-primary);
  animation: dotFlashing 1s infinite alternate;
  animation-delay: 1s;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes scan {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

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

@keyframes dotFlashing {
  0% {
    background-color: var(--accent-primary);
  }
  50%,
  100% {
    background-color: rgba(0, 240, 255, 0.2);
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  .button-group {
    flex-direction: column;
  }

  .cyber-button {
    width: 100%;
  }
}

/* Notification Styles */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Code Block Enhancement */
.code-block {
  position: relative;
}

.code-block::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 240, 255, 0.05) 0%,
    transparent 5%,
    transparent 95%,
    rgba(0, 240, 255, 0.05) 100%
  );
}

.code-block pre {
  position: relative;
  z-index: 1;
}

/* Analysis Area Enhancement */
.analysis-area {
  position: relative;
  overflow: hidden;
}

.analysis-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  opacity: 0.5;
}

.analysis-area:focus::before {
  opacity: 1;
}

/* Language Switcher Styles */
.language-switcher {
  margin-left: 20px;
}

.lang-select {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 8px 35px 8px 15px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  transition: all 0.3s ease;
  min-width: 120px;
}

.lang-select:hover {
  background-color: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.lang-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.lang-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 10px;
}

.project-description {
  margin: 2rem 0;
  padding: 0 1rem;
}

.project-description .panel {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid var(--accent-primary);
  border-radius: 8px;
  padding: 1.5rem;
}

.project-description p {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-description .briefing-link {
  display: inline-block;
  margin: 1rem 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-description .briefing-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.project-description .briefing-link .button-text {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.project-description .research-details {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.project-description .research-details p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

.research-details {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}
