.featured-cards-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 40%, #2d1b24 100%);
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    scroll-margin-top: 0;
}

.featured-cards-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(247, 147, 30, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.08) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    animation: backgroundPulse 8s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.cosmos-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffffff, #ff6b35, #f7931e);
    box-shadow: 0 0 6px currentColor;
}

.star.small {
    width: 1px;
    height: 1px;
    animation: starTwinkle 4s infinite alternate, starMove 20s linear infinite;
}

.star.medium {
    width: 2px;
    height: 2px;
    animation: starTwinkle 6s infinite alternate, starMove 25s linear infinite;
}

.star.large {
    width: 3px;
    height: 3px;
    animation: starTwinkleBright 8s infinite alternate, starMove 30s linear infinite;
    box-shadow: 0 0 10px #ff6b35, 0 0 20px #ff6b35;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes starTwinkleBright {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 10px #ff6b35, 0 0 20px #ff6b35;
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
        box-shadow: 0 0 20px #ff6b35, 0 0 40px #ff6b35, 0 0 60px #f7931e;
    }
}

@keyframes starMove {
    0% { transform: translateX(-10px); }
    100% { transform: translateX(calc(100vw + 10px)); }
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.nebula-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.6) 0%, rgba(247, 147, 30, 0.3) 50%, transparent 100%);
    top: 15%;
    right: 20%;
    animation: nebulaFloat 25s infinite ease-in-out alternate, nebulaPulse 8s infinite ease-in-out;
}

.nebula-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.5) 0%, rgba(75, 0, 130, 0.3) 50%, transparent 100%);
    bottom: 10%;
    left: 15%;
    animation: nebulaFloat 30s infinite ease-in-out alternate-reverse, nebulaPulse 12s infinite ease-in-out;
}

.nebula-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 255, 127, 0.4) 0%, rgba(32, 178, 170, 0.2) 50%, transparent 100%);
    top: 40%;
    left: 30%;
    animation: nebulaFloat 20s infinite ease-in-out alternate, nebulaPulse 10s infinite ease-in-out;
}

@keyframes nebulaFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
    100% { transform: translate(-20px, 40px) scale(0.9); }
}

@keyframes nebulaPulse {
    0%, 100% { opacity: 0.3; filter: blur(60px); }
    50% { opacity: 0.6; filter: blur(40px); }
}

.cosmic-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    z-index: 0;
    animation: cosmicDrift 15s infinite ease-in-out alternate;
}

@keyframes cosmicDrift {
    0% { transform: scale(1) rotate(0deg); opacity: 0.2; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.4; }
    100% { transform: scale(0.8) rotate(360deg); opacity: 0.1; }
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.5) 0%, transparent 70%);
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, transparent 70%);
    bottom: 10%;
    right: 15%;
    animation-delay: 5s;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 127, 0.3) 0%, transparent 70%);
    top: 50%;
    right: 30%;
    animation-delay: 10s;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, 1fr);
    gap: 1.2rem;
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    transform: scale(0.9);
    transform-origin: center;
}

.featured-card {
    position: relative;
    background: rgba(30, 33, 36, 0.85);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(88, 101, 242, 0.2);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    perspective: 1000px;
    transform-style: preserve-3d;
    height: 100%;
    max-height: none;
}

