:root{
    --bg: linear-gradient(180deg, #ffffff, rgb(243, 243, 243));
    --card: #fff7b9;
    --glass: rgba(255, 247, 185, 0.71);
    --muted: #0e0e0e;

}

* {
    box-sizing: border-box
}

#SenQubyr {
    text-decoration: none;
    color: #00c5ff;
    font-weight: bold;
    text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px  1px 0 #000,
            1px  1px 0 #000;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: #000000;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.container-fluid {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    margin-right: auto;
    margin-left: auto;
}
.container {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    margin-right: auto;
    margin-left: auto;
}
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px
}

.logo img {
    height: 32px;
    width: auto;
    vertical-align: middle;
}

.header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: var(--card);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02)
}

.icon-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.56);
    color: black;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 18px;
    padding: 8px 8px;
    cursor: pointer;
}

.icon-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.icon-btn.a {
    background: var(--glass);
    text-decoration: none;
    padding: 3px 8px;
    object-fit: contain;
}

.search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1vh;
}

.search input {
    outline: none;
    flex: 1;
    padding: 1vh 5vw;
    border-radius: 20vh;
    border: 1px solid rgb(0, 0, 0);
    background: transparent;
    color: inherit;
}
/* I finished header (Beknur) */

.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    padding: 20px;
}

.sidebar {
    border-right: 1px solid lightslategrey;
    padding-right: 10px;
    background: transparent;
    padding: 8px 4px
}

.sidebar img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.sidebar .section {
    margin-bottom: 10px;
}

.nav-item {
    text-decoration: none;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
}
.nav-item:hover {
    background: var(--glass);
    color: inherit
}
.nav-item.active{
    background: var(--glass);
    color: inherit;
}

.main {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.grid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.grid .tile {
    background: var(--card);
    padding: 8px;
    border-radius: 10px;
}

.tile .thumb {
    width: 100%;
    background: #222;
    border-radius: 6px;
    display: block;
    overflow: hidden;
}

.tile .thumb-lg {
    width: 100%;
    height: 150px;
    background: #222;
    border-radius: 6px;
    display: block;
    background: url('../images/img.png') center/cover no-repeat;
}

.tile .thumb-shorts {
    aspect-ratio: 9 / 16;
    background: url('../images/rec.jpg') center/cover no-repeat;
}

.tile .tmeta {
    padding: 8px 0;
}

.tile .ttitle {
    font-size: 15px;
    margin: 0;
}

.tile .tsub {
    color: var(--muted);
    font-size: 13px;
}

.section-title {
    font-weight: normal;
    font-size: 18px;
    padding: 8px 0;
    border-bottom: 0;
    grid-column: 1 / -1;
    margin: 0 10px;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
        padding: 12px;
    }

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

    .related {
        order: 2;
    }

    .sidebar {
        display: none;
    }
}

.flex {
    display: flex;
    align-items: center;
    gap: 8px;
}

a {
    text-decoration: none;
    color: inherit;
}


.footer {
    background: #12103c;
    color: #aaa;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    margin-top: 40px;
    border-top: 1px solid #222;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bcbcbc;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    font-size: 12px;
    color: #c3c3c3;
}

