/* Base Imports */
@import 'base/theme.css';

/* Component Imports */
@import 'components/buttons.css';
@import 'components/glass.css';
@import 'components/glass-cards.css';
@import 'components/navigation.css';
@import 'components/scroll-dots.css';
@import 'components/animations.css';
@import 'components/loading.css';
@import 'components/planet-animation.css';
@import 'components/table.css';
@import 'components/space-background.css';

/* Global Styles */
html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  min-height: 100vh;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow selection for specific elements where needed */
input, 
textarea, 
[contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Star Background */
body::before {
  content: '';
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: transparent;
  background-image: 
    radial-gradient(2px 2px at 40px 60px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 20px 50px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 30px 100px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 60px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 110px 90px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 190px 150px, #fff, rgba(0,0,0,0));
  background-size: 200px 200px;
  animation: stars 3s linear infinite;
  opacity: 0.4;
  z-index: -1;
}

@keyframes stars {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 0.4;
  }
}

/* Overlay for subtle nebula effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 247, 255, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(123, 44, 191, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0, 166, 251, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  opacity: 0.8;
  mix-blend-mode: screen;
  animation: nebulaGlow 10s ease-in-out infinite alternate;
}

@keyframes nebulaGlow {
  0% {
    opacity: 0.7;
    filter: blur(40px) hue-rotate(0deg);
  }
  50% {
    opacity: 0.9;
    filter: blur(45px) hue-rotate(15deg);
  }
  100% {
    opacity: 0.7;
    filter: blur(40px) hue-rotate(0deg);
  }
}

/* Button group */
.btn-group {
  display: flex;
  gap: var(--space-md);
}



/* Navbar */
.navbar {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  padding: var(--space-md) var(--space-xl);
}

.nav-links a {
  color: var(--text-primary);
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links .active {
  opacity: 1;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .nav-links {
    display: none;
  }
}

/* SVG Filter for Noise Effect */
.defs-only {
  position: absolute;
  height: 0;
  width: 0;
  overflow: none;
  left: -100%;
}

/* Platforms Section Styles */
.glass-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, 
    rgba(10, 25, 41, 0.8) 0%,
    rgba(10, 25, 41, 0.95) 100%
  );
  backdrop-filter: blur(10px);
}

/* Mobile Mockup Styles */
.mobile-mockup {
  position: relative;
  perspective: 1000px;
}

/* Floating Card Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(6deg);
  }
  50% {
    transform: translateY(-10px) rotate(6deg);
  }
}

@keyframes float-reverse {
  0%, 100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-10px) rotate(-3deg);
  }
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0) rotate(6deg);
  }
  50% {
    transform: translateY(-15px) rotate(6deg);
  }
}

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

.animate-float-reverse {
  animation: float-reverse 5s ease-in-out infinite;
}

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

/* Responsive Styles */
@media (max-width: 1280px) {
  .platforms-grid {
    gap: 1.5rem;
  }
  
  .mobile-mockup img {
    max-width: 90%;
  }
}

@media (max-width: 1024px) {
  .platforms-grid {
    grid-template-columns: 1fr;
  }
  
  .mobile-mockup {
    margin-bottom: 2rem;
  }
  
  .mobile-mockup img {
    max-width: 80%;
    margin: 0 auto;
  }
  
  .floating-card {
    transform: scale(0.9);
  }
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .mobile-mockup img {
    max-width: 70%;
  }
  
  .platform-card {
    padding: 1rem;
  }
  
  .platform-card .icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .floating-card {
    transform: scale(0.8);
  }
}

@media (max-width: 640px) {
  .platforms-grid {
    grid-template-columns: 1fr;
  }
  
  .mobile-mockup img {
    max-width: 60%;
  }
  
  .floating-card {
    display: none;
  }
  
  .platform-cards {
    grid-template-columns: 1fr;
  }
  
  .platform-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .mobile-mockup img {
    max-width: 50%;
  }
  
  .platform-card {
    flex-direction: column;
    text-align: center;
  }
  
  .platform-card .icon {
    margin-bottom: 0.5rem;
  }
}

