/* ===========================================
   PixelQuest v1.0
   Main Stylesheet
=========================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Reset */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    background:#0B0F19;

    color:#ffffff;

    line-height:1.6;

}

/* Links */

a{

    color:white;

    text-decoration:none;

}

/* Images */

img{

    max-width:100%;

    display:block;

}

/* Container */

.container{

    width:90%;

    max-width:1300px;

    margin:auto;

}

/* ===========================================
   Header
=========================================== */

header{

    position:sticky;

    top:0;

    z-index:999;

    background:#111827;

    border-bottom:1px solid rgba(255,255,255,.08);

}

header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:80px;

}

/* Logo */

.logo{

    font-size:30px;

    font-weight:700;

    color:#6C5CE7;

}

/* Navigation */

nav{

    display:flex;

    gap:35px;

}

nav a{

    color:#ddd;

    transition:.3s;

    font-weight:500;

}

nav a:hover{

    color:#00D4FF;

}

/* ===========================================
   Hero
=========================================== */

.hero{

    padding:120px 0;

    text-align:center;

    background:

    linear-gradient(

    rgba(11,15,25,.88),

    rgba(11,15,25,.92)

    ),

    url("images/full/spiderman/spiderman1.png");

    background-size:cover;

    background-position:center;

}

.hero h1{

    font-size:56px;

    max-width:900px;

    margin:auto;

    line-height:1.2;

}

.hero span{

    color:#00D4FF;

}

.hero p{

    color:#C8D0E7;

    font-size:20px;

    margin-top:25px;

}

/* Search */

.search-box{

    margin-top:40px;

    display:flex;

    justify-content:center;

    gap:10px;

}

.search-box input{

    width:550px;

    padding:18px;

    border:none;

    border-radius:12px;

    font-size:17px;

}

.search-box button{

    padding:18px 30px;

    border:none;

    background:#6C5CE7;

    color:white;

    border-radius:12px;

    cursor:pointer;

    font-size:16px;

    transition:.3s;

}

.search-box button:hover{

    background:#00D4FF;

}

/* ===========================================
   Sections
=========================================== */

section{

    padding:80px 0;

}

section h2{

    font-size:36px;

    margin-bottom:35px;

}

/* ===========================================
   Wallpaper Grid
=========================================== */

.wallpaper-grid{

    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(260px,1fr));

    gap:25px;

}

/* Demo Card */

.wallpaper-card{

    background:#1A2235;

    border-radius:18px;

    overflow:hidden;

    transition:.35s;

}

.wallpaper-card:hover{

    transform:translateY(-8px);

}

.wallpaper-image{

    height:220px;

    background:#2B3654;

}

.wallpaper-content{

    padding:20px;

}

.wallpaper-content h3{

    margin-bottom:10px;

}

.wallpaper-content p{

    color:#9CA7BF;

    font-size:14px;

}

/* ===========================================
   Advertisement
=========================================== */

.ad-box{

    height:120px;

    border:2px dashed #555;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:16px;

    color:#bbb;

}

/* ===========================================
   Footer
=========================================== */

footer{

    background:#111827;

    text-align:center;

    padding:35px;

    color:#9CA7BF;

}
/* ===========================
   TRENDING GAMES
=========================== */

.trending-games{
    padding:80px 0;
}

.games-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

}

.game-card{

    position:relative;

    overflow:hidden;

    border-radius:20px;

    cursor:pointer;

    transition:.35s;

}

.game-card img{

    width:100%;

    height:340px;

    object-fit:cover;

    transition:.4s;

}

.game-card:hover img{

    transform:scale(1.08);

}

.game-overlay{

    position:absolute;

    inset:0;

    display:flex;

    align-items:flex-end;

    padding:25px;

    background:linear-gradient(transparent,rgba(0,0,0,.8));

}

.game-overlay h3{

    font-size:24px;

    color:white;

}
/* ===========================
   WALLPAPER META
=========================== */

.wallpaper-meta{

display:flex;

justify-content:space-between;

margin-top:15px;

font-size:14px;

color:#9CA7BF;

}

.upload-date{

margin-top:10px;

font-size:13px;

color:#7C879B;

}

.wallpaper-card{

transition:.35s;

}

.wallpaper-card:hover{

transform:translateY(-10px);

box-shadow:0 18px 35px rgba(0,0,0,.45);

}

.wallpaper-content h3{

margin-bottom:8px;

}

.wallpaper-content p{

color:#BFC7D8;

}
/* ==========================
Wallpaper Page
========================== */

.wallpaper-page{

padding:80px 0;

}

.full-wallpaper{

width:100%;

max-width:900px;

display:block;

margin:auto;

border-radius:20px;

margin-bottom:30px;

}

#wallpaper-details{

text-align:center;

}

#wallpaper-details h1{

margin:25px 0 10px;

font-size:42px;

}

#wallpaper-details p{

color:#AEB8CE;

margin-bottom:20px;

}
/* ==========================================
   PIXELQUEST HERO FIX
========================================== */

.hero{
    position:relative;
    padding:85px 0;
    background:
        linear-gradient(
            90deg,
            rgba(8,12,22,.96) 0%,
            rgba(8,12,22,.90) 48%,
            rgba(8,12,22,.72) 100%
        ),
        url("images/full/spiderman/spiderman1.png");

    background-size:cover;
    background-position:center;
    overflow:hidden;
}

.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(
            circle at 75% 40%,
            rgba(108,92,231,.20),
            transparent 42%
        );
    pointer-events:none;
}

.hero-container{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);
    align-items:center;
    gap:65px;
}

.hero-text{
    text-align:left;
}

.hero-tag{
    display:inline-flex;
    align-items:center;
    padding:9px 16px;
    margin-bottom:22px;
    border:1px solid rgba(0,212,255,.28);
    border-radius:50px;
    background:rgba(0,212,255,.08);
    color:#00d4ff;
    font-size:14px;
    font-weight:600;
}

.hero h1{
    max-width:700px;
    margin:0;
    font-size:clamp(42px,5vw,68px);
    line-height:1.08;
    color:#fff;
}

.hero h1 span{
    display:inline;
    color:#00d4ff;
}

.hero-description{
    max-width:660px;
    margin:24px 0 0;
    color:#c6cede;
    font-size:17px;
    line-height:1.75;
}

.search-box{
    display:flex;
    width:100%;
    max-width:650px;
    margin-top:30px;
    gap:12px;
}

.search-box input{
    min-width:0;
    flex:1;
    padding:16px 18px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
    background:#fff;
    color:#111827;
    font-size:15px;
}

.search-box input:focus{
    border-color:#00d4ff;
    box-shadow:0 0 0 3px rgba(0,212,255,.12);
}

.search-box button{
    flex:none;
    padding:16px 25px;
    border:0;
    border-radius:12px;
    background:#6c5ce7;
    color:#fff;
    font-weight:600;
    cursor:pointer;
    transition:.25s ease;
}

.search-box button:hover{
    background:#00d4ff;
    color:#081018;
    transform:translateY(-2px);
}

