/* iCode Nexus — Silk High-End Editorial & Tech Aesthetic */
:root {
    --bg-obsidian: #03060E;
    --bg-surface: #070D1B;
    --nexus-blue: #3B82F6;
    --nexus-sky: #38BDF8;
    --nexus-indigo: #6366F1;
}

body {
    background-color: var(--bg-obsidian);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -15%, rgba(56, 189, 248, 0.16), transparent),
        radial-gradient(ellipse 60% 45% at 90% 10%, rgba(59, 130, 246, 0.12), transparent);
}

/* Subtle Architectural Grid Overlay */
.bg-architectural-grid {
    background-size: 64px 64px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, #000 55%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, #000 55%, transparent 100%);
}

/* Silk Liquid Gradient Text */
.gradient-text {
    background: linear-gradient(125deg, #FFFFFF 0%, #7DD3FC 40%, #38BDF8 70%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-accent {
    background: linear-gradient(120deg, #38BDF8 0%, #60A5FA 50%, #818CF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Premium Silk Glass Card with Top Rim Highlight & Interactive Cursor Glow */
.silk-card {
    position: relative;
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.72) 0%, rgba(7, 13, 27, 0.92) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.12),
        0 24px 48px -18px rgba(0, 0, 0, 0.65);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

.silk-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        520px circle at var(--mouse-x, 50%) var(--mouse-y, 0%),
        rgba(56, 189, 248, 0.12),
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.silk-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow:
        inset 0 1px 0 0 rgba(125, 211, 252, 0.28),
        0 30px 60px -15px rgba(59, 130, 246, 0.22);
}

.silk-card:hover::before {
    opacity: 1;
}

/* Silk Primary Button with Shimmer */
.btn-silk {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2563EB 0%, #38BDF8 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 12px 32px -6px rgba(56, 189, 248, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-silk:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 18px 40px -4px rgba(56, 189, 248, 0.6);
}

/* Infinite Smooth Marquee */
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 32s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Floating Ambient Motion */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: floatSlow 6s ease-in-out infinite;
}

/* Scroll Reveal Animation */
.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Clean Blog Article Typography */
.prose-nexus h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
}
.prose-nexus h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
}
.prose-nexus p {
    color: #cbd5e1;
    line-height: 1.85;
    margin-bottom: 1.35rem;
}
.prose-nexus ul, .prose-nexus ol {
    margin-left: 1.5rem;
    margin-bottom: 1.35rem;
    color: #cbd5e1;
}
.prose-nexus ul { list-style-type: disc; }
.prose-nexus ol { list-style-type: decimal; }
.prose-nexus li { margin-bottom: 0.55rem; }
.prose-nexus code {
    background: rgba(56, 189, 248, 0.12);
    color: #38BDF8;
    padding: 0.18rem 0.45rem;
    border-radius: 0.375rem;
    font-size: 0.875em;
}