/* Affiliate Section Responsive Styles */
@media (max-width: 1280px) {
  #affiliate .cyber-card {
    padding: 1.5rem;
  }

  #affiliate .grid-cols-1 {
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  #affiliate h2 {
    font-size: 2.5rem;
  }

  #affiliate .xl\:col-span-7 {
    grid-column: span 12 / span 12;
  }

  #affiliate .xl\:col-span-5 {
    grid-column: span 12 / span 12;
    margin-top: 2rem;
  }

  #affiliate img {
    max-width: 80%;
    margin: 0 auto;
    transform: translateY(0);
  }

  #affiliate .bubble-container {
    transform: scale(0.9);
  }
}

@media (max-width: 768px) {
  #affiliate {
    padding: 3rem 0;
  }

  #affiliate h2 {
    font-size: 2rem;
  }

  #affiliate p {
    font-size: 1rem;
  }

  #affiliate .cyber-card {
    padding: 1.25rem;
  }

  #affiliate .w-14 {
    width: 3rem;
    height: 3rem;
  }

  #affiliate .text-2xl {
    font-size: 1.25rem;
  }

  #affiliate .text-3xl {
    font-size: 1.5rem;
  }

  #affiliate .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  #affiliate .bubble-container {
    transform: scale(0.8);
  }

  #affiliate .bubble-emoji {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  #affiliate h2 {
    font-size: 1.75rem;
  }

  #affiliate .cyber-card {
    padding: 1rem;
  }

  #affiliate .w-12 {
    width: 2.5rem;
    height: 2.5rem;
  }

  #affiliate .text-lg {
    font-size: 1rem;
  }

  #affiliate .text-sm {
    font-size: 0.875rem;
  }

  #affiliate .gap-4 {
    gap: 0.75rem;
  }

  #affiliate .p-4 {
    padding: 0.75rem;
  }

  #affiliate .bubble-container {
    transform: scale(0.7);
  }

  #affiliate .btn {
    padding: 0.5rem 1rem;
    height: auto;
    font-size: 0.875rem;
  }

  #affiliate .btn i {
    font-size: 1rem;
  }
}

/* Market News Section Responsive Styles */
@media (max-width: 1280px) {
  #market-news .flex.gap-8 {
    gap: 1.5rem;
  }

  #market-news .w-80 {
    width: 18rem;
  }

  #market-news .cyber-card {
    padding: 1rem;
  }
}

@media (max-width: 1024px) {
  #market-news {
    padding: 4rem 0;
  }

  #market-news h2 {
    font-size: 2.5rem;
  }

  #market-news .tabs {
    flex-wrap: wrap;
  }

  #market-news .tab {
    flex: 1;
    min-width: 120px;
    font-size: 0.875rem;
  }

  #market-news .flex.gap-8 {
    flex-direction: column;
  }

  #market-news .w-80 {
    width: 100%;
  }

  #market-news .market-item {
    max-width: none;
  }

  /* Make market prices grid on tablet */
  #market-news .space-y-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    space-y-0 !important;
  }
}

@media (max-width: 768px) {
  #market-news {
    padding: 3rem 0;
  }

  #market-news h2 {
    font-size: 2rem;
  }

  #market-news p {
    font-size: 1rem;
  }

  #market-news .tabs {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  #market-news .tab {
    padding: 0.5rem;
    font-size: 0.75rem;
    min-width: 100px;
  }

  #market-news .tab i {
    font-size: 0.875rem;
  }

  /* Adjust table for mobile */
  #market-news .table th,
  #market-news .table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  #market-news .table img {
    width: 2rem;
    height: 2rem;
  }

  /* Make market prices single column on mobile */
  #market-news .space-y-4 {
    grid-template-columns: 1fr;
  }

  #market-news .market-item .w-8 {
    width: 2rem;
    height: 2rem;
  }

  #market-news .market-item i {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  #market-news h2 {
    font-size: 1.75rem;
  }

  #market-news .tabs {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }

  #market-news .tab {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  /* Further adjust table for small mobile */
  #market-news .table th,
  #market-news .table td {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }

  #market-news .table .line-clamp-1 {
    max-width: 150px;
  }

  #market-news .market-item {
    padding: 0.75rem;
  }

  #market-news .market-item .text-sm {
    font-size: 0.75rem;
  }

  #market-news .market-item .font-bold {
    font-size: 0.875rem;
  }

  #market-news .btn {
    font-size: 0.875rem;
    padding: 0.5rem;
  }

  #market-news .btn i {
    font-size: 0.875rem;
  }
}