.hero-popular{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    margin-top:20px;
}

.hero-popular strong{
    color:#aeb8ca;
    font-size:14px;
}

.hero-popular a{
    padding:7px 12px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:30px;
    background:rgba(255,255,255,.06);
    color:#fff;
    font-size:13px;
}

.hero-popular a:hover{
    border-color:#00d4ff;
    color:#00d4ff;
}

.hero-featured{
    width:100%;
    max-width:470px;
    justify-self:end;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.11);
    border-radius:22px;
    background:rgba(17,24,39,.94);
    box-shadow:0 25px 70px rgba(0,0,0,.45);
}

.hero-featured-image{
    position:relative;
    height:285px;
    overflow:hidden;
}

.hero-featured-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .4s ease;
}

.hero-featured:hover .hero-featured-image img{
    transform:scale(1.04);
}

.hero-resolution{
    position:absolute;
    top:15px;
    left:15px;
    padding:7px 12px;
    border-radius:30px;
    background:#6c5ce7;
    color:#fff;
    font-size:12px;
    font-weight:700;
}

.hero-featured-info{
    padding:22px;
}

.hero-featured-info > span{
    color:#00d4ff;
    font-size:13px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.8px;
}

.hero-featured-info h2{
    margin:7px 0 5px;
    font-size:23px;
}

.hero-featured-info p{
    margin:0;
    color:#9ca7bf;
    font-size:14px;
}

.hero-view-button{
    display:inline-flex;
    margin-top:17px;
    padding:11px 17px;
    border-radius:10px;
    background:#6c5ce7;
    color:#fff;
    font-size:14px;
    font-weight:600;
}

.hero-view-button:hover{
    background:#00d4ff;
    color:#081018;
}

/* ==========================================
   HERO RESPONSIVE
========================================== */

@media (max-width:950px){

    .hero{
        padding:70px 0;
    }

    .hero-container{
        grid-template-columns:1fr;
        gap:40px;
    }

    .hero-text{
        text-align:center;
    }

    .hero h1,
    .hero-description,
    .search-box{
        margin-left:auto;
        margin-right:auto;
    }

    .hero-popular{
        justify-content:center;
    }

    .hero-featured{
        justify-self:center;
    }

}

@media (max-width:600px){

    .hero{
        padding:55px 0;
    }

    .hero h1{
        font-size:38px;
    }

    .hero-description{
        font-size:15px;
    }

    .search-box{
        flex-direction:column;
    }

    .search-box button{
        width:100%;
    }

    .hero-featured-image{
        height:230px;
    }

}
/* ==========================================
   SMALL HOMEPAGE POLISH
========================================== */

.trending-games .section-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:28px;
}

.trending-games .section-title h2{
    margin:0;
}

.trending-games .view-all{
    color:#00d4ff;
    font-weight:600;
    font-size:14px;
}

.trending-games .view-all:hover{
    color:#6c5ce7;
}

.games-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
}

.game-card img{
    height:300px;
}

.hero h1{
    max-width:620px;
}

.featured{
    padding-top:95px;
}

@media (max-width:950px){

    .games-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .game-card img{
        height:280px;
    }

}

@media (max-width:600px){

    .trending-games .section-title{
        align-items:flex-start;
        flex-direction:column;
    }

    .games-grid{
        grid-template-columns:1fr;
    }

    .game-card img{
        height:260px;
    }

}/* ==========================================
   SMALL HOMEPAGE POLISH
========================================== */

.trending-games .section-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:28px;
}

.trending-games .section-title h2{
    margin:0;
}

.trending-games .view-all{
    color:#00d4ff;
    font-weight:600;
    font-size:14px;
}

.trending-games .view-all:hover{
    color:#6c5ce7;
}

.games-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
}

.game-card img{
    height:300px;
}

.hero h1{
    max-width:620px;
}

.featured{
    padding-top:95px;
}

@media (max-width:950px){

    .games-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .game-card img{
        height:280px;
    }

}

@media (max-width:600px){

    .trending-games .section-title{
        align-items:flex-start;
        flex-direction:column;
    }

    .games-grid{
        grid-template-columns:1fr;
    }

    .game-card img{
        height:260px;
    }

}
/* ==========================================
   SMALL HOMEPAGE POLISH
========================================== */

.trending-games .section-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:28px;
}

.trending-games .section-title h2{
    margin:0;
}

.trending-games .view-all{
    color:#00d4ff;
    font-weight:600;
    font-size:14px;
}

.trending-games .view-all:hover{
    color:#6c5ce7;
}

.games-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
}

.game-card img{
    height:300px;
}

.hero h1{
    max-width:620px;
}

.featured{
    padding-top:95px;
}

@media (max-width:950px){

    .games-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .game-card img{
        height:280px;
    }

}

@media (max-width:600px){

    .trending-games .section-title{
        align-items:flex-start;
        flex-direction:column;
    }

    .games-grid{
        grid-template-columns:1fr;
    }

    .game-card img{
        height:260px;
    }

}
/* ==========================================
   ABOUT SECTION
========================================== */

.about-section{
    padding:100px 0;
    background:#0f1624;
}

.about-grid{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    align-items:center;
    gap:70px;
}

.section-label{
    display:inline-flex;
    margin-bottom:16px;
    padding:7px 13px;
    border-radius:30px;
    background:rgba(0,212,255,.08);
    border:1px solid rgba(0,212,255,.25);
    color:#00d4ff;
    font-size:13px;
    font-weight:600;
}

.about-content h2{
    max-width:650px;
    margin-bottom:22px;
    font-size:42px;
    line-height:1.2;
}

.about-content p{
    max-width:700px;
    margin-bottom:16px;
    color:#aeb8ce;
    line-height:1.8;
}

.about-button{
    display:inline-flex;
    margin-top:18px;
    padding:13px 20px;
    border-radius:10px;
    background:#6c5ce7;
    color:#fff;
    font-weight:600;
}

.about-button:hover{
    background:#00d4ff;
    color:#081018;
}

