/* ============================================
   base.css — barcha slaydlar uchun umumiy
   Uddala brend ranglari (blue) + reference struktura
   ============================================ */

:root {
    --color-accent: #2196f3;
    --color-accent-dark: #1565c0;
    --color-accent-light: #64b5f6;
    --color-navy: #0a1f3c;
    --color-navy-dark: #061629;
    --color-navy-light: #163659;
    --color-gold: #d4a017;
    --color-white: #ffffff;
    --color-cream: #f8f6f0;
    --color-gray: #6b7280;
    --color-gray-light: #e5e7eb;

    --gradient-primary: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);

    --shadow-sm: 0 2px 8px rgba(10, 31, 60, 0.08);
    --shadow-md: 0 6px 20px rgba(10, 31, 60, 0.12);
    --shadow-lg: 0 12px 40px rgba(10, 31, 60, 0.18);

    --font-base: "Nunito", "Segoe UI", "Tahoma", "Arial Unicode MS", system-ui, sans-serif;
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: var(--font-base);
    background: var(--gradient-primary);
    color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Slayd umumiy konteyner
   ============================================ */

.slide-body {
    position: relative;
    width: 100vw;
    height: 100vh;
    padding: 5vh 6vw;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.slide-bg-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    background-image:
        repeating-linear-gradient(45deg, transparent 0, transparent 40px, var(--color-white) 40px, var(--color-white) 41px),
        repeating-linear-gradient(-45deg, transparent 0, transparent 40px, var(--color-white) 40px, var(--color-white) 41px);
}

/* Yumshoq radial glow fon (intro/yakuniy slaydlar uchun) */
.slide-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 22%, rgba(33, 150, 243, 0.22) 0%, transparent 42%),
        radial-gradient(circle at 82% 78%, rgba(33, 150, 243, 0.16) 0%, transparent 45%);
}

/* ============================================
   Slayd sarlavhasi (content slaydlar uchun)
   ============================================ */

.slide-header {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.slide-num-big {
    position: absolute;
    top: -2rem;
    right: 0;
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-accent);
    opacity: 0.18;
    letter-spacing: -0.05em;
    pointer-events: none;
}

.slide-header-icon {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: rgba(33, 150, 243, 0.15);
    color: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(33, 150, 243, 0.28),
                0 6px 18px rgba(33, 150, 243, 0.18);
}

.slide-header-icon svg {
    width: 36px;
    height: 36px;
}

.slide-header-main {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;
}

.slide-title {
    font-size: 2.7rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.slide-accent {
    width: 80px;
    height: 5px;
    background: var(--gradient-accent);
    border-radius: 3px;
}

/* ============================================
   Umumiy elementlar
   ============================================ */

.lead {
    font-size: 1.6rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
    padding: 1.4rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 10px 10px 0;
}

.benefits-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-accent-light);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.28rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
}

.check-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--gradient-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.1rem;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

/* Two-column layout */
.content-two-col {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    flex: 1;
    align-items: center;
}

.content-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box {
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.icon-box::before {
    content: "";
    position: absolute;
    inset: -12px;
    border: 2px dashed var(--color-accent);
    border-radius: 50%;
    opacity: 0.4;
}

.icon-box svg {
    width: 60%;
    height: 60%;
}

/* ============================================
   Animatsiyalar — body.active class qo'shilganda
   ============================================ */

body.active .anim-scale { animation: scaleIn 0.7s ease-out; }
body.active .anim-fade-up { animation: fadeUp 0.6s ease-out 0.1s both; }
body.active .anim-fade-up-delay { animation: fadeUp 0.6s ease-out 0.2s both; }

body.active .feature-list li { animation: fadeRight 0.5s ease-out both; }
body.active .feature-list li:nth-child(1) { animation-delay: 0.2s; }
body.active .feature-list li:nth-child(2) { animation-delay: 0.3s; }
body.active .feature-list li:nth-child(3) { animation-delay: 0.4s; }
body.active .feature-list li:nth-child(4) { animation-delay: 0.5s; }
body.active .feature-list li:nth-child(5) { animation-delay: 0.6s; }

body.active .icon-box { animation: scaleIn 0.8s ease-out 0.3s both; }

body.active .slide-header-icon {
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
}

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

@keyframes fadeRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* ============================================
   Qayta ishlatiladigan karta grid (content slaydlar)
   ============================================ */

.card-grid {
    display: grid;
    gap: 1.5rem;
    flex: 1;
    align-content: center;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.info-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.7rem 1.5rem;
    background: linear-gradient(160deg, rgba(33, 150, 243, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(33, 150, 243, 0.28);
    border-top: 3px solid var(--color-accent);
    border-radius: 14px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.28),
        0 0 28px rgba(33, 150, 243, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
}

.info-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(33, 150, 243, 0.15);
    color: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(33, 150, 243, 0.25);
    flex-shrink: 0;
}
.info-card-icon svg { width: 30px; height: 30px; }

.info-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.25;
}

.info-card p {
    font-size: 1.28rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.74);
}

