/* Base Styles */
:root {
  --primary: #4c6fff;
  --primary-dark: #3a59e0;
  --secondary: #14b8a6;
  --accent: #9333ea;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --card-bg: rgba(30, 41, 59, 0.7);
  --border-color: rgba(148, 163, 184, 0.1);
  --glow-blue: rgba(76, 111, 255, 0.5);
  --glow-purple: rgba(147, 51, 234, 0.5);
  --glow-green: rgba(16, 185, 129, 0.5);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, var(--dark) 0%, #1a237e 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

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

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

.section-title {
  margin-bottom: 1rem;
  background-image: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
}

.gradient-text {
  background-image: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border: none;
  box-shadow: 0 4px 14px rgba(76, 111, 255, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(76, 111, 255, 0.6);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--text);
}

.get-started-btn {
  border-radius: 24px;
  padding: 0.6rem 1.5rem;
}

.start-staking-btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* Navbar */
.navbar {
  padding: 1.5rem 0;
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.navbar.scrolled {
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand img.logo {
  height: 40px;
}

.navbar-nav .nav-link {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

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

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

/* Hero Section */

.hero-section {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
  background: url('/front/images/bg.jpeg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed; /* optional, creates a parallax effect */
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9); /* adjust opacity as needed */
  z-index: 1;
}

.hero-section > .container {
  position: relative;
  z-index: 2;
}


.hero-content {
  position: relative;
  z-index: 2;
}

.crypto-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(76, 111, 255, 0.1);
  border: 1px solid rgba(76, 111, 255, 0.3);
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--primary);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 500px;
}

.diamond-container {
  position: relative;
  width: 100%;
  height: 400px;
}

.ethereum-diamond {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ethereum-diamond img {
  max-height: 350px;
  filter: drop-shadow(0 0 20px rgba(76, 111, 255, 0.4));
}

.orbit-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: 0 0 15px rgba(76, 111, 255, 0.3);
}

.icon-1 {
  top: 15%;
  left: 25%;
  background: rgba(76, 111, 255, 0.2);
}

.icon-2 {
  top: 60%;
  left: 20%;
  background: rgba(147, 51, 234, 0.2);
}

.icon-3 {
  top: 25%;
  right: 25%;
  background: rgba(16, 185, 129, 0.2);
}

.icon-4 {
  top: 70%;
  right: 20%;
  background: rgba(239, 68, 68, 0.2);
}

/* Stats Section */
.stats-section {
  padding: 80px 0;
}

.stat-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.green-glow {
  box-shadow: 0 8px 32px var(--glow-green);
}

.purple-glow {
  box-shadow: 0 8px 32px var(--glow-purple);
}

.blue-glow {
  box-shadow: 0 8px 32px var(--glow-blue);
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

/* Staking Options Section */
.staking-options-section {
  padding: 80px 0;
}

.staking-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none; /* For Firefox */
}

.staking-slider::-webkit-scrollbar {
  display: none; /* For Chrome, Safari and Opera */
}

.staking-card, .networks-card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  flex: 0 0 400px;
  min-width: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staking-card:hover, .networks-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.network-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
}

.network-icon.eth {
  background: rgba(76, 111, 255, 0.2);
  color: var(--primary);
}

.network-icon.sol {
  background: rgba(147, 51, 234, 0.2);
  color: var(--accent);
}

.network-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.network-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.apy {
  color: var(--success);
  font-weight: 600;
}

.price {
  color: var(--text-muted);
}

.card-body {
  padding: 1.5rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.networks-card {
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.networks-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
}

.networks-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.networks-card p {
  margin-bottom: 1.5rem;
}

/* How It Works Section */
.how-it-works-section {
  padding: 100px 0;
  background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.5)), 
  url('/front/images/bg.jpeg?auto=compress&cs=tinysrgb&w=1600') no-repeat center center;
  background-size: cover;
  position: relative;
}

.how-it-works-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  z-index: 0;
}

.how-it-works-section .container {
  position: relative;
  z-index: 1;
}

.steps-container {
  margin-top: 2rem;
}

.step-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* DAO Section */
.dao-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  position: relative;
  overflow: hidden;
}

.dao-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(76, 111, 255, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.dao-section .container {
  position: relative;
  z-index: 1;
}

.dao-section .section-description {
  max-width: 800px;
}

.cta-buttons {
  margin-top: 2rem;
}

/* Ecosystem Section */
.ecosystem-section {
  padding: 100px 0;
}

.ecosystem-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ecosystem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.blue-icon {
  background: rgba(76, 111, 255, 0.1);
  color: var(--primary);
}

.purple-icon {
  background: rgba(147, 51, 234, 0.1);
  color: var(--accent);
}

.teal-icon {
  background: rgba(20, 184, 166, 0.1);
  color: var(--secondary);
}

.pink-icon {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.green-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.ecosystem-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Blog Section */
.blog-section {
  padding: 100px 0;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.card-image {
  height: 180px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-content h5 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--accent);
}

/* Validators Section */
.validators-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
}

.validators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2rem;
}

.validator-logo {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.validator-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

/* Newsletter Section */
.newsletter-section {
  padding: 80px 0;
}

.newsletter-form .input-group {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.newsletter-form .form-control {
  border: none;
  background: rgba(30, 41, 59, 0.7);
  color: var(--text);
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.newsletter-form .form-control::placeholder {
  color: var(--text-muted);
}

.newsletter-form .btn {
  padding: 1rem 2rem;
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: var(--dark);
  border-top: 1px solid var(--border-color);
}

.footer-logo {
  height: 36px;
}

.footer-description {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

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

.footer-heading {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-links {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.separator {
  margin: 0 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .diamond-container {
    height: 350px;
  }
}

@media (max-width: 991.98px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .hero-section {
    padding: 150px 0 80px;
  }
  
  .diamond-container {
    height: 300px;
    margin-top: 3rem;
  }
  
  .ecosystem-section .section-description,
  .dao-section .section-description {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-section {
    padding: 120px 0 60px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .staking-slider {
    flex-direction: column;
  }
  
  .staking-card, .networks-card {
    flex: none;
    width: 100%;
  }
  
  .validators-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .newsletter-form {
    margin-top: 2rem;
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .stats-section .col-md-4:not(:last-child) {
    margin-bottom: 1.5rem;
  }
}