.about-stats{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

.stat-card{
    padding:28px 20px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    background:#182132;
    text-align:center;
    transition:.3s ease;
}

.stat-card:hover{
    transform:translateY(-5px);
    border-color:#6c5ce7;
}

.stat-card strong{
    display:block;
    margin-bottom:5px;
    color:#00d4ff;
    font-size:27px;
}

.stat-card span{
    color:#b9c2d3;
    font-size:14px;
}

/* ==========================================
   FOOTER
========================================== */

footer{
    padding:75px 0 25px;
    background:#0b101a;
    border-top:1px solid rgba(255,255,255,.07);
}

.footer-grid{
    display:grid;
    grid-template-columns:1.5fr repeat(3,1fr);
    gap:50px;
}

.footer-logo{
    display:inline-flex;
    margin-bottom:15px;
    color:#6c5ce7;
    font-size:24px;
    font-weight:700;
}

.footer-brand p{
    max-width:400px;
    color:#8f9ab0;
    line-height:1.75;
}

.footer-column{
    display:flex;
    flex-direction:column;
    gap:11px;
}

.footer-column h3{
    margin-bottom:8px;
    color:#fff;
    font-size:16px;
}

.footer-column a{
    color:#8f9ab0;
    font-size:14px;
}

.footer-column a:hover{
    color:#00d4ff;
}

.footer-bottom{
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin-top:55px;
    padding-top:22px;
    border-top:1px solid rgba(255,255,255,.07);
    color:#738097;
    font-size:13px;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width:950px){

    .about-grid{
        grid-template-columns:1fr;
    }

    .footer-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media (max-width:600px){

    .about-section{
        padding:70px 0;
    }

    .about-content h2{
        font-size:32px;
    }

    .about-stats{
        grid-template-columns:1fr;
    }

    .footer-grid{
        grid-template-columns:1fr;
    }

    .footer-bottom{
        flex-direction:column;
        text-align:center;
    }

}
/* ==========================================
   PREMIUM WALLPAPER CARDS
========================================== */

.wallpaper-card{
    position:relative;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    background:#151e2e;
    box-shadow:0 12px 35px rgba(0,0,0,.18);
    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.wallpaper-card:hover{
    transform:translateY(-8px);
    border-color:rgba(108,92,231,.75);
    box-shadow:
        0 20px 45px rgba(0,0,0,.35),
        0 0 25px rgba(108,92,231,.14);
}

/* Wallpaper image */

.wallpaper-image{
    position:relative;
    display:block;
    height:220px;
    overflow:hidden;
    background:#0b101a;
}

.wallpaper-image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:
        transform .55s ease,
        filter .35s ease;
}

.wallpaper-card:hover .wallpaper-image img{
    transform:scale(1.08);
    filter:brightness(.82);
}

.image-gradient{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(7,11,18,.9) 0%,
        rgba(7,11,18,.18) 48%,
        transparent 75%
    );
    opacity:.7;
    transition:opacity .35s ease;
}

.wallpaper-card:hover .image-gradient{
    opacity:1;
}

/* Resolution badge */

.wallpaper-card .badge{
    position:absolute;

    top:12px;

    right:12px;

    background:#2b3145;

    color:#ffffff;

    font-size:11px;

    font-weight:700;

    padding:5px 10px;

    border-radius:50px;

    z-index:5;

    box-shadow:0 4px 12px rgba(0,0,0,.35);
}

/* View wallpaper hover text */

.view-wallpaper{
    position:absolute;
    left:50%;
    bottom:18px;
    z-index:2;
    padding:9px 14px;
    border:1px solid rgba(255,255,255,.3);
    border-radius:30px;
    background:rgba(8,13,23,.7);
    backdrop-filter:blur(8px);
    color:#fff;
    font-size:12px;
    font-weight:600;
    opacity:0;
    transform:translate(-50%,15px);
    transition:
        opacity .35s ease,
        transform .35s ease;
}

.wallpaper-card:hover .view-wallpaper{
    opacity:1;
    transform:translate(-50%,0);
}

/* Card content */

.wallpaper-content{
    padding:18px;
}

.wallpaper-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
}

.wallpaper-heading h3{
    margin:0 0 6px;
    color:#fff;
    font-size:17px;
    line-height:1.35;
}

.wallpaper-heading p{
    margin:0;
    color:#8f9bb1;
    font-size:13px;
}

.wallpaper-meta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin-top:17px;
}

.wallpaper-meta span{
    padding:6px 9px;
    border:1px solid rgba(255,255,255,.06);
    border-radius:8px;
    background:rgba(255,255,255,.035);
    color:#aeb8ca;
    font-size:11px;
}

/* Favourite button */

.fav-btn{
    flex-shrink:0;
    width:38px;
    height:38px;
    padding:0;
    border:1px solid rgba(255,255,255,.09);
    border-radius:10px;
    background:#1d283b;
    cursor:pointer;
    font-size:17px;
    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.fav-btn:hover{
    transform:scale(1.08);
    border-color:#ff6b81;
    background:rgba(255,107,129,.1);
}

/* Card buttons */

.card-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:18px;
}

.details-btn,
.download-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 12px;
    border-radius:10px;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease;
}

.details-btn{
    border:1px solid rgba(255,255,255,.12);
    background:#1c2638;
    color:#fff;
}

.details-btn:hover{
    transform:translateY(-2px);
    border-color:#00d4ff;
    background:#243149;
    color:#00d4ff;
}

.download-btn{
    border:1px solid transparent;
    background:linear-gradient(
        135deg,
        #6c5ce7,
        #875cff
    );
    color:#fff;
}

.download-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(108,92,231,.3);
}

/* ==========================================
   PREMIUM TRENDING GAME CARDS
========================================== */

.game-card{
    position:relative;
    display:block;
    min-height:210px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    border-radius:17px;
    background:#111827;
    box-shadow:0 12px 30px rgba(0,0,0,.2);
    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.game-card:hover{
    transform:translateY(-7px);
    border-color:rgba(0,212,255,.55);
    box-shadow:
        0 18px 38px rgba(0,0,0,.35),
        0 0 22px rgba(0,212,255,.1);
}

.game-card img{
    width:100%;
    height:100%;
    min-height:210px;
    display:block;
    object-fit:cover;
    transition:
        transform .5s ease,
        filter .35s ease;
}

.game-card:hover img{
    transform:scale(1.09);
    filter:brightness(.72);
}

.game-overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:22px;
    background:linear-gradient(
        to top,
        rgba(5,9,16,.95),
        rgba(5,9,16,.12) 70%
    );
}

.game-overlay h3{
    margin:0;
    color:#fff;
    font-size:20px;
}

.game-overlay span{
    max-height:0;
    margin-top:0;
    overflow:hidden;
    color:#00d4ff;
    font-size:12px;
    font-weight:600;
    opacity:0;
    transform:translateY(8px);
    transition:
        max-height .35s ease,
        margin-top .35s ease,
        opacity .35s ease,
        transform .35s ease;
}

.game-card:hover .game-overlay span{
    max-height:30px;
    margin-top:8px;
    opacity:1;
    transform:translateY(0);
}

/* ==========================================
   CARD RESPONSIVE DESIGN
========================================== */

@media (max-width:600px){

    .wallpaper-image{
        height:205px;
    }

    .wallpaper-card:hover{
        transform:translateY(-4px);
    }

    .view-wallpaper{
        display:none;
    }

    .card-buttons{
        grid-template-columns:1fr;
    }

    .details-btn,
    .download-btn{
        min-height:44px;
    }

    .game-card,
    .game-card img{
        min-height:190px;
    }

}
/* ===========================
   PREMIUM CARD IMPROVEMENTS
=========================== */

.wallpaper-card{
    overflow:hidden;
    border-radius:18px;
    background:#151d2d;
    border:1px solid rgba(255,255,255,.08);
    transition:.35s;
}

.wallpaper-card:hover{
    transform:translateY(-8px);
    border-color:#6c5ce7;
    box-shadow:0 20px 40px rgba(0,0,0,.35);
}

.wallpaper-image{
    position:relative;
    overflow:hidden;
}

