/* --- VIP Wallpaper Changer v20 Design System --- */

:root {
    --gallery-white: #ffffff;
    --gallery-soft: #f8f9fa;
    --gallery-accent: #6366f1;
    /* Deep Indigo */
    --gallery-vibrant: #ec4899;
    /* Pink */
    --gallery-cyan: #06b6d4;
    /* Cyan */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-white: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);

    --font-primary: 'Outfit', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body.prism-v12 {
    background: #ffffff;
    color: var(--text-main);
    font-family: var(--font-primary);
    overflow: hidden;
    /* Prevent scroll during preloader */
    cursor: default;
}

/* --- Premium Preloader --- */
#preloader-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    color: var(--gallery-accent);
    animation: loader-pulse 2s infinite ease-in-out;
}

.loader-text {
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: var(--text-main);
    opacity: 0.6;
}

.loader-bar-container {
    width: 200px;
    height: 2px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--gallery-accent), var(--gallery-vibrant));
    border-radius: 10px;
    animation: loader-fill 2.5s forwards cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes loader-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes loader-fill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

#preloader-system.loaded {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* --- Animated Mesh Gradient Background --- */
.mesh-gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(at 0% 0%, #ffedd5 0px, transparent 50%),
        radial-gradient(at 50% 0%, #e0e7ff 0px, transparent 50%),
        radial-gradient(at 100% 0%, #fce7f3 0px, transparent 50%),
        radial-gradient(at 0% 100%, #dcfce7 0px, transparent 50%),
        radial-gradient(at 100% 100%, #ede9fe 0px, transparent 50%);
    opacity: 0.6;
    animation: mesh-drift 20s infinite alternate ease-in-out;
}

@keyframes mesh-drift {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* --- 3D World Canvas --- */
#prism-world-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

/* --- Premium Navbar --- */
.aura-nav-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-brand-gallery {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--gallery-accent);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.nav-links-gallery {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links-gallery a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
    opacity: 0.7;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.nav-links-gallery a:hover {
    opacity: 1;
    color: var(--gallery-accent);
}

.nav-btn-download {
    padding: 10px 25px !important;
    background: linear-gradient(135deg, var(--gallery-accent), var(--gallery-vibrant));
    color: #fff !important;
    border-radius: 50px;
    font-weight: 700 !important;
    opacity: 1 !important;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    margin-left: 10px;
    line-height: 1;
    height: fit-content;
}

/* --- Content Overlays & Master Sections --- */
.fixed-overlay-system {
    position: relative;
    z-index: 10;
}

.prism-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.gallery-content-cluster {
    text-align: center;
    max-width: 900px;
    padding: 40px;
}

.supra-title {
    font-size: 0.85rem;
    letter-spacing: 4px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--gallery-vibrant);
    text-transform: uppercase;
}

.gallery-hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--gallery-accent), var(--gallery-vibrant));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-hero-desc {
    font-size: 1.3rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}

/* --- Section Master Design --- */
.section-container {
    padding: 80px 5%;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

.section-head {
    margin-bottom: 60px;
}

.section-title-premium {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--gallery-accent), var(--gallery-vibrant));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- How It Works Steps --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 50px 30px;
    border-radius: 40px;
    transition: 0.5s;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--gallery-accent);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gallery-accent), var(--gallery-vibrant));
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin: 0 auto 25px;
}

/* --- Features Component --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.feature-pill {
    background: #fff;
    padding: 35px;
    border-radius: 35px;
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: 0.4s;
}

.feature-pill-icon {
    width: 70px;
    height: 70px;
    background: var(--gallery-soft);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gallery-accent);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* --- Visual Assets --- */
.mockup-display {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 40px;
    margin-top: 60px;
    border: 6px solid #f1f5f9;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
}

.mockup-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-proof-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.proof-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gallery-accent);
}

.proof-label {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.4;
    letter-spacing: 2px;
}

/* --- FAQ System --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 15px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}

.faq-q {
    padding: 25px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.faq-a {
    padding: 0 25px 25px;
    color: var(--text-muted);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-a {
    display: block;
}

/* --- Footer Refined --- */
.aura-footer {
    background: #f1f5f9;
    padding: 100px 5%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 20;
    /* Ensure on top */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
}

.footer-brand h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 25px;
    color: var(--gallery-accent);
    letter-spacing: -1px;
}

.footer-brand p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 400px;
}

.footer-links h3 {
    font-size: 0.9rem;
    margin-bottom: 30px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    color: var(--text-main);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
    opacity: 0.7;
    transition: 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gallery-accent);
    transform: translateX(5px);
    /* Slide effect */
}

/* --- Scroll Dot System --- */
.scroll-dots-gallery {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot-gallery {
    width: 12px;
    height: 12px;
    border: 2px solid var(--gallery-accent);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.4s;
}

.nav-dot-gallery.active {
    background: var(--gallery-accent);
    transform: scale(1.4);
}

/* --- Clean Buttons --- */
.btn-gallery-primary {
    display: inline-block;
    padding: 25px 60px;
    /* Larger touch area */
    background: linear-gradient(135deg, var(--gallery-accent), var(--gallery-vibrant));
    color: #fff !important;
    /* Force white text */
    text-decoration: none;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 2px;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-gallery-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, var(--gallery-vibrant), var(--gallery-accent));
    /* Swap gradient on hover */
}

/* --- v21 Polished Features --- */

/* Infinite Marquee */
.marquee-container {
    background: #111;
    color: #fff;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    z-index: 20;
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-content {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 5px;
    animation: marquee-scroll 20s linear infinite;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gallery-accent);
    top: 10%;
    left: 10%;
    animation: float-1 8s infinite alternate ease-in-out;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--gallery-vibrant);
    bottom: 20%;
    right: 10%;
    animation: float-2 10s infinite alternate ease-in-out;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--gallery-cyan);
    top: 40%;
    left: 50%;
    animation: float-3 12s infinite alternate ease-in-out;
}

@keyframes float-1 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

@keyframes float-2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-40px, -20px);
    }
}

@keyframes float-3 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(20px, 40px);
    }
}

/* 3D Step Effect */
.step-card {
    /* Existing styles included */
    transform-style: preserve-3d;
    perspective: 1000px;
}

.step-card:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

/* Active Nav Link */
.nav-links-gallery a.active-link {
    color: var(--gallery-accent);
    opacity: 1;
}

.nav-links-gallery a.active-link::after {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    background: var(--gallery-accent);
    border-radius: 50%;
    margin-left: 8px;
}

@media (max-width: 768px) {

    .steps-grid,
    .features-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-links-gallery {
        display: none;
    }
}