/* ===== MODERN WEB3 THEME ===== */

/* Root Variables */
:root {
  --primary-purple: #a855f7;
  --secondary-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --dark-bg: #0f172a;
  --card-bg: rgba(15, 23, 42, 0.8);
  --glass-light: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glow-purple: 0 0 20px rgba(168, 85, 247, 0.5);
  --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.5);
  --glow-pink: 0 0 20px rgba(236, 72, 153, 0.5);
}

/* ===== GLOBAL STYLES ===== */

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

body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #e2e8f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND GRADIENTS ===== */

.animated-gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(45deg, #0f172a, #1e293b, #0f172a);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

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

/* Floating gradient orbs */
.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

.orb-purple {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.8), transparent);
  top: 10%;
  left: 10%;
}

.orb-cyan {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.8), transparent);
  bottom: 20%;
  right: 10%;
  animation-delay: 5s;
}

.orb-pink {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.8), transparent);
  top: 50%;
  right: 5%;
  animation-delay: 10s;
}

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

/* ===== GLASSMORPHISM ===== */

.glassmorphism {
  background: var(--glass-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glassmorphism:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

/* ===== HEADER STYLING ===== */

header {
  background: var(--glass-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-purple), var(--secondary-cyan), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HERO SECTION ===== */

.top-header {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.top-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.heading {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #a855f7, #06b6d4, #ec4899, #a855f7);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 8s linear infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}

.subheading {
  font-size: 1.3rem;
  color: rgba(226, 232, 240, 0.85);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* ===== BUTTONS ===== */

.btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-default-purple-fill {
  background: linear-gradient(135deg, var(--primary-purple), var(--accent-pink));
  color: white;
  box-shadow: var(--glow-purple);
}

.btn-default-purple-fill:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.8);
}

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

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.1);
  box-shadow: var(--glow-cyan);
}

/* ===== CARDS & CONTAINERS ===== */

.sync-container {
  background: var(--glass-light);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  min-height: 280px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.sync-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.sync-container:hover::before {
  left: 100%;
}

.sync-container:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(168, 85, 247, 0.3);
  border-color: rgba(168, 85, 247, 0.5);
}

.sync-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.sync-container .img {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
}

.sync-container .img img,
.sync-container .img svg {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
  transition: all 0.3s ease;
}

.sync-container:hover .img img,
.sync-container:hover .img svg {
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8));
  transform: scale(1.1);
}

.sync-container .title {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--primary-purple), var(--secondary-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sync-container .description {
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* ===== SECTIONS ===== */

.sec-normal {
  padding: 4rem 2rem;
  position: relative;
}

.sec-grad-yellow-to-black-right {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--primary-purple), var(--secondary-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subheading {
  font-size: 1.1rem;
  color: rgba(226, 232, 240, 0.8);
  margin-bottom: 2rem;
}

.c-pink {
  color: var(--accent-pink);
  font-weight: 600;
}

/* ===== CONTENT SECTION ===== */

.content-section {
  background: var(--glass-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 3rem;
  margin: 3rem 0;
}

.feature-text {
  color: rgba(226, 232, 240, 0.9);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--secondary-cyan);
  font-weight: 600;
  background: rgba(6, 182, 212, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
}

/* ===== ANIMATIONS ===== */

.fade-up {
  animation: fadeUp 0.8s ease-out forwards;
  opacity: 0;
}

.fade-up-delay-1 {
  animation-delay: 0.2s;
}

.fade-up-delay-2 {
  animation-delay: 0.4s;
}

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

/* ===== SPINNER ===== */

.spinner {
  width: 40px;
  height: 40px;
  position: relative;
  margin: 100px auto;
}

.double-bounce1, .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-purple);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1s;
}

@keyframes sk-bounce {
  0%, 100% { transform: scale(0); opacity: 1; }
  50% { transform: scale(1); opacity: 0.5; }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .heading {
    font-size: 2rem;
  }

  .subheading {
    font-size: 1rem;
  }

  .section-heading {
    font-size: 1.8rem;
  }

  .sync-container {
    padding: 1.5rem;
    min-height: auto;
  }

  .content-section {
    padding: 1.5rem;
  }
}

/* ===== UTILITY CLASSES ===== */

.text-white {
  color: #ffffff;
}

.text-muted {
  color: rgba(226, 232, 240, 0.6);
}

.text-center {
  text-align: center;
}

.me-3 {
  margin-right: 1rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.py-4 {
  padding: 1.5rem 0;
}

.py-20 {
  padding: 5rem 0;
}

.pb-80 {
  padding-bottom: 5rem;
}

.pt-4 {
  padding-top: 1.5rem;
}

.bottomhalfpadding {
  padding-bottom: 3rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.col-12 { grid-column: span 12; }
.col-md-6 { grid-column: span 6; }
.col-md-12 { grid-column: span 12; }
.col-lg-4 { grid-column: span 4; }
.col-lg-10 { grid-column: span 10; }
.col-lg-12 { grid-column: span 12; }
.col-sm-12 { grid-column: span 12; }

@media (max-width: 768px) {
  .col-md-6 { grid-column: span 12; }
  .col-lg-4 { grid-column: span 12; }
  .col-lg-10 { grid-column: span 12; }
}

.justify-content-center {
  justify-items: center;
}

.interact-button {
  position: relative;
}

.interact-button:active {
  transform: scale(0.97);
}

/* ===== NEON GLOW EFFECTS ===== */

.glow-purple {
  box-shadow: var(--glow-purple);
}

.glow-cyan {
  box-shadow: var(--glow-cyan);
}

.glow-pink {
  box-shadow: var(--glow-pink);
}

/* ===== BORDERS ===== */

.body-borders {
  display: none;
}

.top-border, .right-border, .bottom-border, .left-border {
  display: none;
}

/* ===== MERGECOLOR ===== */

.mergecolor {
  color: #ffffff;
}

.seccolor {
  color: rgba(226, 232, 240, 0.8);
}

/* ===== CUSTOM SCROLLBAR ===== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-purple), var(--secondary-cyan));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--secondary-cyan), var(--accent-pink));
}