.wallpaper-image img{
    width:100%;
    display:block;
    transition:transform .5s;
}

.wallpaper-card:hover img{
    transform:scale(1.08);
}

.image-gradient{

    position:absolute;

    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.65),
        transparent 70%
    );

    pointer-events:none;

}

.wallpaper-heading{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:15px;

}

.wallpaper-heading h3{

    margin-bottom:6px;

}

.wallpaper-meta{

    display:flex;

    flex-wrap:wrap;

    gap:8px;

    margin:18px 0;

}

.wallpaper-meta span{

    background:#202b42;

    padding:6px 10px;

    border-radius:8px;

    font-size:12px;

}

.fav-btn{

    width:42px;

    height:42px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    font-size:18px;

    background:#202b42;

    transition:.3s;

}

.fav-btn:hover{

    transform:scale(1.1);

}

.download-btn{

    width:100%;

}
/* ==========================================
   WALLPAPER DETAILS PAGE
========================================== */

.wallpaper-page{
    min-height:70vh;
    padding:130px 0 80px;
    background:#0f1624;
}

.wallpaper-detail-card{
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    border-radius:22px;
    background:#151e2e;
    box-shadow:0 24px 60px rgba(0,0,0,.28);
}

.detail-image-wrapper{
    position:relative;
    overflow:hidden;
    background:#080d15;
}

.detail-main-image{
    width:100%;
    max-height:760px;
    display:block;
    object-fit:contain;
}

.detail-resolution{
    position:absolute;
    top:18px;
    right:18px;
    padding:9px 14px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:30px;
    background:rgba(7,12,21,.76);
    backdrop-filter:blur(10px);
    color:#fff;
    font-size:12px;
    font-weight:700;
}

.detail-content{
    padding:36px;
}

.detail-category{
    display:inline-flex;
    margin:0 0 14px;
    padding:7px 12px;
    border:1px solid rgba(0,212,255,.25);
    border-radius:30px;
    background:rgba(0,212,255,.08);
    color:#00d4ff;
    font-size:12px;
    font-weight:700;
}

.detail-content h1{
    margin:0;
    color:#fff;
    font-size:40px;
    line-height:1.2;
}

.detail-game{
    margin:10px 0 0;
    color:#9ba7bb;
    font-size:16px;
}

.detail-info-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    margin-top:30px;
}

.detail-info-box{
    padding:18px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:14px;
    background:#1b2638;
}

.detail-info-box span{
    display:block;
    margin-bottom:7px;
    color:#8d99ad;
    font-size:12px;
}

.detail-info-box strong{
    color:#fff;
    font-size:15px;
}

.detail-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:30px;
}

.detail-download-btn,
.details-home-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:12px 20px;
    border-radius:11px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
}

.detail-download-btn{
    border:none;
    background:linear-gradient(
        135deg,
        #6c5ce7,
        #8b5cf6
    );
    color:#fff;
}

.detail-download-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(108,92,231,.3);
}

.details-home-btn{
    border:1px solid rgba(255,255,255,.12);
    background:#202b3e;
    color:#fff;
}

.details-home-btn:hover{
    border-color:#00d4ff;
    color:#00d4ff;
}

.related-section{
    padding:80px 0 100px;
    background:#0b111c;
}

.page-loading,
.no-related-wallpapers{
    color:#aab4c6;
    text-align:center;
}

.page-message{
    padding:100px 20px;
    text-align:center;
}

.page-message h1{
    margin-bottom:12px;
    color:#fff;
}

.page-message p{
    margin-bottom:24px;
    color:#9aa6b8;
}

.wallpaper-footer{
    margin-top:0;
}

@media (max-width:900px){

    .detail-info-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media (max-width:600px){

    .wallpaper-page{
        padding:105px 0 60px;
    }

    .detail-content{
        padding:24px 18px;
    }

    .detail-content h1{
        font-size:30px;
    }

    .detail-info-grid{
        grid-template-columns:1fr;
    }

    .detail-actions{
        flex-direction:column;
    }

    .detail-download-btn,
    .details-home-btn{
        width:100%;
    }

}
/* ==========================================
   GAME PAGE
========================================== */

.game-page-hero{
    padding:125px 0 70px;
    background:#0f1624;
}

.game-hero-card{
    position:relative;
    min-height:520px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px;
    background:#0b1018;
    box-shadow:0 25px 65px rgba(0,0,0,.32);
}

.game-hero-image{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.game-hero-overlay{
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            90deg,
            rgba(6,10,18,.97) 0%,
            rgba(6,10,18,.82) 42%,
            rgba(6,10,18,.28) 75%,
            rgba(6,10,18,.12) 100%
        ),
        linear-gradient(
            to top,
            rgba(6,10,18,.82),
            transparent 55%
        );
}

.game-hero-content{
    position:relative;
    z-index:2;
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:520px;
    max-width:680px;
    padding:55px;
}

.breadcrumbs{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin-bottom:25px;
    color:#8290a6;
    font-size:13px;
}

.breadcrumbs a{
    color:#a9b5c8;
}

.breadcrumbs a:hover{
    color:#00d4ff;
}

.breadcrumbs strong{
    color:#fff;
}

.game-hero-content h1{
    margin:5px 0 16px;
    color:#fff;
    font-size:58px;
    line-height:1.05;
}

.game-hero-description{
    max-width:590px;
    margin:0;
    color:#b4bfd1;
    font-size:16px;
    line-height:1.8;
}

.game-hero-stats{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:25px;
}

.game-hero-stats span{
    padding:9px 13px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:9px;
    background:rgba(255,255,255,.06);
    backdrop-filter:blur(8px);
    color:#d2daea;
    font-size:13px;
}

.game-hero-content .about-button{
    align-self:flex-start;
}

.game-wallpapers-section{
    padding:90px 0;
    background:#0b111c;
}

.other-games-section{
    padding:85px 0 105px;
    background:#0f1624;
}

/* Keep a single wallpaper card from stretching too wide */

.game-wallpapers-section .wallpaper-grid,
.related-section .wallpaper-grid{
    grid-template-columns:
        repeat(auto-fill, minmax(260px, 1fr));
}

.game-wallpapers-section .wallpaper-card,
.related-section .wallpaper-card{
    width:100%;
    max-width:430px;
}

/* ==========================================
   GAME PAGE RESPONSIVE
========================================== */

@media (max-width:800px){

    .game-hero-card{
        min-height:470px;
    }

    .game-hero-content{
        min-height:470px;
        padding:38px;
    }

    .game-hero-content h1{
        font-size:45px;
    }

    .game-hero-overlay{
        background:
            linear-gradient(
                to top,
                rgba(6,10,18,.98) 0%,
                rgba(6,10,18,.82) 65%,
                rgba(6,10,18,.38) 100%
            );
    }

}

@media (max-width:600px){

    .game-page-hero{
        padding:105px 0 55px;
    }

    .game-hero-card,
    .game-hero-content{
        min-height:510px;
    }

    .game-hero-content{
        justify-content:flex-end;
        padding:25px 20px;
    }

    .game-hero-content h1{
        font-size:36px;
    }

    .game-hero-description{
        font-size:14px;
        line-height:1.65;
    }

    .game-wallpapers-section,
    .other-games-section{
        padding:65px 0;
    }

}
/* ==========================================
   SEARCH RESULTS PAGE
========================================== */

.search-page-hero{
    padding:135px 0 80px;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(108,92,231,.14),
            transparent 32%
        ),
        #0f1624;
}

