/* ============================================
   TORZON MARKET - STYLE.CSS
   Color Scheme: Cyan Blue (#00bcd4) + Dark Theme
   Based on Torzon Market Design
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
  /* Torzon Color Palette */
  --primary-blue: #00bcd4;      /* Cyan blue - main accent */
  --primary-blue-dark: #0097a7;
  --primary-blue-light: #4dd0e1;

  --dark-bg: #2d3436;           /* Dark header background */
  --darker-bg: #1a1d21;         /* Darker background */
  --light-bg: #ecf0f1;          /* Light section background */
  --white-bg: #ffffff;

  --red-accent: #e74c3c;        /* Red for buttons */
  --success-green: #27ae60;

  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --text-gray: #95a5a6;
  --text-white: #ffffff;

  --tor-yellow: #ffd700;        /* Tor onion colors */
  --tor-green: #7fff00;

  --border-color: rgba(0, 188, 212, 0.3);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  background: var(--darker-bg);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-blue-light);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
  background: var(--dark-bg);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  border-bottom: 2px solid var(--primary-blue);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  color: var(--primary-blue);
  letter-spacing: 2px;
}

.tor-onion {
  color: var(--tor-yellow);
  font-size: 1.5rem;
  margin: 0 -2px;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-gray);
  letter-spacing: 3px;
  margin-top: -5px;
  margin-left: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
  background: rgba(0, 188, 212, 0.1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background: var(--primary-blue);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
  padding: 4rem 2rem;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
}

#matrix-canvas {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-title {
  font-size: 4rem;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
}

.title-main {
  color: var(--primary-blue);
  display: block;
  font-size: 5rem;
  letter-spacing: 8px;
}

.tor-icon {
  color: var(--tor-yellow);
  font-size: 4rem;
  margin: 0 -5px;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

.title-sub {
  color: var(--text-gray);
  display: block;
  font-size: 1.5rem;
  letter-spacing: 5px;
  margin-top: 0.5rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-white);
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white-bg);
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white-bg);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  color: var(--primary-blue);
  margin-bottom: 3rem;
  position: relative;
  font-family: 'Orbitron', sans-serif;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--primary-blue);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--dark-bg);
  padding: 5rem 0;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.about-text {
  color: var(--text-white);
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.about-description strong {
  color: var(--primary-blue);
  font-weight: 600;
}

/* ===== CRYPTO PRICES WIDGET ===== */
.crypto-prices {
  background: var(--darker-bg);
  padding: 5rem 0;
}

.crypto-widget {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.crypto-card {
  background: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.crypto-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.crypto-card h3 {
  color: var(--primary-blue);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.crypto-card .price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 0.5rem;
}

.crypto-card .change {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

.crypto-card .change.positive {
  color: var(--success-green);
}

.crypto-card .change.negative {
  color: var(--red-accent);
}

.crypto-card .volume,
.crypto-card .timestamp {
  font-size: 0.9rem;
  color: var(--text-gray);
  text-align: center;
  margin-top: 0.5rem;
}

/* ===== SECURITY SECTION ===== */
.security {
  background: var(--dark-bg);
  padding: 5rem 0;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.security-card {
  background: var(--darker-bg);
  border-radius: 12px;
  padding: 2rem;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.security-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.5));
}

.card-header h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin: 0;
}

.card-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.card-content strong {
  color: var(--primary-blue-light);
}

/* ===== RESOURCES SECTION ===== */
.resources {
  background: var(--darker-bg);
  padding: 5rem 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.resource-category h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 0.5rem;
}

.resource-links {
  list-style: none;
}

.resource-links li {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  position: relative;
}

.resource-links li::before {
  content: '→';
  color: var(--primary-blue);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.resource-links a {
  color: var(--primary-blue-light);
  font-weight: 600;
  font-size: 1.05rem;
  display: block;
  transition: all 0.3s ease;
}

.resource-links a:hover {
  color: var(--primary-blue);
  transform: translateX(5px);
}

.resource-links span {
  display: block;
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* ===== REGISTRATION / STEPS SECTION ===== */
.registration {
  background: var(--dark-bg);
  padding: 5rem 0;
}

.registration-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step-item {
  background: var(--darker-bg);
  border-radius: 12px;
  padding: 2rem;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
}

.step-item:hover {
  border-color: var(--primary-blue);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-blue);
  opacity: 0.3;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 1rem;
}

.step-content h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.step-content p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ===== GALLERY SECTION ===== */
.gallery {
  background: var(--darker-bg);
  padding: 5rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  background: var(--dark-bg);
}

.gallery-item:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.gallery-image {
  width: 100%;
  min-height: 250px;
  background: var(--darker-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.gallery-overlay {
  padding: 1.5rem;
  background: var(--dark-bg);
}

.gallery-overlay h3 {
  color: var(--primary-blue);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.gallery-overlay p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--darker-bg);
  border-top: 3px solid var(--primary-blue);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--primary-blue);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.7rem;
}

.footer-section li a {
  color: var(--text-gray);
  transition: color 0.3s ease;
}

.footer-section li a:hover {
  color: var(--primary-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-gray);
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-gray);
  font-size: 0.9rem;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--dark-bg);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: var(--shadow);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .title-main {
    font-size: 3rem;
  }

  .tor-icon {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .title-main {
    font-size: 2rem;
    letter-spacing: 4px;
  }

  .tor-icon {
    font-size: 1.8rem;
  }

  .title-sub {
    font-size: 1rem;
    letter-spacing: 3px;
  }

  .crypto-widget {
    grid-template-columns: 1fr;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .registration-steps {
    grid-template-columns: 1fr;
  }
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ===== ACCESSIBILITY ===== */
:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue-light);
}
