/*
   =====================================================================
    QUIZ STUDENT — Web sayt dizayn tizimi
    Brend ranglari: Primary #6C5CE7, Success #00B894
   =====================================================================
*/

:root {
    --primary: #6C5CE7;
    --primary-dark: #5546D6;
    --primary-light: #A29BFE;
    --primary-soft: rgba(108, 92, 231, 0.08);
    --secondary: #00CEC9;
    --success: #00B894;
    --danger: #E17055;
    --dark: #2D3436;
    --gray: #7C85A3;
    --light: #F4F5FB;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(108, 92, 231, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typografiya --- */
.fw-extra-bold { font-weight: 800; }
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-padding { padding: 80px 0; }
.section-title {
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    font-size: calc(1.8rem + 1.2vw);
}

/* --- Modern Navbar --- */
.modern-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modern-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    transition: var(--transition);
}

.brand:hover .brand-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* CTA Button */
.nav-cta {
    display: flex;
    align-items: center;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    transition: var(--transition);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
    color: white;
}

.btn-download i {
    font-size: 1.1rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--primary-soft);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
    font-size: 1.3rem;
}

.mobile-toggle:hover {
    background: var(--primary);
    color: white;
}

/* Drawer Overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Navigation Drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: white;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.nav-drawer.active {
    transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.1rem;
}

.drawer-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
}

.drawer-close {
    width: 40px;
    height: 40px;
    background: var(--primary-soft);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.drawer-close:hover {
    background: var(--primary);
    color: white;
}

/* Drawer Body */
.drawer-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    transition: var(--transition);
}

.drawer-link i {
    width: 24px;
    text-align: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.drawer-link:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

/* Drawer Footer */
.drawer-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.drawer-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.drawer-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
    color: white;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .nav-menu,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}

/* --- Mobile Drawer (Offcanvas) --- */
.offcanvas {
    width: 300px !important;
    border-right: none;
    box-shadow: 20px 0 50px rgba(0,0,0,0.1);
}

.offcanvas-header {
    padding: 25px 20px;
}

.offcanvas-title {
    font-weight: 800;
    font-size: 1.3rem;
}

.offcanvas-body {
    padding: 10px 20px 30px;
    display: flex;
    flex-direction: column;
}

.drawer-link {
    padding: 14px 18px !important;
    border-radius: 15px;
    margin: 0 !important;
    font-size: 1rem;
    background: transparent;
    display: flex;
    align-items: center;
    color: var(--dark) !important;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.drawer-link:hover {
    background-color: var(--primary-soft) !important;
    color: var(--primary) !important;
    transform: translateX(5px);
}

.drawer-link i {
    width: 24px;
    text-align: center;
    color: var(--primary);
}

/* --- Hero Section --- */
.hero-section {
    padding: 120px 0 100px;
    background: #0a0c1a;
    color: var(--white);
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .hero-section { padding: 180px 0 140px; }
}

/* Animated Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: pulse 10s infinite alternate;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation: pulse 12s infinite alternate-reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #f12711;
    top: 20%;
    left: 30%;
    opacity: 0.1;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(30px, 20px); }
}

.bg-primary-soft {
    background: rgba(108, 92, 231, 0.1);
}

.text-primary-light {
    color: var(--primary-light) !important;
}

.hero-title {
    font-size: calc(2.5rem + 2vw);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 550px;
    line-height: 1.7;
}

/* Store Buttons */
.btn-store {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 28px;
    border-radius: 16px;
    text-decoration: none !important;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-google {
    background: var(--white);
    color: #000;
}

.btn-apk {
    background: #22c55e;
    color: var(--white);
}

.btn-store:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
}

.btn-store i { font-size: 2rem; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.2; }
.btn-store small { font-size: 0.75rem; opacity: 0.7; }
.btn-store strong { font-size: 1.15rem; font-weight: 700; }

/* Hero Benefits */
.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #facc15;
    font-size: 1.2rem;
}

.benefit-text { display: flex; flex-direction: column; }
.benefit-text strong { font-size: 1rem; color: #fff; }
.benefit-text span { font-size: 0.75rem; opacity: 0.6; }

/* iPhone Mockup */
.iphone-frame {
    width: 290px;
    height: 590px;
    background: #111;
    border-radius: 50px;
    padding: 11px;
    margin: 0 auto;
    position: relative;
    border: 3px solid #2d3436;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.8);
}

@media (min-width: 576px) {
    .iphone-frame { width: 310px; height: 630px; }
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #111;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.iphone-speaker { width: 40px; height: 4px; background: #222; border-radius: 4px; }
.iphone-camera { width: 8px; height: 8px; background: #222; border-radius: 50%; }

/* Side Buttons */
.iphone-btn-silent, .iphone-btn-up, .iphone-btn-down, .iphone-btn-power {
    position: absolute;
    background: #2d3436;
    border-radius: 2px;
}
.iphone-btn-silent { width: 3px; height: 25px; left: -3px; top: 100px; }
.iphone-btn-up { width: 3px; height: 50px; left: -3px; top: 150px; }
.iphone-btn-down { width: 3px; height: 50px; left: -3px; top: 210px; }
.iphone-btn-power { width: 3px; height: 80px; right: -3px; top: 170px; }

/* Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}
.hero-wave svg {
    position: relative;
    display: block;
    width: calc(134% + 1.3px);
    height: 80px;
}
.hero-wave .shape-fill { fill: #F4F5FB; }

/* Mockup Blobs */
.hero-mockup-container { position: relative; }
.mockup-blob-1, .mockup-blob-2 {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}
.mockup-blob-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    filter: blur(60px);
}
.mockup-blob-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    bottom: 10%;
    right: 10%;
    opacity: 0.15;
    filter: blur(50px);
}

.carousel-item img {
    height: 568px;
    object-fit: cover;
}

@media (min-width: 576px) {
    .carousel-item img { height: 608px; }
}

/* --- Feature Cards --- */
.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

@media (min-width: 768px) {
    .feature-card { padding: 40px; border-radius: 24px; }
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--primary-light);
}

.icon-box {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

/* --- Pricing Card --- */
.pricing-card {
    overflow: hidden;
    margin-top: 30px;
}

@media (min-width: 992px) {
    .pricing-card { margin-top: 0; }
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.premium-list li {
    margin-bottom: 15px;
    font-weight: 500;
}

.ms-n2 { margin-left: -15px !important; }

/* --- Footer --- */
.footer {
    background: var(--light);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.social-btn {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    background: var(--white);
    color: var(--primary);
    border-radius: 12px;
    font-size: 1.2rem;
    text-decoration: none !important;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.social-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--primary); padding-left: 5px; }

/* --- Helpers --- */
.bg-soft-primary { background: rgba(108, 92, 231, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 450px;
    height: 450px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
    border-radius: 50%;
    animation: blob-bounce 8s infinite alternate;
}

@keyframes blob-bounce {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-45%, -55%) scale(1.1); }
}

/* --- Custom Responsive Grid Adjustments --- */
@media (max-width: 575.98px) {
    .container { padding-left: 20px; padding-right: 20px; }
    .hero-feature strong { font-size: 1.1rem; }
    .hero-feature span { font-size: 0.75rem; }
    .d-flex.gap-5 { gap: 1.5rem !important; justify-content: center; }
}

@media (max-width: 767.98px) {
    .section-padding { padding: 60px 0; }
}
