/* ===== DARK / LIGHT THEME ===== */
[data-theme="dark"] {
    --bg: #0b0b10;
    --surface: #13131c;
    --card: #1a1a26;
    --accent: #c8ff47;
    --text: #eeeef0;
    --muted: #666677;
    --border: #252535;
    --topbar-bg: rgba(11,11,16,0.92);
    --label-bg: rgba(11,11,16,0.85);
    --counter-bg: rgba(11,11,16,0.75);
    --arrow-bg: rgba(11,11,16,0.80);
    --desc-color: #a0a0b5;
    --accent-btn-text: #0b0b10;
}
[data-theme="light"] {
    --bg: #f4f4ef;
    --surface: #ffffff;
    --card: #ebebE4;
    --accent: #4a8c00;
    --text: #111118;
    --muted: #888899;
    --border: #d8d8d0;
    --topbar-bg: rgba(244,244,239,0.95);
    --label-bg: rgba(255,255,255,0.92);
    --counter-bg: rgba(255,255,255,0.88);
    --arrow-bg: rgba(255,255,255,0.88);
    --desc-color: #555568;
    --accent-btn-text: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; transition: background 0.3s, color 0.3s; }
h1,h2,h3,h4,h5,h6 { font-family: 'Syne', sans-serif; }

/* TOPBAR */
.topbar {
    background: var(--topbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
    position: sticky; top: 0; z-index: 100;
    transition: background 0.3s, border-color 0.3s;
}
.back-btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    color: var(--muted); text-decoration: none;
    font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase;
    transition: color 0.2s;
}
.back-btn:hover { color: var(--accent); }
.brand { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--accent); }
.theme-toggle {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--muted); font-size: 0.95rem; transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* SLIDER */
.slider-wrapper {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.4rem 0 0;
    transition: background 0.3s;
}
.slider-container { max-width: 800px; margin: 0 auto; padding: 0 1rem; }
.preview-area { display: flex; align-items: flex-end; gap: 1rem; }

/* Desktop mockup */
.desktop-wrap {
    flex: 1; position: relative;
    border-radius: 8px; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 6px 28px rgba(0,0,0,0.22);
}
.browser-bar {
    background: var(--card); border-bottom: 1px solid var(--border);
    padding: 0.45rem 0.75rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.browser-dots { display: flex; gap: 5px; }
.browser-dots span { width: 8px; height: 8px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28ca41; }
.url-bar {
    flex: 1; background: var(--bg); border: 1px solid var(--border);
    border-radius: 4px; height: 18px; font-size: 0.62rem;
    color: var(--muted); display: flex; align-items: center; padding: 0 0.5rem;
}

/* Slides */
.slide { display: none; width: 100%; aspect-ratio: 16/9; position: relative; }
.slide.active { display: block; }

/* Slide rasm */
.slide-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top;
    display: block;
}

/* Fallback — rasm yuklanmasa */
.slide-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: clamp(2rem, 5vw, 4rem);
    background: var(--card); color: var(--muted);
}

.slide-label {
    position: absolute; bottom: 0.75rem; left: 0.75rem;
    background: var(--label-bg); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 6px;
    padding: 0.35rem 0.65rem; font-size: 0.68rem; color: var(--muted);
}
.slide-label strong { color: var(--text); display: block; font-size: 0.72rem; }
.slide-counter {
    position: absolute; top: 0.75rem; right: 0.75rem;
    background: var(--counter-bg); backdrop-filter: blur(6px);
    border: 1px solid var(--border); border-radius: 100px;
    padding: 0.22rem 0.65rem; font-size: 0.7rem;
    font-family: 'Syne', sans-serif; font-weight: 700;
}
.slide-counter .cur { color: var(--accent); }

/* Arrows */
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px;
    background: var(--arrow-bg); backdrop-filter: blur(6px);
    border: 1px solid var(--border); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; color: var(--text); cursor: pointer; z-index: 10;
    transition: all 0.2s; user-select: none;
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); color: #0b0b10; }
.arrow-prev { left: 0.55rem; }
.arrow-next { right: 0.55rem; }

/* Progress */
.slider-progress { height: 2px; background: var(--border); margin-top: 0.9rem; }
.slider-progress-fill { height: 100%; background: var(--accent); transition: width 0.4s ease; }

/* Thumbnails */
.thumbnails {
    display: flex; gap: 0.45rem;
    padding: 0.75rem 0;
    overflow-x: auto; scrollbar-width: none;
}
.thumbnails::-webkit-scrollbar { display: none; }
.thumb {
    flex-shrink: 0; width: 66px; height: 42px;
    border-radius: 5px; border: 2px solid var(--border);
    cursor: pointer; overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    background: var(--card);
    position: relative;
}
.thumb.active { border-color: var(--accent); transform: scale(1.06); }
.thumb:hover { border-color: var(--accent); }
.thumb-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top; display: block;
}
.thumb-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-family: 'Syne', sans-serif;
    font-weight: 700; color: var(--muted);
}

