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

html {
    scroll-behavior: smooth;
}

body {
    background: #090909;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    border-bottom: 1px solid #222;
}

.logo {
    color: white;
    font-size: 26px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span, footer span {
    color: #a78bfa;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #aaa;
    text-decoration: none;
}

nav a:hover {
    color: white;
}

.hero {
    text-align: center;
    padding: 100px 20px 70px;
}

.tagline {
    color: #a78bfa;
    letter-spacing: 3px;
    font-size: 12px;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.1;
}

.hero h1 span {
    color: #a78bfa;
}

.subtitle {
    color: #999;
    margin: 20px 0 30px;
}

.search-box {
    max-width: 550px;
    margin: auto;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    min-width: 0;
    padding: 16px;
    background: #181818;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
}

button {
    cursor: pointer;
}

.search-box button {
    background: #a78bfa;
    border: none;
    padding: 0 25px;
    border-radius: 8px;
    font-weight: bold;
}

.categories, .gallery-section {
    padding: 40px 8%;
}

.categories h2, .gallery-section h2 {
    margin-bottom: 25px;
}

.category-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.category-list button {
    background: #181818;
    border: 1px solid #333;
    color: white;
    padding: 11px 22px;
    border-radius: 25px;
}

.category-list button:hover {
    background: #a78bfa;
    color: black;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.wallpaper-card {
    background: #181818;
    border-radius: 12px;
    overflow: hidden;
}

.wallpaper-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.wallpaper-card:hover img {
    transform: scale(1.05);
}

.wallpaper-info {
    padding: 16px;
}

.wallpaper-info h3 {
    margin-bottom: 8px;
}

.wallpaper-info p {
    color: #999;
    font-size: 13px;
}

.download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 16px;
    background: #a78bfa;
    color: #090909;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 45px 15px;
    border-top: 1px solid #222;
    color: #888;
    margin-top: 50px;
}

footer h2 {
<div class="footer-links">
    <a href="about.html">About</a>
    <a href="contact.html">Contact</a>
    <a href="privacy.html">Privacy Policy</a>
</div>
    color: white;
    margin-bottom: 12px;
}

footer p {
    margin-top: 10px;
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        gap: 18px;
    }

    .hero {
        padding-top: 65px;
    }

    .search-box button {
        padding: 0 15px;
    }
}

/* Improved Gallery */

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

.wallpaper-card {
    position: relative;
    background: #151515;
    border: 1px solid #252525;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.wallpaper-card:hover {
    transform: translateY(-7px);
    border-color: #a78bfa;
}

.wallpaper-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.wallpaper-card:hover img {
    transform: scale(1.06);
}

.wallpaper-info {
    padding: 18px;
}

.wallpaper-info h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.wallpaper-info p {
    color: #aaa;
    font-size: 13px;
}

.download-btn {
    display: inline-block;
    transition: 0.3s;
}

.download-btn:hover {
    background: #c4b5fd;
    transform: translateY(-2px);
}

/* Preview Modal */

.preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    padding: 25px;
}

.preview-modal.active {
    display: flex;
}

.preview-content {
    position: relative;
    background: #181818;
    border: 1px solid #333;
    border-radius: 14px;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
}

.preview-content img {
    width: 100%;
    max-height: 65vh;
    object-fit: contain;
    display: block;
}

.preview-details {
    padding: 20px;
}

.preview-details p {
    color: #aaa;
    margin: 10px 0 20px;
}

.close-preview {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #a78bfa;
    color: #000;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .wallpaper-card img {
        height: 170px;
    }

    .wallpaper-info {
        padding: 12px;
    }

    .wallpaper-info h3 {
        font-size: 14px;
    }
}

/* Category filter improvements */

.category-btn {
    transition: all 0.25s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #a78bfa;
    color: #090909;
    border-color: #a78bfa;
}

/* Gallery header */

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
}

.gallery-header h2 {
    margin-bottom: 8px;
}

#wallpaperCount {
    color: #888;
    font-size: 13px;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-controls select {
    background: #181818;
    color: white;
    border: 1px solid #333;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.reset-btn {
    background: transparent;
    color: #a78bfa;
    border: 1px solid #a78bfa;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.reset-btn:hover {
    background: #a78bfa;
    color: #090909;
}

@media (max-width: 600px) {
    .gallery-header {
        align-items: flex-start;
    }

    .filter-controls {
        width: 100%;
    }

    .filter-controls select {
        flex: 1;
        min-width: 0;
    }
}

/* Information Pages */

.info-page {
    max-width: 850px;
    margin: auto;
    padding: 100px 25px;
    min-height: 65vh;
}

.info-page h1 {
    font-size: clamp(40px, 6vw, 65px);
    margin-bottom: 25px;
}

.info-page h1 span {
    color: #a78bfa;
}

.info-page h2 {
    margin-top: 40px;
    margin-bottom: 15px;
}

.info-page p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 20px;
}

.contact-note {
    font-size: 13px;
    color: #666 !important;
    margin-top: 20px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #a78bfa;
}
/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.footer-links a {
    color: #a78bfa;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

/* Navbar Links */
.navbar nav a {
    text-decoration: none;
}
.hero {
    background:
        linear-gradient(to bottom, rgba(9, 9, 9, 0.55), #090909 95%),
        url("images/space.jpg") center / cover no-repeat;
    padding: 130px 20px 90px;
}
