@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Global Animation Settings */
* {
  transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  cursor: none;
}

body {
  background: #0a0a14;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
  width: 12px;
  height: 12px;
  background: #00c4ff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  mix-blend-mode: difference;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  background: rgba(0, 196, 255, 0.2);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.cursor.cursor-hover {
  width: 20px;
  height: 20px;
  background: #fff;
  mix-blend-mode: difference;
}

.cursor-follower.cursor-hover {
  width: 50px;
  height: 50px;
  background: rgba(0, 196, 255, 0.15);
  backdrop-filter: blur(4px);
}

/* Add transform-style to all interactive elements for smoother magnetic effect */
a, button, .platform-card:not(.coming-soon), .feature-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  will-change: transform;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Animated Background */
#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(10, 10, 20, 0.5) 0%, rgba(10, 10, 20, 0.8) 100%);
  z-index: -1;
  pointer-events: none;
}

.background-pattern {
  position: fixed;
  inset: 0;
  background: 
    linear-gradient(rgba(10, 10, 20, 0.8), rgba(10, 10, 20, 0.8)),
    url('background-pattern.png') repeat;
  z-index: -1;
  opacity: 0.1;
  animation: moveBackground 60s linear infinite;
}

@keyframes moveBackground {
  from { background-position: 0 0; }
  to { background-position: 100% 100%; }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  background: rgba(10, 10, 20, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.8s ease forwards;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  animation: scaleIn 0.8s ease forwards;
}

.logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 196, 255, 0.3));
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo:hover img {
  filter: drop-shadow(0 0 12px rgba(0, 196, 255, 0.5));
}

.navbar {
  display: flex;
  gap: 2rem;
}

.nav-item {
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.nav-item:nth-child(1) { animation-delay: 0.2s; }
.nav-item:nth-child(2) { animation-delay: 0.3s; }
.nav-item:nth-child(3) { animation-delay: 0.4s; }
.nav-item:nth-child(4) { animation-delay: 0.5s; }

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00c4ff, #0092ff);
  transition: width 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
  box-shadow: 0 0 20px rgba(0, 196, 255, 0.5);
}

.hero {
  padding-top: 120px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, #fff, #00c4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: glow 3s infinite;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

@keyframes glow {
  0% { text-shadow: 0 0 20px rgba(0, 196, 255, 0.1); }
  50% { text-shadow: 0 0 30px rgba(0, 196, 255, 0.3); }
  100% { text-shadow: 0 0 20px rgba(0, 196, 255, 0.1); }
}

.hero-subtitle {
  color: #bababa;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.5s;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn i {
  font-size: 1.25rem;
}

.btn i.bx-spin {
  animation: spin 1s linear infinite;
}

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

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

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 196, 255, 0.2);
}

.btn-primary {
  background: linear-gradient(90deg, #00c4ff, #0092ff);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-primary i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.btn-primary:hover i {
  transform: translateY(2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid #5865F2;
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(88, 101, 242, 0.1);
  border-color: #5865F2;
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.3);
}

.btn-secondary i {
  color: #5865F2;
  transition: color 0.3s ease;
}

.btn-secondary:hover i {
  color: #fff;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #fff;
}

.platforms {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: center;
}

.platform-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 180px;
  height: 180px;
  justify-content: center;
  position: relative;
}

.platform-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 30px rgba(0, 196, 255, 0.2);
}

.platform-card i {
  font-size: 3.5rem;
  color: #00c4ff;
  margin-bottom: 0.5rem;
}

.platform-card span {
  font-size: 1.1rem;
  font-weight: 500;
}

.platform-card.coming-soon {
  opacity: 0.5;
  cursor: not-allowed;
}

.platform-card.coming-soon small {
  position: absolute;
  bottom: 1.5rem;
  font-size: 0.8rem;
  color: #bababa;
}

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

.feature-card {
  background: rgba(30, 30, 46, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.4s; }
.feature-card:nth-child(2) { animation-delay: 0.5s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.7s; }
.feature-card:nth-child(5) { animation-delay: 0.8s; }
.feature-card:nth-child(6) { animation-delay: 0.9s; }

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 30, 46, 0.8);
  border-color: rgba(0, 196, 255, 0.3);
}

.feature-card i {
  font-size: 2.5rem;
  color: #00c4ff;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.feature-card:hover i {
  color: #fff;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.25rem;
}

.feature-card p {
  color: #6c7293;
  font-size: 0.9rem;
  line-height: 1.6;
}

.preview {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.preview-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  perspective: 1000px;
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.preview-window {
  background: #1e1e2e;
  border-radius: 8px;
  width: 450px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  transform-origin: center center;
}

.preview-window:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(0, 196, 255, 0.3);
}

.file-item, .folder-item {
  padding: 0.5rem 1rem;
  color: #6c7293;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.file-item:hover, .folder-item:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 1.5rem;
  color: #fff;
}

.file-item.active {
  background: rgba(0, 196, 255, 0.1);
  color: #00c4ff;
  position: relative;
}

.file-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: #00c4ff;
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.file-item.active:hover::before {
  transform: scaleY(1);
}

.window-controls {
  display: flex;
  gap: 0.5rem;
  margin-right: 1rem;
}

.window-controls .control {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.window-controls:hover .control {
  transform: scale(1.2);
  opacity: 0.8;
}

.window-controls .control:hover {
  transform: scale(1.4);
  opacity: 1;
}

.window-header {
  background: #1a1b26;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-title {
  color: #6c7293;
  font-size: 0.9rem;
}

.window-content {
  display: flex;
  height: 300px;
}

.editor-sidebar {
  width: 150px;
  background: #1a1b26;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.file-explorer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.editor-main {
  flex: 1;
  background: #1e1e2e;
  padding: 1rem;
  overflow: auto;
}

.code-content {
  font-family: 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.code-content pre {
  margin: 0;
}

.code-content code {
  color: #bababa;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #1e1e2e;
  border-radius: 12px;
  width: 600px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-window {
  transform: translateY(0);
  opacity: 1;
}

.modal-content {
  padding: 2rem;
  color: #fff;
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #00c4ff;
}

.modal-content p {
  color: #bababa;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

#modalExtra {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #6c7293;
}

/* Entrance Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 968px) {
  .preview-container {
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
  }
  
  .preview-window {
    width: 100%;
    max-width: 450px;
    transition: all 0.5s ease;
  }
}

@media (max-width: 768px) {
  .cursor, .cursor-follower {
    display: none;
  }
  
  * {
    cursor: auto;
  }
  
  a, button {
    cursor: pointer;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navbar {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
}