/* Custom scrollbar for table overflow */
#market-news .overflow-x-auto {
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 158, 255, 0.3) transparent;
}

#market-news .overflow-x-auto::-webkit-scrollbar {
  height: 6px;
}

#market-news .overflow-x-auto::-webkit-scrollbar-track {
  background: transparent;
}

#market-news .overflow-x-auto::-webkit-scrollbar-thumb {
  background-color: rgba(77, 158, 255, 0.3);
  border-radius: 20px;
}

/* Improve table responsiveness */
#market-news .table {
  min-width: 600px;
}

/* Technology Section Responsive Styles */
@media (max-width: 1280px) {
  #technology {
    padding: 4rem 0;
  }

  #technology .cyber-card {
    padding: 1.25rem;
  }

  #technology .table th,
  #technology .table td {
    padding: 1rem 0.75rem;
  }
}

@media (max-width: 1024px) {
  #technology h2 {
    font-size: 2.5rem;
  }

  #technology .table {
    min-width: 800px; /* Ensure table remains scrollable */
  }

  #technology .overflow-x-auto {
    margin: 0 -1rem;
    padding: 0 1rem;
  }

  #technology .text-2xl {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  #technology {
    padding: 3rem 0;
  }

  #technology h2 {
    font-size: 2rem;
  }

  #technology p {
    font-size: 1rem;
  }

  #technology .table th,
  #technology .table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  /* Adjust table header and footer for mobile */
  #technology .flex.items-center.justify-between {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  #technology .flex.items-center.gap-3 {
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  #technology h2 {
    font-size: 1.75rem;
  }

  #technology .cyber-card {
    padding: 1rem;
  }

  #technology .table th,
  #technology .table td {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }

  /* Further optimize table content for mobile */
  #technology .table i {
    font-size: 0.875rem;
  }

  #technology .table .font-bold {
    font-size: 0.75rem;
  }

  #technology .text-sm {
    font-size: 0.75rem;
  }

  /* Adjust spacing in table footer */
  #technology .mt-6 {
    margin-top: 1rem;
  }

  #technology .gap-4 {
    gap: 0.5rem;
  }
}

/* Custom scrollbar for technology table */
#technology .overflow-x-auto {
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 158, 255, 0.3) transparent;
}

#technology .overflow-x-auto::-webkit-scrollbar {
  height: 6px;
}

#technology .overflow-x-auto::-webkit-scrollbar-track {
  background: transparent;
}

#technology .overflow-x-auto::-webkit-scrollbar-thumb {
  background-color: rgba(77, 158, 255, 0.3);
  border-radius: 20px;
}

/* Improve table hover states */
#technology .table tr:hover td {
  background-color: rgba(26, 60, 97, 0.3) !important;
}

/* Add fade indicators for table scroll */
#technology .overflow-x-auto {
  position: relative;
}

#technology .overflow-x-auto::after,
#technology .overflow-x-auto::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  pointer-events: none;
  z-index: 1;
}

#technology .overflow-x-auto::before {
  left: 0;
  background: linear-gradient(to right, rgba(10, 25, 41, 0.9), transparent);
}

#technology .overflow-x-auto::after {
  right: 0;
  background: linear-gradient(to left, rgba(10, 25, 41, 0.9), transparent);
}