.search-page-hero h1{
    max-width:750px;
    margin:10px 0 14px;
    color:#fff;
    font-size:52px;
    line-height:1.1;
}

.search-page-description{
    margin:0;
    color:#aab5c7;
    font-size:16px;
}

.search-page-form{
    display:flex;
    max-width:780px;
    margin-top:30px;
    padding:7px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:14px;
    background:#161f30;
    box-shadow:0 18px 45px rgba(0,0,0,.22);
}

.search-page-form input{
    flex:1;
    min-width:0;
    padding:13px 15px;
    border:none;
    outline:none;
    background:transparent;
    color:#fff;
    font:inherit;
}

.search-page-form input::placeholder{
    color:#718097;
}

.search-page-form button{
    padding:12px 24px;
    border:none;
    border-radius:10px;
    background:linear-gradient(
        135deg,
        #6c5ce7,
        #875cff
    );
    color:#fff;
    font-weight:700;
    cursor:pointer;
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.search-page-form button:hover{
    transform:translateY(-2px);
    box-shadow:0 9px 22px rgba(108,92,231,.3);
}

.search-results-section{
    min-height:500px;
    padding:85px 0 105px;
    background:#0b111c;
}

.search-results-header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:25px;
    margin-bottom:35px;
}

.search-results-header h2{
    margin:8px 0 0;
    color:#fff;
    font-size:32px;
}

#search-result-count{
    margin:0;
    color:#8e9aaf;
    font-size:14px;
}

.search-message{
    grid-column:1 / -1;
    width:100%;
    padding:80px 25px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:18px;
    background:#151e2e;
    text-align:center;
}

.search-message-icon{
    margin-bottom:18px;
    font-size:42px;
}

.search-message h2{
    margin:0 0 12px;
    color:#fff;
}

.search-message p{
    max-width:600px;
    margin:0 auto 25px;
    color:#929eb1;
    line-height:1.7;
}


/* ==========================================
   SEARCH PAGE RESPONSIVE
========================================== */

@media (max-width:700px){

    .search-page-hero{
        padding:110px 0 65px;
    }

    .search-page-hero h1{
        font-size:38px;
    }

    .search-page-form{
        flex-direction:column;
    }

    .search-page-form button{
        width:100%;
        min-height:46px;
    }

    .search-results-header{
        align-items:flex-start;
        flex-direction:column;
    }

    .search-results-section{
        padding:65px 0 80px;
    }

}
/* ==========================================
   WALLPAPER CARD LINKS AND BUTTONS
========================================== */

.wallpaper-image{
    position:relative;
    display:block;
    overflow:hidden;
    text-decoration:none;
}

.wallpaper-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .35s ease;
}

.wallpaper-card:hover .wallpaper-image img{
    transform:scale(1.05);
}

.card-buttons{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:18px;
}

.details-btn,
.download-btn{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 14px;
    border-radius:9px;
    font-size:14px;
    font-weight:700;
    text-align:center;
    text-decoration:none;
    cursor:pointer;
    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.details-btn{
    border:1px solid rgba(255,255,255,.12);
    background:transparent;
    color:#ffffff;
}

.details-btn:hover{
    border-color:#7c66ff;
    background:rgba(124,102,255,.12);
    transform:translateY(-2px);
}

.download-btn{
    border:1px solid transparent;
    background:linear-gradient(
        135deg,
        #6c5ce7,
        #875cff
    );
    color:#ffffff;
}

.download-btn:hover{
    transform:translateY(-2px);
}

@media (max-width:420px){

    .card-buttons{
        flex-direction:column;
    }

    .details-btn,
    .download-btn{
        width:100%;
    }

}
/* ==========================================
   IMAGE LOADING BACKGROUND
========================================== */

.wallpaper-image,
.game-card{
    background:#151e2e;
}

.wallpaper-image img,
.game-card img{
    opacity:1;
    min-height:180px;
}
/* ==========================================
   TRENDING GAMES GRID
========================================== */

#games-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:20px;
}

.game-card{
    position:relative;
    display:block;
    min-height:220px;
    overflow:hidden;
    border-radius:16px;
    text-decoration:none;
}

.game-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
    transition:transform .35s ease;
}

.game-card:hover img{
    transform:scale(1.06);
}

.game-overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:20px;
    background:linear-gradient(
        to top,
        rgba(5,10,20,.95),
        rgba(5,10,20,.1)
    );
}

.game-overlay h3{
    margin:0 0 8px;
    color:#ffffff;
}

.game-overlay span{
    color:#00d9ff;
    font-size:14px;
    font-weight:700;
}

@media (max-width:1000px){

    #games-grid{
        grid-template-columns:repeat(2, 1fr);
    }

}

@media (max-width:600px){

    #games-grid{
        grid-template-columns:1fr;
    }

}
/* ==========================
   NEW Badge
========================== */

.new-badge{

    position:absolute;
    top:12px;
    left:12px;

    background:#00d26a;
    color:#ffffff;

    font-size:11px;
    font-weight:700;

    padding:5px 10px;

    border-radius:50px;

    z-index:5;

    box-shadow:0 4px 12px rgba(0,0,0,.35);

    letter-spacing:.5px;

}
/* ======================================
   SORT DROPDOWN
====================================== */

.section-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 28px;

}

#sort-select {

    appearance: none;

    -webkit-appearance: none;

    min-width: 210px;

    padding: 13px 44px 13px 18px;

    background:
        linear-gradient(
            135deg,
            #182238,
            #121a2b
        );

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 12px;

    font-family: var(--heading-font);

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;

}

#sort-select:hover {

    transform: translateY(-1px);

    border-color: #7c5cff;

    background:
        linear-gradient(
            135deg,
            #202d47,
            #162038
        );

}

#sort-select:focus {

    outline: none;

    border-color: #7c5cff;

    box-shadow:
        0 0 0 3px rgba(124, 92, 255, 0.16),
        0 8px 24px rgba(0, 0, 0, 0.22);

}


/* ======================================
   LOAD MORE BUTTON
====================================== */

.load-more {

    display: flex;

    justify-content: center;

    margin-top: 38px;

}

#loadMoreBtn {

    min-width: 240px;

    padding: 15px 30px;

    background:
        linear-gradient(
            135deg,
            #6f55ff,
            #8b5cf6
        );

    color: #ffffff;

    border: none;

    border-radius: 13px;

    font-family: var(--heading-font);

    font-size: 16px;

    font-weight: 700;

    letter-spacing: 0.2px;

    cursor: pointer;

    box-shadow:
        0 12px 28px rgba(111, 85, 255, 0.28);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;

}