/* MOBILE MOCKUP */
.mobile-wrap { width: 96px; flex-shrink: 0; }
.phone-frame {
    border-radius: 14px; overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    background: var(--card);
}
.phone-notch {
    background: var(--card); height: 14px;
    display: flex; align-items: center; justify-content: center;
}
.phone-notch-pill { width: 26px; height: 4px; background: var(--border); border-radius: 2px; }
.mob-slide {
    display: none;
    aspect-ratio: 9/16;
    overflow: hidden;
    background: var(--card);
}
.mob-slide.active { display: block; }
.mob-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top; display: block;
}
.mob-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}
.phone-home {
    background: var(--card); height: 10px;
    display: flex; align-items: center; justify-content: center;
}
.phone-home-bar { width: 24px; height: 3px; background: var(--border); border-radius: 2px; }

/* CONTENT */
.content-section { padding: 2.5rem 0 5rem; }

.category-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(200,255,71,0.08); border: 1px solid rgba(200,255,71,0.2);
    border-radius: 100px; padding: 0.28rem 0.85rem;
    font-size: 0.7rem; color: var(--accent);
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.85rem;
}
[data-theme="light"] .category-badge { background: rgba(74,140,0,0.08); border-color: rgba(74,140,0,0.22); }

.project-title-block h1 {
    font-size: clamp(1.75rem, 4vw, 2.9rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
}
.project-subtitle { font-size: 0.92rem; color: var(--muted); margin-top: 0.6rem; }
.rating-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.85rem; flex-wrap: wrap; }
.stars-display { color: #ffb800; font-size: 0.92rem; }
.rating-val { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; }
.rating-count { color: var(--muted); font-size: 0.8rem; }
.verified-badge {
    background: rgba(200,255,71,0.08); color: var(--accent);
    border: 1px solid rgba(200,255,71,0.2); border-radius: 100px;
    padding: 0.18rem 0.65rem; font-size: 0.7rem;
}
[data-theme="light"] .verified-badge { background: rgba(74,140,0,0.08); border-color: rgba(74,140,0,0.2); }

/* Info grid */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-bottom: 1.4rem; }
.info-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 10px; padding: 0.95rem 1rem;
    transition: border-color 0.2s, background 0.3s;
}
.info-card:hover { border-color: rgba(200,255,71,0.25); }
[data-theme="light"] .info-card:hover { border-color: rgba(74,140,0,0.3); }
.info-icon { font-size: 1.1rem; margin-bottom: 0.35rem; }
.info-label { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.info-value { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.92rem; margin-top: 0.18rem; }
.info-sub { font-size: 0.7rem; color: var(--muted); margin-top: 0.1rem; }

.price-card {
    background: linear-gradient(135deg, rgba(200,255,71,0.06), rgba(200,255,71,0.02));
    border: 1px solid rgba(200,255,71,0.15);
    border-radius: 10px; padding: 0.95rem 1rem;
    grid-column: span 2;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.5rem;
    transition: background 0.3s, border-color 0.3s;
}
[data-theme="light"] .price-card {
    background: linear-gradient(135deg, rgba(74,140,0,0.06), rgba(74,140,0,0.02));
    border-color: rgba(74,140,0,0.18);
}
.price-main { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.75rem; color: var(--accent); line-height: 1; }
.price-note { font-size: 0.72rem; color: var(--muted); margin-top: 0.22rem; }

.section-heading {
    font-size: 0.68rem; color: var(--muted); text-transform: uppercase;
    letter-spacing: 0.12em; margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.section-heading::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.desc-section { margin-bottom: 1.7rem; }
.desc-text { font-size: 0.9rem; color: var(--desc-color); line-height: 1.8; }
.desc-text + .desc-text { margin-top: 0.85rem; }

.feature-item {
    display: flex; align-items: flex-start; gap: 0.65rem;
    padding: 0.65rem 0; border-bottom: 1px solid var(--border); font-size: 0.87rem;
}
.feature-item:last-child { border-bottom: none; }
.feature-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex-shrink: 0; margin-top: 0.42rem; }

.tech-list { display: flex; flex-wrap: wrap; gap: 0.42rem; }
.tech-tag {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 6px; padding: 0.32rem 0.75rem;
    font-size: 0.77rem; color: var(--muted); transition: all 0.2s;
}
.tech-tag:hover { border-color: var(--accent); color: var(--accent); }

.timeline { position: relative; padding-left: 1.4rem; border-left: 2px solid var(--border); }
.tl-item { margin-bottom: 1.2rem; position: relative; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot { position: absolute; left: -1.75rem; top: 0.22rem; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; }
.tl-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.86rem; }
.tl-desc { font-size: 0.8rem; color: var(--muted); margin-top: 0.18rem; }

.sidebar-sticky { position: sticky; top: 68px; }

.cta-group { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 0.5rem; }
.btn-cta-primary {
    display: flex; align-items: center; justify-content: center; gap: 0.55rem;
    background: var(--accent); color: var(--accent-btn-text);
    border: none; border-radius: 10px; padding: 0.85rem;
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.88rem;
    cursor: pointer; text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}
.btn-cta-primary:hover { opacity: 0.85; transform: translateY(-2px); color: var(--accent-btn-text); }
.btn-cta-outline {
    display: flex; align-items: center; justify-content: center; gap: 0.55rem;
    background: transparent; color: var(--text);
    border: 1px solid var(--border); border-radius: 10px; padding: 0.85rem;
    font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.86rem;
    cursor: pointer; text-decoration: none;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-cta-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

@media (max-width: 575px) {
    .info-grid { grid-template-columns: 1fr; }
    .price-card { grid-column: span 1; }
    .mobile-wrap { width: 78px; }
}