/* Magic UI - Absolyut Skrolsiz Premium Dizayn.
Siz yuborgan audio asosida qayta yig'ildi: 
Telegram va boshqalar o'ng tomonda, ma'lumotlar markazda, barchasi bitta ekranga joylashadi! */

:root {
  --bg: #03132e; /* Moviylikka tortuvchi juda to'q ko'k */
  --bg-secondary: #072a66;
  --bg-card: rgba(14, 165, 233, 0.15); /* Glassmorphism uchun moviy glass */
  --border: rgba(14, 165, 233, 0.4); /* Yorqin moviy chegara */
  --text-primary: #ffffff;
  --text-secondary: #bae6fd; /* Och moviy matn */
  --accent: #38bdf8;
  --gradient-1: #0ea5e9; /* Sky blue */
  --gradient-2: #06b6d4; /* Cyan */
  --gradient-3: #3b82f6; /* Blue */
  --font-main: 'Outfit', sans-serif;
  --font-title: 'Syne', sans-serif;
  
  --radius: 20px;
}

body.magic-ui-theme {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow: hidden; /* Skroll butunlay bloklanadi */
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center; 
}

/* Orqa fon */
.grid-background {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(to right, rgba(14, 165, 233, 0.08) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(14, 165, 233, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 90%);
  z-index: -2;
  pointer-events: none;
}

/* Gradient Sharlar */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.5; /* Yorqinlikni biroz oshiramiz */
  pointer-events: none;
}
.orb-1 { top: -10%; left: 0%; width: 50vw; height: 50vw; background: var(--gradient-1); }
.orb-2 { bottom: -10%; right: 0%; width: 40vw; height: 40vw; background: var(--gradient-2); }

/* Meteoritlar */
#meteors-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  overflow: hidden; z-index: 0; pointer-events: none;
}
.meteor {
  position: absolute; width: 150px; height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.8), transparent);
  transform-origin: left; animation: meteor-animation 2.5s linear forwards; opacity: 0;
}
.meteor::before {
  content: ''; position: absolute; width: 4px; height: 4px; background: #fff;
  border-radius: 50%; box-shadow: 0 0 12px 3px rgba(255,255,255,0.8); transform: translateY(-50%);
}
@keyframes meteor-animation {
  0% { transform: scale(0) translateX(0); opacity: 0; }
  10% { transform: scale(1) translateX(10%); opacity: 1; }
  100% { transform: scale(1) translateX(150vw); opacity: 0; }
}

/* Asosiy Konteyner - Bir Ekranga qotirilgan */
.wrapper {
  width: 100%;
  max-width: 1200px;
  height: 100vh; /* Umumiy ekran bo'yi */
  padding: 1.5rem 2rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  gap: 1.5rem;
  box-sizing: border-box;
}

/* Sarlavha qismi */
.header-section {
  text-align: center;
  margin-bottom: 0rem; 
  animation: slideDown 0.8s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.header-top-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.3rem;
}

.edge-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.05);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.shiny-badge-wrapper {
  margin-bottom: 0;
}
.shiny-badge {
  display: inline-flex; align-items: center; padding: 6px 18px; font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px; box-shadow: inset 0 0 20px rgba(255,255,255,0.02); backdrop-filter: blur(10px);
}

.main-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800; line-height: 1; margin: 0; letter-spacing: -2px;
}
.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent;
}

/* Bento Grid: Maxsus 3 qatorli qoidalar */
.bento-grid {
  display: grid;
  /* Chap=Rasm, Markaz=Tugmalar(Katta), O'ng=Ijtimoiy tarmoqlar(Kichik) */
  grid-template-columns: 1.2fr 1.5fr 110px; 
  grid-template-rows: repeat(3, minmax(80px, 1fr)); /* 3 ta tugma uchun qatorlar */
  gap: 15px;
  height: 60vh; /* Balandlik ekranning 60% qismini o'zlashtiradi */
  animation: fadeIn 1s ease-out 0.2s backwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Qat'iy Joylashuv (Desktop) */
.bento-grid > div:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 4; } /* Rasm - 3 qatorga tushadi */
.bento-grid > a:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }   /* Kurshi */
.bento-grid > a:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }   /* Men haqimda */
.bento-grid > a:nth-child(4) { grid-column: 2 / 3; grid-row: 3 / 4; }   /* Bog'lanish */
.bento-grid > div:nth-child(5) { grid-column: 3 / 4; grid-row: 1 / 4; } /* Socials - Vertikal holatda 3 qatorni ushlaydi */

