/* 
 * Qbitcoin Home Page Styling
 * Dark theme with blue gradients
 * Mobile optimized and SEO friendly
 */

/* === RESET & BASE STYLES === */
:root {
  --dark-bg: #0a1929;
  --darker-bg: #05101f;
  --primary-blue: #1976d2;
  --secondary-blue: #2196f3;
  --accent-blue: #64b5f6;
  --highlight-blue: #00b0ff;
  --text-primary: #ffffff;
  --text-secondary: #b0bec5;
  --gradient-blue: linear-gradient(135deg, #1976d2, #64b5f6);
  --gradient-dark: linear-gradient(135deg, #0a1929, #05101f);
  --gradient-glow: linear-gradient(135deg, rgba(25, 118, 210, 0.8), rgba(0, 176, 255, 0.8));
  --card-bg: rgba(15, 35, 60, 0.7);
  --card-hover: rgba(25, 118, 210, 0.2);
  --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

a:hover {
  color: var(--highlight-blue);
  transform: translateY(-2px);
}

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

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* === UTILITIES === */
.gradient-text {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 80px;
  height: 4px;
  background: var(--gradient-blue);
  transform: translateX(-50%);
  border-radius: 4px;
}

.highlight {
  color: var(--accent-blue);
}

/* === HEADER & NAVIGATION === */
header {
  background-color: var(--darker-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-link {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-image {
  height: 40px;
  margin-right: 12px;
}

.logo-text {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

#main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

#main-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

#main-nav a:hover, #main-nav a.active-nav {
  color: var(--text-primary);
  background-color: rgba(25, 118, 210, 0.15);
}

#main-nav a.active-nav {
  border-bottom: 2px solid var(--primary-blue);
}

.node-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #f44336;
}

.status-indicator.online {
  background-color: #4caf50;
}

#node-status-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.mobile-menu-toggle {
  display: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--dark-bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(25, 118, 210, 0.15), transparent 50%);
  z-index: 1;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.btn-primary {
  background: var(--gradient-blue);
  color: white;
  box-shadow: 0 4px 20px rgba(25, 118, 210, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(25, 118, 210, 0.6);
  color: white;
}

.btn-secondary {
  background: rgba(25, 118, 210, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(25, 118, 210, 0.3);
}

.btn-secondary:hover {
  background: rgba(25, 118, 210, 0.2);
  color: var(--highlight-blue);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.hero-particles {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* === FEATURES SECTION === */
.features {
  padding: 6rem 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.feature-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--card-hover);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.feature-card:hover .feature-hover-effect {
  opacity: 1;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 20px rgba(25, 118, 210, 0.3);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* === HOW IT WORKS SECTION === */
.how-it-works {
  padding: 6rem 0;
  background-color: var(--darker-bg);
  position: relative;
  overflow: hidden;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 2rem;
  position: relative;
}

.step-number {
  background: var(--dark-bg);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--highlight-blue);
  border: 2px solid var(--primary-blue);
  flex-shrink: 0;
}

.step-connector {
  position: absolute;
  top: 60px;
  left: 30px;
  width: 2px;
  height: calc(100% + 3rem);
  background: linear-gradient(to bottom, var(--primary-blue) 50%, transparent);
  z-index: 0;
}

.step:last-child .step-connector {
  display: none;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.tech-background-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(25, 118, 210, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(100, 181, 246, 0.1) 0%, transparent 50%);
  opacity: 0.5;
  z-index: 0;
}

/* === CTA SECTION === */
.cta {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cta-blur-gradient {
  position: absolute;
  top: -30%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(25, 118, 210, 0.2), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}

/* === MARKET STATS SECTION === */
.market-stats {
  padding: 6rem 0;
  background-color: var(--darker-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
}

.stat-icon {
  font-size: 2rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* === FOOTER === */
.footer {
  position: relative;
  background-color: var(--darker-bg);
  color: var(--text-secondary);
  padding-top: 6rem;
}

.footer-wave {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo-img {
  height: 50px;
  width: auto;
}

.footer-logo-text {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.footer-newsletter {
  max-width: 450px;
}

.footer-newsletter h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.footer-newsletter p {
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.btn-subscribe {
  background: var(--gradient-blue);
  border: none;
  border-radius: 50px;
  color: white;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-subscribe:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(25, 118, 210, 0.4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-blue);
}

.about-section p {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-3px);
}

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

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.footer-language select {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
}

.footer-language select:focus {
  outline: none;
  border-color: var(--primary-blue);
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s forwards;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 1s forwards 0.3s;
}

.float {
  animation: float 6s ease-in-out infinite;
}

.pulse {
  animation: pulse 2s infinite;
}

.pulse-slow {
  animation: pulse 3s infinite;
}

.glow {
  animation: glow 3s infinite;
}

.glow-blue {
  animation: glowBlue 3s infinite;
}

.rotate-slow {
  animation: rotateSlow 20s linear infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(25, 118, 210, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(25, 118, 210, 0);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(25, 118, 210, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.5);
  }
}

@keyframes glowBlue {
  0% {
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(25, 118, 210, 0.8), 0 0 30px rgba(100, 181, 246, 0.4);
  }
  100% {
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.5);
  }
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  #main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--darker-bg);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
    z-index: 200;
  }
  
  #main-nav.active {
    left: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }
  
  #main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .node-status {
    display: none;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .footer-newsletter {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

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

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

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

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