/* Main Styles Extracted from index.php */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #ccfaff;
  /* Optimized Background */
  background: radial-gradient(circle at 20% 80%, #0f1115 0%, #06070a 50%, #0a0b0f 100%);
  background-size: 400% 400%;
  animation: gradientMove 25s ease-in-out infinite;
  overflow-x: hidden;
  position: relative;
  padding-top: 80px; /* Space for fixed top nav */
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 0%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

/* Animated Background Particles */
.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #00ffcc;
  border-radius: 50%;
  animation: float 20s infinite linear;
  opacity: 0.3;
}

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Top Navigation Bar */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 2px solid #00ffcc44;
  padding: 12px 40px;
  z-index: 1000;
  backdrop-filter: blur(15px);
  box-shadow: 0 5px 30px rgba(0, 255, 204, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 10px #00ffcc);
  transition: all 0.3s ease;
}

.nav-logo img:hover {
  filter: drop-shadow(0 0 20px #00ffe1);
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 5px;
  align-items: center;
}

.nav-item {
  color: #00ffe1;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(0, 255, 204, 0.1);
  border-color: #00ffcc;
  color: #00ffcc;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
  transform: translateY(-2px);
}

.nav-item.active {
  background: rgba(0, 255, 204, 0.15);
  border-color: #00ffcc;
  color: #00ffcc;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
}

/* Crypto Price Widget */
.crypto-widget {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 999;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #00ffcc44;
  border-radius: 12px;
  padding: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 255, 204, 0.15);
  min-width: 160px;
}

.crypto-widget-header {
  font-size: 11px;
  color: #00ffcc;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: 700;
  text-align: center;
}

.crypto-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px;
  background: rgba(0, 255, 204, 0.05);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.crypto-item:hover {
  background: rgba(0, 255, 204, 0.1);
  transform: translateX(-2px);
}

.crypto-symbol {
  font-size: 24px;
  color: #00ffcc;
  font-weight: 700;
}

.crypto-details {
  flex: 1;
}

.crypto-name {
  font-size: 11px;
  color: #aaa;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.crypto-value {
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
}