#loadMoreBtn:hover {

    transform: translateY(-3px);

    filter: brightness(1.06);

    box-shadow:
        0 16px 34px rgba(111, 85, 255, 0.4);

}

#loadMoreBtn:active {

    transform: translateY(0);

}


/* ======================================
   MOBILE
====================================== */

@media (max-width: 700px) {

    .section-header {

        flex-direction: column;

        align-items: flex-start;

    }

    #sort-select {

        width: 100%;

    }

    #loadMoreBtn {

        width: 100%;

        max-width: 320px;

    }

}
/* Fix Chrome/Edge option colors */

#sort-select option {

    background: #182238;

    color: #ffffff;

    font-family: "Outfit", sans-serif;

}
/* ======================================
   SORT CONTROL WITH CUSTOM ARROW
====================================== */

.sort-control {

    display: flex;
    align-items: center;
    gap: 10px;

}

.sort-label {

    color: #94a3b8;

    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

}

.sort-select-wrapper {

    position: relative;

}

.sort-select-wrapper::after {

    content: "";

    position: absolute;

    top: 50%;
    right: 17px;

    width: 8px;
    height: 8px;

    border-right: 2px solid #a78bfa;
    border-bottom: 2px solid #a78bfa;

    transform:
        translateY(-70%)
        rotate(45deg);

    pointer-events: none;

    transition: transform 0.2s ease;

}

#sort-select {

    appearance: none;
    -webkit-appearance: none;

    min-width: 190px;

    padding:
        12px
        46px
        12px
        17px;

    background: #151f33;

    color: #ffffff;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 10px;

    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

}

#sort-select:hover {

    border-color: #7c5cff;

    background: #1a2740;

}

#sort-select:focus {

    outline: none;

    border-color: #7c5cff;

    box-shadow:
        0 0 0 3px
        rgba(124, 92, 255, 0.16);

}

#sort-select option {

    background: #182238;

    color: #ffffff;

}


/* Mobile */

@media (max-width: 700px) {

    .sort-control {

        width: 100%;

    }

    .sort-select-wrapper {

        flex: 1;

    }

    #sort-select {

        width: 100%;

    }

}
/* ======================================
   MOBILE RESPONSIVE FIXES
====================================== */

@media (max-width: 768px) {

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Header */

    header .container,
    .header-container,
    .navbar {
        width: 100%;
        max-width: 100%;
    }

    .logo {
        font-size: 26px;
        flex-shrink: 0;
    }

    nav {
        display: none;
    }

    /* Hero */

    .hero {
        min-height: auto;
        padding: 55px 0 45px;
        overflow: hidden;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        text-align: center;
    }

    .hero-badge {
        max-width: 100%;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;

        font-size: 12px;
        white-space: normal;
        text-align: center;
    }

    .hero h1 {
        width: 100%;
        max-width: 100%;

        font-size: clamp(32px, 9vw, 44px);
        line-height: 1.12;

        overflow-wrap: break-word;
    }

    .hero p {
        width: 100%;
        max-width: 100%;

        font-size: 16px;
        line-height: 1.7;

        padding: 0;
        margin-left: auto;
        margin-right: auto;
    }

    /* Search */

    .search-box,
    .hero-search,
    .search-container {
        width: 100%;
        max-width: 100%;
    }

    .search-box {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .search-box input,
    .search-box button {
        width: 100%;
        max-width: 100%;
    }

    /* Popular searches */

    .popular-searches,
    .popular-tags,
    .popular-games {
        width: 100%;
        max-width: 100%;

        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    /* Wallpaper grids */

    .wallpaper-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        gap: 20px;
    }

    .wallpaper-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .wallpaper-card img {
        width: 100%;
        max-width: 100%;
        object-fit: cover;
    }

    /* Section headings */

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .section-header h2 {
        font-size: 27px;
    }

    .sort-control {
        width: 100%;
    }

    .sort-select-wrapper {
        flex: 1;
    }

    #sort-select {
        width: 100%;
        min-width: 0;
    }
}
/* ======================================
   RESPONSIVE HEADER
====================================== */

.site-header {

    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(15, 23, 42, 0.96);

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

}

.header-container {

    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

}

.logo {

    color: #7c5cff;

    font-family: var(--heading-font);
    font-size: 28px;
    font-weight: 800;

    text-decoration: none;
    white-space: nowrap;

}

.desktop-nav {

    display: flex;
    align-items: center;
    gap: 30px;

}

.desktop-nav a {

    position: relative;

    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;

}

.desktop-nav a:hover {

    color: #a78bfa;
    transform: translateY(-1px);

}

.desktop-nav a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    border-radius: 20px;

    background: #7c5cff;

    transition: width 0.2s ease;

}

.desktop-nav a:hover::after {

    width: 100%;

}


/* Hamburger button */

.mobile-menu-button {

    display: none;

    width: 44px;
    height: 44px;

    padding: 10px;

    background: #172036;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 10px;

    cursor: pointer;

}

.mobile-menu-button span {

    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    border-radius: 10px;

    background: #ffffff;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;

}


/* Hamburger animation */

.mobile-menu-button.active span:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);

}

.mobile-menu-button.active span:nth-child(2) {

    opacity: 0;

}

.mobile-menu-button.active span:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);

}


/* Mobile menu */

.mobile-nav {

    display: none;

    max-height: 0;
    overflow: hidden;

    padding: 0 16px;

    background: #101827;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);

    opacity: 0;

    transform: translateY(-10px);

    transition:
        max-height 0.3s ease,
        opacity 0.25s ease,
        transform 0.25s ease,
        padding 0.3s ease;

}

.mobile-nav.active {

    max-height: 420px;

    padding-top: 12px;
    padding-bottom: 18px;

    opacity: 1;

    transform: translateY(0);

}

.mobile-nav a {

    display: flex;
    align-items: center;

    width: 100%;

    padding: 14px 12px;

    color: #ffffff;

    border-radius: 9px;

    font-family: var(--heading-font);
    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;

}

.mobile-nav a:hover {

    color: #a78bfa;

    background:
        rgba(124, 92, 255, 0.12);

    padding-left: 17px;

}


/* Mobile */

@media (max-width: 768px) {

    .header-container {

        min-height: 66px;

    }

    .logo {

        font-size: 25px;

    }

    .desktop-nav {

        display: none;

    }

    .mobile-menu-button {

        display: block;
        flex-shrink: 0;

    }

    .mobile-nav {

        display: block;

    }

}


/* Smaller phones */

@media (max-width: 380px) {

    .logo {

        font-size: 22px;

    }

    .mobile-menu-button {

        width: 42px;
        height: 42px;

    }

}
/* ======================================
   HERO STATISTICS
====================================== */

.hero-stats {

    width: 100%;
    max-width: 590px;

    margin: 34px auto 0;

    padding: 18px 24px;

    display: flex;
    align-items: center;
    justify-content: space-around;

    background: rgba(15, 23, 42, 0.62);

    border: 1px solid rgba(124, 92, 255, 0.25);

    border-radius: 16px;

    box-shadow:
        0 18px 40px
        rgba(0, 0, 0, 0.22);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

}

