/* ============================================
   OlimpX - Landing Page Styles
   ============================================ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --bg-dark: #0f172a;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
  position: relative;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: white;
}

/* Background Elements */
.blob {
  position: fixed; /* Fixed qilib layoutdan chiqaramiz */
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(50px);
  pointer-events: none;
  animation: float 20s infinite alternate;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 20px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 10%;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--glass-border);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-box {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #94a3b8;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: white;
}

.btn-login {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10%;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 10;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 50px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, #fff 40%, #64748b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease-out;
}

.hero-desc {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1.2s ease-out;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 1.4s ease-out;
}

.btn-primary {
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: 0.4s;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  background: var(--primary-dark);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

/* Features Section */
.features {
  padding: 100px 10%;
  background: #0b1120;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

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

.feature-card {
  padding: 2.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  transition: 0.4s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-10px);
  border-color: var(--primary);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card p {
  color: #94a3b8;
  line-height: 1.6;
}

/* About Section */
.about {
  padding: 100px 10%;
  background: var(--bg-dark);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-cards {
  position: relative;
  width: 100%;
  height: 100%;
}

.f-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: floatCard 4s infinite ease-in-out;
}

.f-card-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.f-card-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.f-card-label {
  font-size: 0.9rem;
  color: #94a3b8;
}

.f-card-1 { top: 10%; left: 0%; animation-delay: 0s; }
.f-card-2 { top: 40%; right: 0%; animation-delay: 1s; }
.f-card-3 { bottom: 10%; left: 20%; animation-delay: 2s; }

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

.about-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.about-title span {
  color: var(--primary);
}

.about-desc {
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
}

.stat-item h4 {
  font-size: 2rem;
  color: white;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: #64748b;
  font-size: 0.9rem;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: white;
  border-radius: 10px;
  transition: 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
  nav { padding: 1rem 5%; }
}

@media (max-width: 768px) {
  h1 { 
    font-size: clamp(2rem, 10vw, 3rem);
    word-break: break-word;
  }
  
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transform: translateX(101%); /* 100% emas, 101% qilib qat'iy yashiramiz */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--glass-border);
    z-index: 999;
  }

  .nav-links.is-active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.5rem;
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  .btn-login {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  .hero { padding: 0 5%; }
  
  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary, .btn-login {
    width: 100%;
    text-align: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .about-image {
    height: 350px !important;
    order: 2;
  }

  .f-card {
    padding: 1rem !important;
  }

  .f-card-1 { left: 5% !important; }
  .f-card-2 { right: 5% !important; }
  .f-card-3 { left: 15% !important; }

  .about-content {
    order: 1;
    text-align: center;
  }

  .about-content div {
    justify-content: center;
  }
}

/* Burger Animation */
.menu-toggle.is-active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* --- Footer Styles --- */
.footer {
  padding: 80px 10% 40px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-tagline {
  max-width: 400px;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.social-item svg {
  transition: transform 0.4s ease;
}

.social-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.5);
}

.social-item:hover svg {
  transform: rotate(12deg) scale(1.1);
}

.social-item.instagram:hover {
  border-color: #e1306c;
  color: #e1306c;
}

.social-item.telegram:hover {
  border-color: #0088cc;
  color: #0088cc;
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 640px) {
  .footer {
    padding: 60px 20px 30px;
  }
  
  .social-links {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  
  .social-item {
    justify-content: center;
  }
}