/* Features Section Responsive Styles */
@media (max-width: 1280px) {
  #features {
    padding: 4rem 0;
  }

  #features .cyber-card {
    padding: 1.5rem;
  }

  #features .w-16 {
    width: 3.5rem;
    height: 3.5rem;
  }

  #features .text-2xl {
    font-size: 1.5rem;
  }

  #features .gap-8 {
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  #features h2 {
    font-size: 2.5rem;
  }

  #features .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  #features .cyber-card {
    padding: 1.25rem;
  }

  /* Adjust decorative elements */
  #features .w-32 {
    width: 6rem;
    height: 6rem;
  }

  #features .w-24 {
    width: 5rem;
    height: 5rem;
  }

  #features .blur-3xl {
    --tw-blur: blur(2rem);
  }

  #features .blur-2xl {
    --tw-blur: blur(1.5rem);
  }
}

@media (max-width: 768px) {
  #features {
    padding: 3rem 0;
  }

  #features h2 {
    font-size: 2rem;
  }

  #features p {
    font-size: 1rem;
  }

  #features .grid-cols-3,
  #features .grid-cols-2 {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  #features .cyber-card {
    padding: 1.25rem;
  }

  /* Adjust icon sizes */
  #features .w-16 {
    width: 3rem;
    height: 3rem;
  }

  #features .text-2xl {
    font-size: 1.25rem;
  }

  /* Optimize text sizes */
  #features .text-xl {
    font-size: 1.125rem;
  }

  #features .min-h-\[80px\] {
    min-height: 60px;
  }

  /* Adjust button sizes */
  #features .cyber-button {
    padding: 0.5rem 1rem;
  }

  #features .cyber-button i {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  #features h2 {
    font-size: 1.75rem;
  }

  #features .cyber-card {
    padding: 1rem;
  }

  /* Further reduce icon sizes */
  #features .w-16 {
    width: 2.5rem;
    height: 2.5rem;
  }

  #features .text-2xl {
    font-size: 1.125rem;
  }

  /* Adjust text sizes */
  #features .text-xl {
    font-size: 1rem;
  }

  #features .text-sm {
    font-size: 0.75rem;
  }

  /* Optimize spacing */
  #features .gap-4 {
    gap: 0.75rem;
  }

  #features .mb-8 {
    margin-bottom: 1rem;
  }

  #features .mb-6 {
    margin-bottom: 0.75rem;
  }

  #features .min-h-\[80px\] {
    min-height: 50px;
  }

  /* Adjust decorative elements */
  #features .w-32 {
    width: 5rem;
    height: 5rem;
  }

  #features .w-24 {
    width: 4rem;
    height: 4rem;
  }

  #features .blur-3xl {
    --tw-blur: blur(1.5rem);
  }

  #features .blur-2xl {
    --tw-blur: blur(1rem);
  }

  /* Optimize hover effects for touch devices */
  #features .hover\:scale-\[1\.02\] {
    transform: scale(1);
  }

  #features .group-hover\:scale-150 {
    transform: scale(1.25);
  }
}

/* Enhance card animations */
#features .cyber-card {
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Optimize transitions for mobile */
@media (hover: none) {
  #features .cyber-card {
    transition: none;
  }

  #features .group-hover\:scale-150,
  #features .hover\:scale-\[1\.02\],
  #features .group-hover\:scale-125,
  #features .group-hover\:scale-110 {
    transform: none;
  }

  #features .group-hover\:opacity-100 {
    opacity: 0.5;
  }
}

/* Neon Icon Animations */
@keyframes border-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

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

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-border-rotate {
  animation: border-rotate 8s linear infinite;
}

.animate-glow-1 {
  animation: glow 2s ease-in-out infinite;
}

.animate-glow-2 {
  animation: glow 2s ease-in-out infinite 0.5s;
}

.animate-glow-3 {
  animation: glow 2s ease-in-out infinite 1s;
}

.animate-glow-4 {
  animation: glow 2s ease-in-out infinite 1.5s;
}

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

.animate-spin-slow {
  animation: spin-slow 15s linear infinite;
}

.animate-pulse-slow {
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}