.hero-stat {

    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

}

.hero-stat-number {

    font-family: var(--heading-font);

    font-size: 26px;
    font-weight: 800;

    line-height: 1.1;

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            #7c5cff,
            #00d4ff
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

}

.hero-stat-label {

    margin-top: 5px;

    color: #a9b4cc;

    font-family: var(--body-font);
    font-size: 12px;
    font-weight: 500;

}

.hero-stat-divider {

    width: 1px;
    height: 38px;

    margin: 0 16px;

    background:
        rgba(255, 255, 255, 0.12);

}


/* Mobile */

@media (max-width: 576px) {

    .hero-stats {

        max-width: 100%;

        margin-top: 26px;

        padding: 16px 10px;

        border-radius: 14px;

    }

    .hero-stat-number {

        font-size: 21px;

    }

    .hero-stat-label {

        font-size: 10px;

    }

    .hero-stat-divider {

        height: 32px;

        margin: 0 7px;

    }

}


/* Very small phones */

@media (max-width: 340px) {

    .hero-stats {

        padding: 14px 6px;

    }

    .hero-stat-number {

        font-size: 18px;

    }

    .hero-stat-label {

        font-size: 9px;

    }

}
/* ======================================
   PREMIUM HERO EFFECTS
====================================== */

.hero {

    position: relative;
    overflow: hidden;

}


/* Purple background glow */

.hero::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -150px;
    left: -140px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(124, 92, 255, 0.23),
            transparent 70%
        );

    filter: blur(15px);

    pointer-events: none;

    animation:
        heroGlowOne
        7s ease-in-out
        infinite alternate;

}


/* Blue background glow */

.hero::after {

    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    right: -120px;
    bottom: -150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 212, 255, 0.16),
            transparent 70%
        );

    filter: blur(15px);

    pointer-events: none;

    animation:
        heroGlowTwo
        8s ease-in-out
        infinite alternate;

}


/* Keep hero content above glow */

.hero-container {

    position: relative;
    z-index: 2;

}


/* Animated HD & 2K text */

.hero h1 span {

    display: inline-block;

    background:
        linear-gradient(
            90deg,
            #7c5cff,
            #00d4ff,
            #a78bfa,
            #7c5cff
        );

    background-size: 300% 100%;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    animation:
        heroGradientText
        5s linear
        infinite;

}


/* Featured card floating effect */

.hero-featured {

    animation:
        heroCardFloat
        5s ease-in-out
        infinite;

}


/* Animations */

@keyframes heroGradientText {

    0% {

        background-position: 0% 50%;

    }

    100% {

        background-position: 300% 50%;

    }

}


@keyframes heroCardFloat {

    0%,
    100% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(-8px);

    }

}


@keyframes heroGlowOne {

    0% {

        transform:
            translate(0, 0)
            scale(1);

    }

    100% {

        transform:
            translate(45px, 30px)
            scale(1.12);

    }

}


@keyframes heroGlowTwo {

    0% {

        transform:
            translate(0, 0)
            scale(1);

    }

    100% {

        transform:
            translate(-40px, -25px)
            scale(1.1);

    }

}


/* Reduce animation for users who prefer it */

@media (prefers-reduced-motion: reduce) {

    .hero::before,
    .hero::after,
    .hero h1 span,
    .hero-featured {

        animation: none;

    }

}


/* Smaller effects on mobile */

@media (max-width: 576px) {

    .hero::before {

        width: 280px;
        height: 280px;

        top: -90px;
        left: -120px;

    }

    .hero::after {

        width: 250px;
        height: 250px;

        right: -110px;
        bottom: -80px;

    }

    .hero-featured {

        animation-duration: 6s;

    }

}
/* ======================================
   DYNAMIC HERO POPULAR LINKS
====================================== */

#hero-popular-games {

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

}

#hero-popular-games a {

    display: inline-flex;
    align-items: center;

    padding: 6px 11px;

    color: #cbd5e1;

    background:
        rgba(255, 255, 255, 0.05);

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 20px;

    font-size: 12px;
    font-weight: 500;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;

}

#hero-popular-games a:hover {

    color: #ffffff;

    background:
        rgba(124, 92, 255, 0.18);

    border-color:
        rgba(124, 92, 255, 0.45);

    transform:
        translateY(-1px);

}

@media (max-width: 576px) {

    .hero-popular {

        justify-content: center;

    }

    #hero-popular-games {

        justify-content: center;

    }

}
/* ======================================
   SCROLL REVEAL ANIMATIONS
====================================== */

.reveal-item {

    opacity: 0;

    transform: translateY(28px);

    transition:
        opacity 0.65s ease,
        transform 0.65s ease;

}

.reveal-item.reveal-visible {

    opacity: 1;

    transform: translateY(0);

}


/* Slight delays for cards */

.wallpaper-grid .reveal-item:nth-child(2),
.games-grid .reveal-item:nth-child(2) {

    transition-delay: 0.08s;

}

.wallpaper-grid .reveal-item:nth-child(3),
.games-grid .reveal-item:nth-child(3) {

    transition-delay: 0.16s;

}

.wallpaper-grid .reveal-item:nth-child(4),
.games-grid .reveal-item:nth-child(4) {

    transition-delay: 0.24s;

}


/* Avoid animation problems for users who disable motion */

@media (prefers-reduced-motion: reduce) {

    .reveal-item {

        opacity: 1;

        transform: none;

        transition: none;

    }

}
/* ======================================
   BACK TO TOP BUTTON
====================================== */

.back-to-top {

    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 900;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #7c5cff,
            #5b3df5
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    border-radius: 14px;

    box-shadow:
        0 12px 30px
        rgba(91, 61, 245, 0.35);

    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(18px)
        scale(0.9);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;

}

.back-to-top.visible {

    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);

}

.back-to-top:hover {

    transform:
        translateY(-3px)
        scale(1.04);

    box-shadow:
        0 16px 36px
        rgba(91, 61, 245, 0.5);

}

.back-to-top:active {

    transform:
        translateY(0)
        scale(0.96);

}

.back-to-top:focus-visible {

    outline:
        3px solid
        rgba(0, 212, 255, 0.45);

    outline-offset: 3px;

}


/* Mobile */

@media (max-width: 576px) {

    .back-to-top {

        right: 16px;
        bottom: 16px;

        width: 44px;
        height: 44px;

        border-radius: 12px;

        font-size: 21px;

    }

}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .back-to-top {

        transition: none;

    }

}
/* ======================================
   ABOUT PAGE
====================================== */

.about-page-hero {

    padding: 110px 0 70px;

    background:
        radial-gradient(
            circle at top left,
            rgba(124, 92, 255, 0.18),
            transparent 38%
        ),
        radial-gradient(
            circle at top right,
            rgba(0, 212, 255, 0.12),
            transparent 34%
        );

}

.about-page-hero-content {

    max-width: 760px;

    margin: 0 auto;

    text-align: center;

}

.about-page-hero h1 {

    margin: 18px 0;

    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;

    color: #ffffff;

}