.blur-img {
    filter: blur(5px);
}
.grid-2 {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.grid-2 .tile {
    background: var(--card);
    padding: 8px;
    border-radius: 10px;
}

.featured-cards {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}
@media (min-width: 901px) {
    .featured-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) and (min-width: 601px) {
    .featured-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .featured-cards {
        grid-template-columns: 1fr;
    }
}
.featured-card {
    background: var(--card);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.featured-card .thumb {
    width: 100%;
    height: 140px;
    background: url('../images/aitu.png') center/cover no-repeat;
    border-radius: 8px;
    margin-bottom: 12px;
}


.profile-header {
    background: var(--card);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.profile-card {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-avatar {
    position: relative;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00c5ff;
}

.tab-navigation {
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #00c5ff;
    color: white;
    border-color: #00c5ff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #00c5ff;
}

.form-group input.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.subscription-form-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s;
}

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

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.popup-close:hover {
    background: #f0f0f0;
    color: #dc3545;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #00c5ff;
}

.form-group input.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* Accordion Styles */
.accordion-section {
    background: var(--card);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.accordion-item {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.accordion-item:hover {
    border-color: #00c5ff;
}

.accordion-header {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.accordion-header::after {
    content: '▼';
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px 15px;
    display: none;
}

/* Background Changer & DateTime */
.feature-box {
    background: var(--card);
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
}

.bg-changer-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.bg-changer-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.datetime-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 20px;
}

.datetime-display small {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

/* Rating Styles */
.rating-container { display: inline-flex; flex-direction: column; }
.rating { display: inline-flex; gap: 8px; cursor: pointer; }
.star { font-size: 24px; color: #ccc; transition: color 0.2s ease; }
.star.selected { color: #f5c518; }
 .rating-value { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* Gallery Styles */
.gallery { background: var(--card); border-radius: 12px; padding: 20px; margin: 20px 0; }
.gallery-main { display: block; }
.gallery-main img { width: 100%; max-height: 300px; object-fit: contain; border-radius: 8px; background: white; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs .thumb { width: 80px; height: 60px; object-fit: cover; border: 2px solid #ddd; border-radius: 6px; cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease; }
.gallery-thumbs .thumb:hover { transform: scale(1.05); border-color: #00c5ff; }
.gallery-thumbs .thumb.active { border-color: #00c5ff; box-shadow: 0 0 0 2px rgba(0,197,255,0.2); }
.gallery-time { margin-top: 16px; }
.gallery-time .datetime-display { margin-top: 12px; }
 
 /* Theme Switch: Dark Mode Overrides */
 body.theme-dark {
     --bg: linear-gradient(180deg, #0f0f14, #121212);
     --card: #1e1e2e;
     --glass: rgba(255, 255, 255, 0.08);
     --muted: #cfcfcf;
     color: #f0f0f0;
 }
 
 body.theme-dark .icon-btn {
     background: rgba(255, 255, 255, 0.12);
     color: #ffffff;
     border-color: #777;
 }
 
 body.theme-dark .search input {
     border-color: #777;
 }
 
 body.theme-dark .footer {
     background: #0d0c2a;
     color: #ddd;
     border-top-color: #333;
 }
 
 body.theme-dark .footer-links a {
     color: #ddd;
 }

/* Contact Form Styles */
.contact-section {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--muted);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--bg);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.contact-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.contact-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Products Section Styles */
.products-section {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filter-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg);
    border: 2px solid var(--muted);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.product-card.hidden {
    display: none;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.product-category {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Interactive Controls Styles */
.interactive-section {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.keyboard-demo,
.sound-controls,
.animation-controls {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--muted);
}

.key-display {
    background: var(--muted);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.key-display.active {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.sound-controls button {
    margin: 0.5rem 0.5rem 0.5rem 0;
}

/* Animation Box */
.animation-box {
    width: 100px;
    height: 100px;
    background: var(--primary);
    margin: 10px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.animation-box.animate {
    transform: rotate(360deg) scale(1.2);
    background: #ff6b6b;
}

/* Dark theme adjustments for new sections */
body.theme-dark .contact-feedback.success {
    background: #1e4d2b;
    color: #a3d9a5;
    border-color: #2d5a3d;
}

body.theme-dark .contact-feedback.error {
    background: #4d1e24;
    color: #d9a3a8;
    border-color: #5a2d32;
}

/* ===== jQuery Features Styles ===== */
/* Here is task 1, 2, 3: Search, Suggestions, Highlighting */
.jq-search-section {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}
.jq-search-bar { position: relative; max-width: 640px; }
.jq-search-bar input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--muted);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
}
.jq-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 2px solid var(--muted);
    border-top: none;
    border-radius: 0 0 8px 8px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    display: none;
    z-index: 10;
}
.jq-suggestions li {
    padding: 0.5rem 1rem;
    cursor: pointer;
}
.jq-suggestions li:hover { background: var(--muted); }
.jq-search-list { margin-top: 1rem; }
.jq-highlight { background: #ffee7a; padding: 0 2px; border-radius: 3px; }

/* Here is task 4: Scroll Progress Bar */
#scrollProgress { position: fixed; top: 0; left: 0; width: 100%; height: 6px; background: rgba(0,0,0,0.08); z-index: 9999; }
#scrollProgressBar { height: 6px; width: 0%; background: linear-gradient(90deg, #00c5ff, #7a5cff, #ff6b6b); transition: width 0.1s ease-out; }

/* Here is task 5: Animated Number Counter */
.jq-counter-section { background: var(--card); padding: 2rem; border-radius: 12px; margin: 2rem 0; }
.counter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.counter-box { background: var(--bg); border: 2px solid var(--muted); border-radius: 12px; padding: 1rem; text-align: center; }
.counter { font-size: 2rem; font-weight: 700; color: var(--primary); }
.counter-label { color: var(--text); opacity: 0.8; }

/* Here is task 7: Notification (Toast) */
.jq-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg);
    border: 2px solid var(--muted);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    z-index: 10000;
    opacity: 0.95;
}
.jq-toast.success { border-color: #28a745; }
.jq-toast.error { border-color: #dc3545; }
.jq-toast.info { border-color: #00c5ff; }

/* Here is task 8: Copy to Clipboard */
.jq-copy-section { background: var(--card); padding: 2rem; border-radius: 12px; margin: 2rem 0; }
.copy-container { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.copy-btn { border: 2px solid var(--muted); background: var(--bg); color: var(--text); padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; }
.copy-btn.copied { border-color: #28a745; color: #28a745; }
.copy-tooltip { opacity: 0; transform: translateY(-6px); transition: all 0.2s ease; color: var(--muted); }
.copy-tooltip.show { opacity: 1; transform: translateY(0); }

/* Here is task 6: Loading spinner on Submit */
.btn.loading { position: relative; pointer-events: none; opacity: 0.8; }
.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px; height: 16px;
    border: 2px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    left: 10px; top: 50%; transform: translateY(-50%);
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Here is task 9: Lazy Loaded Images */
.jq-lazy-section { background: var(--card); padding: 2rem; border-radius: 12px; margin: 2rem 0; }
.lazy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.lazy-load { width: 100%; height: auto; border-radius: 8px; border: 2px solid var(--muted); background: var(--glass); }