/* Asosiy Karta Stili */
.bento-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  color: var(--text-primary); display: flex; flex-direction: column;
  transition: transform 0.3s, border-color 0.3s;
}
.bento-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.25); }

.card-inner { position: relative; padding: 1.5rem; height: 100%; display: flex; z-index: 2; box-sizing: border-box; }
.card-inner.p-0 { padding: 0 !important; }

/* Rasm Kartasi */
.image-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.image-gradient-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg-secondary) 100%); pointer-events: none;
}

/* Lazer animatsiya */
.border-beam { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: var(--radius); pointer-events: none; z-index: 1; }
.border-beam::before {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0%, var(--gradient-1) 10%, transparent 20%);
  border-radius: calc(var(--radius) + 1px); animation: rotate-beam 4s linear infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude; -webkit-mask-composite: source-out; padding: 1px;
}
@keyframes rotate-beam { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Magic Hover */
.magic-hover-card { position: relative; }
.magic-hover-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(14, 165, 233, 0.15), transparent 40%);
  z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.5s;
}
.magic-hover-card:hover::before { opacity: 1; }

/* Shisha effekt */
.glass-card { backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); }

/* Tugmalar joylashuvi (gorizontal yoyilgan) */
.link-content { flex-direction: row; align-items: center; justify-content: flex-start; gap: 1.2rem; }
.text-box { display: flex; flex-direction: column; justify-content: center; }
.text-box h3 { margin: 0 0 0.2rem 0; font-size: 1.3rem; font-weight: 600; }
.text-box p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.3; }

.icon-circle {
  width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; flex-shrink: 0;
  align-items: center; justify-content: center; font-size: 1.2rem; color: var(--text-primary); border: 1px solid rgba(255,255,255,0.05);
}
.icon-circle.primary { background: var(--gradient-3); border: none; color: white; box-shadow: 0 0 20px rgba(67, 97, 238, 0.4); }

/* Bitta ustunli vertikal Ijtimoiy tarmoqlar (Socials stack - Desktop) */
.social-card-container { display: flex; align-items: center; justify-content: center; }
.socials-stack { flex-direction: column !important; align-items: center; justify-content: center; gap: 1rem; width: 100%; }
.social-btn {
  width: 60px; height: 60px; border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-primary); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; transition: all 0.3s; text-decoration: none;
  position: relative; z-index: 10; pointer-events: auto; cursor: pointer;
}
.social-btn:hover { background: var(--text-primary); color: var(--bg); transform: scale(1.1); box-shadow: 0 10px 15px rgba(255,255,255,0.2); }

/* Footer */
footer { text-align: center; color: var(--text-secondary); font-size: 0.8rem; border-top: 1px solid transparent; opacity: 0.5; margin-top: 0rem; }

/* Mobil Qoidalari: Absolyut yig'ish (Portret) */
@media (max-width: 900px) {
  .wrapper { padding: 1rem; gap: 0.8rem; }
  .header-section { margin-bottom: 0px; }
  .header-top-row { flex-wrap: wrap; gap: 0.5rem; }
  .edge-badge { display: none; /* Mobilda ko'p joy olmasligi uchun yashiriladi */ }
  .shiny-badge { font-size: 0.75rem; padding: 4px 12px; }
  .main-title { font-size: 2.2rem; br { display: none; } }
  
  /* Mobilda 1 x 5 list (Rasm, 3ta tugma, ijtimoiy tarmoqlar) */
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 25vh repeat(3, minmax(70px, 10vh)) 8vh;
    gap: 10px; height: 70vh;
  }
  
  .bento-grid > div:nth-child(1) { grid-column: 1; grid-row: 1; }
  .bento-grid > a:nth-child(2) { grid-column: 1; grid-row: 2; }
  .bento-grid > a:nth-child(3) { grid-column: 1; grid-row: 3; }
  .bento-grid > a:nth-child(4) { grid-column: 1; grid-row: 4; }
  .bento-grid > div:nth-child(5) { grid-column: 1; grid-row: 5; }
  
  .card-inner { padding: 0.8rem 1rem; }
  .icon-circle { width: 40px; height: 40px; font-size: 1rem; }
  .text-box h3 { font-size: 1.1rem; }
  .text-box p { font-size: 0.8rem; }
  
  /* Mobil ijtimoiy tarmoqlar Gorizontal bo'ladi */
  .socials-stack { flex-direction: row !important; gap: 1rem; justify-content: space-around; }
  .social-btn { width: 45px; height: 45px; font-size: 1.3rem; border-radius: 12px; }
}
