body {
    background-color: #020010;
    color: #e2e8f0;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.bg-grid {
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, transparent, 5% white, 95% white, transparent);
    opacity: 0.06;
}

.glass-nav {
    background: rgba(2, 0, 16, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.spotlight-card {
    position: relative;
    background: rgba(15, 15, 25, 0.5);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

@media (hover: hover) {
    .spotlight-card:hover {
        transform: translateY(-4px);
        border-color: rgba(0, 240, 255, 0.3);
    }

    .spotlight-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
        z-index: 1;
    }

    .spotlight-group:hover .spotlight-card::before {
        opacity: 1;
    }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.text-glow {
    text-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

.architecture-card {
    position: relative;
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
}

.architecture-card > div:first-child {
    flex-grow: 0;
}

.architecture-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 240, 255, 0.15);
}

.code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre;
    width: 100%;
    flex-grow: 0;
}

.dependency-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #00F0FF;
    margin: 0.25rem;
}

.preset-card {
    position: relative;
    background: rgba(15, 15, 25, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    height: 100%; 
    display: flex;
    flex-direction: column;
}

.preset-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-4px);
    background: rgba(20, 20, 30, 0.6);
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem 1rem 1rem;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    padding: 10px 0;
}

.carousel-slide {
    flex-shrink: 0;
    width: 100%; 
    height: auto;
    display: flex;
}

@media (min-width: 768px) {
    .carousel-slide {
        width: calc((100% - 1.5rem) / 2); 
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        width: calc((100% - 3rem) / 3);
    }
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(2, 0, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #00F0FF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    outline: none;
}

.carousel-nav-btn:hover {
    background: #00F0FF;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    border-color: #00F0FF;
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }

@media (min-width: 1024px) {
    .carousel-prev { left: -1rem; }
    .carousel-next { right: -1rem; }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-bottom: 1rem;
    position: relative;
    z-index: 20;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.dot.active {
    background: #00F0FF;
    width: 2.5rem;
    border-radius: 9999px;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5); 
}

.preset-card h3, 
.preset-card p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.preset-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px; 
}

.preset-card p {
    flex-grow: 1;
}