/* Variables for consistent colors and easy theming */
:root {
  --primary: #5681d0;
  --primary-dark: #4070c0;
  --bg-dark: #1a1a3d;
  --bg-main: #212750;
  --text-light: #f8f8f2;
  --accent: #ff6b6b;
  --accent-light: #c8a2c8;
  --shadow: rgba(0, 0, 0, 0.2);
  --card-bg: rgba(255, 255, 255, 0.05);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container for everything */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: relative;
  z-index: 100;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg,
      var(--primary) 0%,
      var(--primary-dark) 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}

.logo-icon::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 12px;
  top: 6px;
  left: 6px;
  background-color: var(--text-light);
  border-radius: 1px;
  box-shadow: 0 2px 0 var(--text-light), 0 4px 0 var(--text-light);
}

.logo-icon::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  top: 14px;
  right: 8px;
  border-left: 4px solid var(--accent);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

.logo-icon {
  background: linear-gradient(135deg,
      var(--primary) 0%,
      var(--primary-dark) 100%);
}

.logo-icon::before {
  box-shadow: 6px 0 0 var(--text-light), 0 8px 0 rgba(248, 248, 242, 0.7),
    6px 8px 0 rgba(248, 248, 242, 0.7);
}

.logo:hover .logo-icon::after {
  animation: shareMove 0.6s ease-in-out;
}

@keyframes shareMove {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(3px);
  }
}

/* Animated particles background */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
}

/* Generate different sized and positioned particles */
.particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation: float 30s linear infinite;
}

.particle:nth-child(2) {
  top: 70%;
  left: 30%;
  animation: float 25s linear infinite;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  top: 40%;
  left: 50%;
  animation: float 35s linear infinite;
  animation-delay: 5s;
}

.particle:nth-child(4) {
  top: 60%;
  left: 70%;
  animation: float 22s linear infinite;
  animation-delay: 1s;
}

.particle:nth-child(5) {
  top: 30%;
  left: 85%;
  animation: float 28s linear infinite;
  animation-delay: 3s;
}

.particle:nth-child(6) {
  top: 80%;
  left: 15%;
  animation: float 32s linear infinite;
  animation-delay: 4s;
}

.particle:nth-child(7) {
  top: 10%;
  left: 60%;
  animation: float 27s linear infinite;
  animation-delay: 6s;
}

.particle:nth-child(8) {
  top: 50%;
  left: 25%;
  animation: float 24s linear infinite;
  animation-delay: 7s;
}

.particle:nth-child(9) {
  top: 75%;
  left: 80%;
  animation: float 34s linear infinite;
  animation-delay: 8s;
}

.particle:nth-child(10) {
  top: 35%;
  left: 92%;
  animation: float 26s linear infinite;
  animation-delay: 9s;
}

.particle:nth-child(11) {
  top: 85%;
  left: 40%;
  animation: float 29s linear infinite;
  animation-delay: 10s;
}

.particle:nth-child(12) {
  top: 15%;
  left: 75%;
  animation: float 31s linear infinite;
  animation-delay: 11s;
}

/* Floating animation for particles */
@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(50px, 50px);
  }

  50% {
    transform: translate(100px, 0);
  }

  75% {
    transform: translate(50px, -50px);
  }

  100% {
    transform: translate(0, 0);
  }
}

/* Hero section */
.hero {
  padding: 60px 0;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 80px);
  position: relative;
}

.hero-content {
  flex: 1;
  padding-right: 40px;
}

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

h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(to right, var(--primary), var(--accent-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  animation: fadeIn 1s ease;
}

h2 {
  font-size: 1.8rem;
  color: var(--accent-light);
  margin-bottom: 15px;
  animation: fadeIn 1s ease 0.2s both;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  opacity: 0;
  animation: fadeIn 1s ease 0.4s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button styles */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1s ease 0.6s forwards;
}

.cta-button::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: all 0.5s ease;
  z-index: -1;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(86, 129, 208, 0.4);
}

.cta-button:hover::before {
  left: 100%;
}

/* Features section */
.features {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-main), var(--bg-dark));
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.feature-icon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.2;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }

  100% {
    transform: scale(1);
    opacity: 0.2;
  }
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--primary);
  z-index: 1;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--accent-light);
}

/* Animated backdrop */
.backdrop {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.1;
  filter: blur(40px);
  animation: moveBackground 15s ease infinite alternate;
}

@keyframes moveBackground {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

/* Lottie container */
.lottie-container {
  position: relative;
  z-index: 2;
}

/* File animation */
.files-animation {
  position: absolute;
  top: -80px;
  right: -100px;
  width: 200px;
  height: 200px;
  z-index: 0;
  opacity: 0.6;
  animation: float-files 8s ease-in-out infinite;
}

@keyframes float-files {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.file {
  position: absolute;
  width: 40px;
  height: 50px;
  background-color: var(--accent-light);
  border-radius: 3px;
}

.file::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  background-color: var(--bg-dark);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.file:nth-child(1) {
  top: 0;
  left: 0;
  transform: rotate(-10deg);
  background-color: var(--primary);
  animation: float-file 12s ease-in-out infinite;
}

.file:nth-child(2) {
  top: 60px;
  left: 40px;
  transform: rotate(5deg);
  background-color: var(--accent);
  animation: float-file 10s ease-in-out infinite 1s;
}

.file:nth-child(3) {
  top: 120px;
  left: 10px;
  transform: rotate(-5deg);
  animation: float-file 11s ease-in-out infinite 2s;
}

@keyframes float-file {

  0%,
  100% {
    transform: translateY(0) rotate(var(--rotation, 0deg));
  }

  50% {
    transform: translateY(-15px) rotate(calc(var(--rotation, 0deg) + 5deg));
  }
}

/* Footer */
footer {
  padding: 40px 0;
  text-align: center;
  background-color: var(--bg-dark);
}

/* Responsive styles */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 40px 0;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  h1 {
    font-size: 2.5rem;
  }
}