.featured-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(88, 101, 242, 0.6);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(88, 101, 242, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(88, 101, 242, 0.1) 0%, 
        rgba(114, 137, 218, 0.05) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-card:hover .card-background {
    opacity: 1;
}

.card-content {
    position: relative;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.05rem;
    position: relative;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #5865f2, #7289da);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.app-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.featured-card:hover .app-icon::before {
    left: 100%;
}

.app-icon i {
    color: white;
    font-size: 1.8rem;
    z-index: 1;
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-name {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    line-height: 1.2;
    word-wrap: break-word;
}

.app-category {
    color: #b9bbbe;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #43b581;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.status-text {
    color: #43b581;
    font-size: 0.6125rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-body {
    flex: 1;
    margin-bottom: 1.4rem;
}

.app-description {
    color: #dcddde;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.app-stats {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #b9bbbe;
    font-size: 0.9rem;
}

.stat i {
    color: #5865f2;
    font-size: 1rem;
    flex-shrink: 0;
}

.card-footer {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.card-btn {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.card-btn.primary {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
    flex: 1;
    min-width: 0;
}

.card-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.card-btn.primary:hover::before {
    left: 100%;
}

.card-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.card-btn.secondary {
    background: rgba(79, 84, 92, 0.5);
    color: #b9bbbe;
    width: 35px;
    height: 35px;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
}

.card-btn.secondary:hover {
    background: rgba(79, 84, 92, 0.8);
    color: white;
    transform: translateY(-2px);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.featured-card:hover .card-glow {
    opacity: 1;
    animation: cardGlowRotate 3s linear infinite;
}

@keyframes cardGlowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cursor-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #5865f2, #7289da);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 2s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-50px);
    }
}

[data-animate="title"], [data-animate="subtitle"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-animate="title"].revealed, [data-animate="subtitle"].revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-section.in-view {
    opacity: 1;
    transform: translateY(0);
}











@media (max-width: 768px) {
    .featured-cards-section {
        padding: 1rem;
        min-height: auto;
    }

    .cards-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
        transform: none;
        max-width: 400px;
        margin: 0 auto;
    }

    .featured-card {
        max-width: none;
        height: auto;
        min-height: 280px;
    }

    .featured-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .card-content {
        padding: 1.5rem;
    }

    .app-icon {
        width: 50px;
        height: 50px;
        margin-right: 1rem;
    }

    .app-icon i {
        font-size: 1.5rem;
    }

    .app-name {
        font-size: 1.3rem;
    }

    .app-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .card-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }

    .card-btn.secondary {
        width: 32px;
        height: 32px;
    }

    .nebula-1 {
        width: 200px;
        height: 200px;
        top: 10%;
        right: 10%;
    }

    .nebula-2 {
        width: 250px;
        height: 250px;
        bottom: 5%;
        left: 5%;
    }

    .nebula-3 {
        width: 150px;
        height: 150px;
        top: 30%;
        left: 20%;
    }

    .glow-1 {
        width: 300px;
        height: 300px;
    }

    .glow-2 {
        width: 350px;
        height: 350px;
    }

    .glow-3 {
        width: 250px;
        height: 250px;
    }

    .section-indicator {
        display: none;
    }

    .star.large {
        width: 2px;
        height: 2px;
    }

    .star.medium {
        width: 1.5px;
        height: 1.5px;
    }

    .featured-cards-section .star {
        animation: starTwinkle 4s infinite alternate, starMove 20s linear infinite;
    }

    .featured-cards-section .star.medium {
        animation: starTwinkle 6s infinite alternate, starMove 25s linear infinite;
    }

    .featured-cards-section .star.large {
        animation: starTwinkleBright 8s infinite alternate, starMove 30s linear infinite;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .featured-cards-section {
        padding: 1.5rem;
    }

    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 1rem;
        transform: none;
        max-width: 700px;
        margin: 0 auto;
    }

    .card-content {
        padding: 1.8rem;
    }

    .app-name {
        font-size: 1.4rem;
    }

    .app-description {
        font-size: 1.1rem;
    }

    .nebula-1 {
        width: 250px;
        height: 250px;
    }

    .nebula-2 {
        width: 300px;
        height: 300px;
    }

    .nebula-3 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .featured-cards-section {
        padding: 0.75rem;
    }

    .cards-container {
        max-width: 100%;
        gap: 0.8rem;
    }

    .card-content {
        padding: 1.2rem;
    }

    .app-icon {
        width: 45px;
        height: 45px;
        margin-right: 0.8rem;
    }

    .app-icon i {
        font-size: 1.3rem;
    }

    .app-name {
        font-size: 1.2rem;
    }

    .app-category {
        font-size: 0.8rem;
    }

    .app-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .card-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .card-btn.primary {
        width: 100%;
        justify-content: center;
    }

    .card-btn.secondary {
        width: 100%;
        height: auto;
        padding: 0.8rem;
        justify-content: center;
    }

    .status-text {
        font-size: 0.55rem;
    }

    .nebula {
        filter: blur(40px);
        opacity: 0.2;
    }

    .cosmic-glow {
        filter: blur(60px);
        opacity: 0.15;
    }
}

@media (prefers-reduced-motion: reduce) {
    .star,
    .nebula,
    .cosmic-glow,
    .featured-card,
    .card-glow {
        transition: none !important;
        animation: none !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    scroll-snap-type: y proximity;
}

.card-voice {
    border-color: rgba(34, 197, 94, 0.3);
}

.card-voice .app-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.card-voice .card-background {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
}

.card-voice:hover {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(34, 197, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-nitro {
    border-color: rgba(255, 215, 0, 0.3);
}

.card-nitro .app-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.card-nitro .card-background {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

.card-nitro:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-bots {
    border-color: rgba(236, 72, 153, 0.3);
}

.card-bots .app-icon {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.card-bots .card-background {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
}

.card-bots:hover {
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(236, 72, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-server {
    border-color: rgba(239, 68, 68, 0.3);
}

.card-server .app-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.card-server .card-background {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
}

.card-server:hover {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-friends {
    border-color: rgba(99, 102, 241, 0.3);
}

.card-friends .app-icon {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.card-friends .card-background {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.card-friends:hover {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-explorer {
    border-color: rgba(168, 85, 247, 0.3);
}

.card-explorer .app-icon {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.card-explorer .card-background {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
}

.card-explorer:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(168, 85, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.section-indicator {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    letter-spacing: 2px;
    z-index: 10;
}

.indicator-text {
    margin-bottom: 1rem;
}

.indicator-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6), transparent);
    margin: 0 auto;
}
    