.crypto-updated {
  font-size: 9px;
  color: #666;
  text-align: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #00ffcc22;
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.hero {
  text-align: center;
  padding: 120px 0 80px;
  position: relative;
}

h1 {
  font-family: 'Orbitron', monospace;
  font-size: 4rem;
  font-weight: 900;
  color: #00ffcc;
  text-shadow: 0 0 30px #00ffe1;
  margin-bottom: 20px;
  animation: titlePulse 4s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { text-shadow: 0 0 30px #00ffe1; }
  50% { text-shadow: 0 0 50px #00ffcc, 0 0 80px #00ffe1; }
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #ccfaff;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.primary-btn {
  background: #00ffcc;
  color: #000;
  border: 2px solid #00ffcc;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}

.primary-btn:hover {
  background: #00e6b8;
  box-shadow: 0 0 30px #00ffcc;
  transform: translateY(-3px);
}

.secondary-btn {
  background: transparent;
  color: #00ffcc;
  border: 2px solid #00ffcc;
}

.secondary-btn:hover {
  background: rgba(0, 255, 204, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
  transform: translateY(-3px);
}

.section {
  margin: 80px 0;
  padding: 40px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  border: 1px solid #00ffcc22;
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.section:hover {
  box-shadow: 0 0 40px rgba(0, 255, 204, 0.1);
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ffcc, transparent);
  animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

h2 {
  font-family: 'Orbitron', monospace;
  font-size: 2.2rem;
  color: #00ffe1;
  margin-bottom: 25px;
  text-shadow: 0 0 15px #00ffcc;
  text-align: center;
}

h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  color: #ccfaff;
  margin-bottom: 15px;
}

.onion-links {
  background: rgba(255, 74, 51, 0.1);
  border: 1px solid #ff4a33;
  padding: 30px;
  border-radius: 15px;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.onion-links a {
  color: #ff4a33;
  text-decoration: none;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: rgba(255, 74, 51, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.onion-links a:hover {
  color: #ffaa88;
  background: rgba(255, 74, 51, 0.2);
  transform: translateX(5px);
  border-color: #ff4a33;
  box-shadow: 0 0 15px rgba(255, 74, 51, 0.3);
}

.link-icon {
  margin-right: 10px;
  font-size: 1.2rem;
}

.link-desc {
  margin-left: auto;
  font-size: 0.9rem;
  opacity: 0.7;
  font-family: 'Rajdhani', sans-serif;
}

.security-tip {
  background: rgba(0, 255, 204, 0.1);
  border-left: 5px solid #00ffcc;
  padding: 15px;
  margin-top: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
}

.tip-icon {
  font-size: 1.5rem;
  margin-right: 15px;
  color: #00ffcc;
}

/* Testimonials Section Styles */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.testimonial-card {
  background: rgba(0, 0, 0, 0.5);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid #00ffcc33;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.4);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 5rem;
  color: #00ffcc;
  opacity: 0.1;
  line-height: 1;
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.user-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ff4a33; /* Dynamic color for initials */
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 15px;
  box-shadow: 0 0 10px rgba(255, 74, 51, 0.5);
}

.user-name {
  margin: 0;
  font-size: 1.2rem;
  color: #00ffcc;
}

.testimonial-date {
  margin-left: auto;
  font-size: 0.8rem;
  opacity: 0.6;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 15px;
}

.testimonial-rating {
  color: gold;
  font-size: 1.2rem;
}

.star {
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Contact Form Styles */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.neon-border {
  padding: 30px;
  border-radius: 15px;
  border: 2px solid #00ffcc;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
  background: rgba(0, 0, 0, 0.7);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #00ffcc;
  font-weight: 600;
  font-family: 'Orbitron', monospace;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #00ffcc55;
  border-radius: 8px;
  background: #0f0f0f;
  color: #ccfaff;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 5px rgba(0, 255, 204, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00ffcc;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.8);
}

.form-group textarea {
  resize: vertical;
}

.submit-button {
  width: 100%;
  padding: 15px;
  background: #ff4a33;
  color: #000;
  border: none;
  border-radius: 8px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 74, 51, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.submit-button:hover {
  background: #e6422e;
  box-shadow: 0 0 25px rgba(255, 74, 51, 0.8);
  transform: translateY(-2px);
}

.submit-button:disabled {
  background: #555;
  cursor: not-allowed;
  box-shadow: none;
}

.send-icon {
  margin-left: 10px;
  transition: transform 0.5s ease;
}

.terminal-cursor {
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.submission-message {
  margin-top: 20px;
  padding: 10px;
  background: rgba(0, 255, 204, 0.2);
  border: 1px solid #00ffcc;
  border-radius: 8px;
  text-align: center;
  color: #00ffcc;
  font-family: 'Orbitron', monospace;
}

/* Crypto Grid */
.crypto-grid {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  justify-content: center;
}

.crypto-card {
  flex: 1;
  max-width: 300px;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #00ffcc55;
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: all 0.3s ease;
}

.crypto-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.3);
}

/* Gallery Styles */
.gallery-container {
  position: relative;
  margin: 40px 0;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid #00ffcc33;
}

.gallery-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #00ffcc #000;
}

.gallery-track::-webkit-scrollbar {
  height: 8px;
}

.gallery-track::-webkit-scrollbar-track {
  background: #000;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: #00ffcc;
  border-radius: 4px;
}

.gallery-track img {
  min-width: 400px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #00ffcc44;
  filter: brightness(0.9);
  transition: all 0.3s ease;
  /* Lazy Loading Optimization */
  content-visibility: auto;
  contain-intrinsic-size: 400px 250px; /* Estimated size for LCP */
}

.gallery-track img:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #00ffcc44;
  color: #00ffcc;
  font-size: 2rem;
  padding: 15px 20px;
  cursor: pointer;
  z-index: 2;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.gallery-prev:hover, .gallery-next:hover {
  background: rgba(0, 255, 204, 0.2);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .hero {
    padding: 80px 0 40px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .top-nav {
    padding: 10px 20px;
  }
  .nav-logo img {
    height: 35px;
  }
  .nav-item {
    padding: 8px 12px;
    font-size: 11px;
  }
  .nav-menu {
    gap: 2px;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .crypto-grid {
    flex-direction: column;
  }
  .crypto-card {
    max-width: 100%;
  }
}


/* Additional CSS Enhancements for TorZon Market */

/* Advanced hover effects for sections */
.section:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 255, 204, 0.1);
  border-color: #00ffcc44;
}

/* Glitch effect for title */
@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); }
}

.hero h1:hover {
  animation: glitch 0.3s ease-in-out;
}

/* Matrix-style text effect */
.matrix-text {
  position: relative;
  overflow: hidden;
}

.matrix-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, #00ffcc 50%, transparent 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: matrixSweep 2s linear infinite;
}

@keyframes matrixSweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Cyberpunk grid overlay */
.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(0, 255, 204, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 204, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Neon border animation */
.neon-border {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(45deg, #000, #111) padding-box,
              linear-gradient(45deg, #00ffcc, #00ffe1, #00ffcc) border-box;
  animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 5px #00ffcc; }
  50% { box-shadow: 0 0 20px #00ffcc, 0 0 30px #00ffe1; }
}

/* Holographic effect */
.holographic {
  background: linear-gradient(45deg,
    rgba(0, 255, 204, 0.1) 0%,
    rgba(0, 255, 225, 0.1) 25%,
    rgba(0, 255, 204, 0.1) 50%,
    rgba(0, 255, 225, 0.1) 75%,
    rgba(0, 255, 204, 0.1) 100%);
  background-size: 400% 400%;
  animation: holographicShift 4s ease-in-out infinite;
}

@keyframes holographicShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Terminal cursor effect */
.terminal-cursor::after {
  content: '|';
  color: #00ffcc;
  animation: blink 1s infinite;
}

/* Scan line effect for images */
.scan-effect {
  position: relative;
  overflow: hidden;
}

.scan-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ffcc, transparent);
  animation: scanDown 3s linear infinite;
}

@keyframes scanDown {
  0% { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Data stream effect */
.data-stream {
  position: fixed;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent 0%,
    #00ffcc 50%,
    transparent 100%);
  animation: dataFlow 2s linear infinite;
  z-index: 1;
}

@keyframes dataFlow {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* Print styles */
@media print {
  .bg-particles,
  .top-nav,
  .crypto-widget,
  .cyber-grid,
  .data-stream {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .section {
    background: white !important;
    border: 1px solid #ccc !important;
  }
}