.about-page-hero p {

    max-width: 700px;

    margin: 0 auto;

    color: #b6c1d8;

    font-size: 17px;
    line-height: 1.8;

}

.about-page-content {

    padding: 80px 0;

}

.about-page-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(320px, 0.8fr);

    gap: 50px;

    align-items: start;

}

.about-page-text h2,
.about-mission-card h2 {

    margin-bottom: 22px;

    color: #ffffff;

    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;

}

.about-page-text p,
.about-mission-card p {

    color: #aeb9d0;

    font-size: 16px;
    line-height: 1.85;

}

.about-page-text p + p {

    margin-top: 18px;

}

.about-page-features {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

}

.about-mission {

    padding: 20px 0 90px;

}

.about-mission-card {

    max-width: 900px;

    margin: 0 auto;

    padding: 44px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(23, 32, 54, 0.96),
            rgba(15, 23, 42, 0.96)
        );

    border:
        1px solid
        rgba(124, 92, 255, 0.22);

    border-radius: 22px;

    box-shadow:
        0 24px 55px
        rgba(0, 0, 0, 0.28);

}

.about-mission-card p {

    max-width: 700px;

    margin: 0 auto 28px;

}


/* Tablet */

@media (max-width: 900px) {

    .about-page-grid {

        grid-template-columns: 1fr;

    }

}


/* Mobile */

@media (max-width: 576px) {

    .about-page-hero {

        padding: 75px 0 48px;

    }

    .about-page-content {

        padding: 55px 0;

    }

    .about-page-features {

        grid-template-columns: 1fr;

    }

    .about-mission {

        padding-bottom: 65px;

    }

    .about-mission-card {

        padding: 28px 20px;

        border-radius: 17px;

    }

}
/* ======================================
   CATEGORY PAGE
====================================== */

.category-page-hero {

    padding: 76px 0 48px;

    background:
        linear-gradient(
            90deg,
            rgba(8, 13, 25, 0.94),
            rgba(8, 13, 25, 0.62)
        ),
        url("images/full/spiderman/spiderman1.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}
.category-page-hero-content {

    max-width: 850px;

}

.category-page-hero h1 {

    margin: 18px 0 8px;

    color: #ffffff;

    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;

}

.category-page-hero p {

    max-width: 780px;

    color: #b5bfd4;

    font-size: 16px;
    line-height: 1.75;

}


/* Category filter area */

.category-filter-section {

    padding: 8px 0 52px;

}

.category-filter-list {

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

}

.category-filter-button {

    min-height: 42px;

    padding: 9px 16px;

    color: #cbd5e1;

    background:
        rgba(22, 32, 53, 0.86);

    border:
        1px solid
        rgba(255, 255, 255, 0.11);

    border-radius: 999px;

    font-family: var(--heading-font);
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;

}

.category-filter-button:hover {

    color: #ffffff;

    background:
        rgba(124, 92, 255, 0.16);

    border-color:
        rgba(124, 92, 255, 0.48);

    transform: translateY(-1px);

}

.category-filter-button.active {

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #7c5cff,
            #5b3df5
        );

    border-color: transparent;

    box-shadow:
        0 9px 24px
        rgba(91, 61, 245, 0.28);

}


/* Category wallpaper section */

.category-wallpapers-section {

    padding: 28px 0 90px;

}

.category-wallpapers-section .section-header {

    margin-bottom: 32px;

}

.category-results-title {

    margin-top: 8px;

}

.category-result-count {

    display: inline-flex;
    align-items: center;

    min-height: 38px;

    padding: 8px 14px;

    color: #cbd5e1;

    background:
        rgba(22, 32, 53, 0.8);

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 10px;

    font-family: var(--heading-font);
    font-size: 13px;
    font-weight: 600;

}


/* Category wallpaper card details */

.category-wallpapers-section .wallpaper-card {

    overflow: hidden;

    background: #151f33;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 15px;

}

.category-wallpapers-section .wallpaper-image {

    position: relative;

    aspect-ratio: 16 / 9;

    overflow: hidden;

}

.category-wallpapers-section .wallpaper-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;

}

.category-wallpapers-section .wallpaper-card:hover
.wallpaper-image img {

    transform: scale(1.045);

}

.category-wallpapers-section .wallpaper-info {

    padding: 15px;

}

.category-wallpapers-section .wallpaper-title-row {

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;

}

.category-wallpapers-section .wallpaper-title-row h3 {

    margin: 0;

    color: #ffffff;

    font-size: 16px;
    line-height: 1.3;

}

.category-wallpapers-section .wallpaper-title-row p {

    margin-top: 5px;

    color: #9aa8c3;

    font-size: 12px;

}

.category-wallpapers-section .favorite-btn {

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: #1e2b45;

    border: none;
    border-radius: 9px;

    cursor: pointer;

}

.category-wallpapers-section .wallpaper-stats {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 7px;

    margin-top: 14px;

}

.category-wallpapers-section .wallpaper-stats span {

    min-width: 0;

    padding: 7px 5px;

    color: #aebbd3;

    background: #1c2942;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 7px;

    font-size: 10px;

    text-align: center;
    white-space: nowrap;

}

.category-wallpapers-section .wallpaper-actions {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;

    margin-top: 14px;

}

.category-wallpapers-section .view-button,
.category-wallpapers-section .download-button {

    min-height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 9px 10px;

    border-radius: 8px;

    font-family: var(--heading-font);
    font-size: 12px;
    font-weight: 600;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

}

.category-wallpapers-section .view-button {

    color: #ffffff;

    background: transparent;

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

}

.category-wallpapers-section .download-button {

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #7256ee,
            #8358ff
        );

    border: none;

}

.category-wallpapers-section .view-button:hover {

    background:
        rgba(255, 255, 255, 0.06);

}

.category-wallpapers-section .download-button:hover {

    filter: brightness(1.08);

}


/* Empty and error messages */

.category-empty-message,
.category-loading-error {

    max-width: 650px;

    margin: 45px auto 0;

    padding: 36px 24px;

    color: #ffffff;

    background: #151f33;

    border:
        1px solid
        rgba(124, 92, 255, 0.24);

    border-radius: 16px;

    text-align: center;

}

.category-empty-message p,
.category-loading-error p {

    margin: 10px 0 24px;

    color: #aeb9d0;

}


/* Tablet and mobile */

@media (max-width: 768px) {

    .category-page-hero {

        padding: 58px 0 36px;

    }

    .category-filter-section {

        padding-bottom: 38px;

    }

    .category-wallpapers-section {

        padding-top: 18px;

    }

    .category-wallpapers-section .section-header {

        align-items: flex-start;

    }

}


@media (max-width: 576px) {

    .category-page-hero {

        text-align: center;

    }

    .category-filter-list {

        justify-content: center;

    }

    .category-filter-button {

        min-height: 40px;

        padding: 8px 13px;

        font-size: 12px;

    }

    .category-result-count {

        width: 100%;

        justify-content: center;

    }

    .category-wallpapers-section
    .wallpaper-actions {

        grid-template-columns: 1fr;

    }

}