/* Kirish + to'lqin animatsiyasi */
body.active .info-card {
    animation: cardIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) both, cardWave 10s ease-in-out infinite;
}
body.active .info-card:nth-child(1) { animation-delay: 0.15s, 2.0s; }
body.active .info-card:nth-child(2) { animation-delay: 0.28s, 2.8s; }
body.active .info-card:nth-child(3) { animation-delay: 0.41s, 3.6s; }
body.active .info-card:nth-child(4) { animation-delay: 0.54s, 4.4s; }
body.active .info-card:nth-child(5) { animation-delay: 0.67s, 5.2s; }
body.active .info-card:nth-child(6) { animation-delay: 0.80s, 6.0s; }

body.active .info-card-icon {
    animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both, iconPulse 6.5s ease-in-out infinite;
}
body.active .info-card:nth-child(1) .info-card-icon { animation-delay: 0.45s, 2.5s; }
body.active .info-card:nth-child(2) .info-card-icon { animation-delay: 0.58s, 2.9s; }
body.active .info-card:nth-child(3) .info-card-icon { animation-delay: 0.71s, 3.3s; }
body.active .info-card:nth-child(4) .info-card-icon { animation-delay: 0.84s, 3.7s; }
body.active .info-card:nth-child(5) .info-card-icon { animation-delay: 0.97s, 4.1s; }
body.active .info-card:nth-child(6) .info-card-icon { animation-delay: 1.10s, 4.5s; }

@keyframes cardIn {
    0% { opacity: 0; transform: translateY(40px) scale(0.94); filter: blur(3px); }
    60% { filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes cardWave {
    0%, 70%, 100% {
        transform: translateY(0);
        border-color: rgba(33, 150, 243, 0.28);
        box-shadow: 0 8px 24px rgba(0,0,0,0.28), 0 0 28px rgba(33,150,243,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
    }
    35% {
        transform: translateY(-6px);
        border-color: rgba(33, 150, 243, 0.6);
        box-shadow: 0 16px 36px rgba(0,0,0,0.35), 0 0 45px rgba(33,150,243,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
    }
}

@keyframes iconPop {
    0% { opacity: 0; transform: scale(0) rotate(-25deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); background: rgba(33,150,243,0.15); box-shadow: inset 0 0 0 1px rgba(33,150,243,0.25); }
    50% { transform: scale(1.08); background: rgba(33,150,243,0.28); box-shadow: inset 0 0 0 1px rgba(33,150,243,0.45), 0 6px 18px rgba(33,150,243,0.35); }
}

@media (max-width: 1100px) {
    .info-card h3 { font-size: 1.4rem; }
    .info-card p { font-size: 1.1rem; }
    .card-grid { gap: 1.1rem; }
}
@media (max-width: 850px) {
    .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
}

/* Scrollbar */
.slide-body::-webkit-scrollbar { width: 6px; }
.slide-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 3px; }
.slide-body::-webkit-scrollbar-track { background: transparent; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1100px) {
    .slide-title { font-size: 2.1rem; }
    .slide-num-big { font-size: 6rem; }
    .icon-box { width: 240px; height: 240px; }
    .content-two-col { gap: 2rem; }
    .lead { font-size: 1.3rem; }
    .feature-list li { font-size: 1.1rem; }
}

@media (max-width: 850px) {
    .slide-body { padding: 4vh 5vw; }
    .content-two-col { grid-template-columns: 1fr; }
    .content-right { display: none; }
}
