/* ========================================================
   RAVADY OS — Shared Site Stylesheet
   All pages share this file. Page-specific styles stay inline.
   ======================================================== */

/* Tokens */
:root {
    --cyan: #00f6ff;
    --green: #00ff8f;
    --void: #0d1018;
}

/* Base */
html { scroll-behavior: smooth; }

body {
    background-color: var(--void);
    font-family: 'Exo 2', sans-serif;
    color: #a9b7d1;
    overflow-x: hidden;
}

/* Animated background canvas */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ---- Typography ---- */
.gradient-text {
    background: linear-gradient(90deg, #00f6ff, #00ff8f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-shadow: 0 0 15px rgba(0, 246, 255, 0.3);
}

/* ---- Navigation ---- */
.nav-link {
    transition: color 0.2s;
}
.nav-link:hover {
    color: #00f6ff;
    text-shadow: 0 0 8px rgba(0, 246, 255, 0.7);
}
.nav-link.active {
    color: #00f6ff;
}

/* Logo */
.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-image {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 246, 255, 0.3));
}
.logo-image:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(0, 246, 255, 0.6));
}

/* ---- Buttons ---- */
.cta-button {
    background: linear-gradient(90deg, #00f6ff, #00ff8f);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 143, 0.5);
}

.btn-primary {
    background: linear-gradient(90deg, #00f6ff, #00ff8f);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 143, 0.5);
}

.btn-secondary {
    border: 1px solid rgba(0, 246, 255, 0.5);
    color: #00f6ff;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: rgba(0, 246, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 246, 255, 0.3);
}

/* ---- Cards ---- */
.feature-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.93) 0%, rgba(30, 41, 59, 0.97) 50%, rgba(51, 65, 85, 0.93) 100%);
    border: 1px solid rgba(0, 246, 255, 0.3);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 246, 255, 0.25), 0 0 60px rgba(0, 246, 255, 0.1);
    border-color: rgba(0, 246, 255, 0.5);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: #00f6ff;
    stroke-width: 1.5;
}

.glow-on-hover {
    transition: all 0.3s ease;
}
.glow-on-hover:hover {
    box-shadow: 0 0 30px rgba(0, 246, 255, 0.3);
    transform: translateY(-2px);
}

/* ---- Code blocks ---- */
.code-block,
.code-snippet {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(0, 246, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Roboto Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}
.code-block::before,
.code-snippet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f6ff, #00ff8f);
    opacity: 0.5;
}

/* Highlight.js overrides */
.hljs { background: transparent !important; color: #e2e8f0 !important; }
.hljs-keyword { color: #00f6ff !important; }
.hljs-string  { color: #00ff8f !important; }
.hljs-comment { color: #64748b !important; }
.hljs-number  { color: #fbbf24 !important; }

/* ---- Hero ---- */
.hero-section {
    border-bottom: 1px solid rgba(0, 246, 255, 0.2);
    position: relative;
    overflow: hidden;
}
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 246, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 143, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* Hero logo */
.hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(0, 246, 255, 0.4));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

/* ---- Sidebar (RelScript / rel pages) ---- */
.sidebar {
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid rgba(0, 246, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.sidebar-link {
    color: #a9b7d1;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sidebar-link:hover,
.sidebar-link.active {
    color: #00f6ff;
    background: rgba(0, 246, 255, 0.1);
    border-left-color: #00f6ff;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 246, 255, 0.2);
    transition: right 0.3s ease;
    z-index: 60;
    padding: 2rem;
}
.mobile-menu.open { right: 0; }

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 55;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---- Stats ---- */
.stats-counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00f6ff;
}

/* ---- Scroll Reveal ---- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Misc Badges ---- */
.integration-badge {
    background: linear-gradient(45deg, #00f6ff, #00ff8f);
    color: #0d1018;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ---- Animations ---- */
.typing-cursor { animation: blink 1s infinite; }
@keyframes blink {
    0%, 50%  { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.floating-element { animation: float 6s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-20px); }
}

.fade-in { animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes logoGlow {
    0%   { filter: drop-shadow(0 0 30px rgba(0, 246, 255, 0.4)); }
    100% { filter: drop-shadow(0 0 50px rgba(0, 255, 143, 0.6)); }
}

@keyframes mobileGlow {
    0%   { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes pulseGlow {
    0%   { opacity: 0.6; transform: scale(0.9); }
    100% { opacity: 1;   transform: scale(1.1); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.5rem; }
    .feature-card { margin-bottom: 1rem; }
    .mobile-only  { display: block; }
    .desktop-only { display: none; }

    /* Sidebar becomes slide-in panel on mobile */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 60;
        transition: left 0.3s ease;
        border-right: none;
        border-left: 1px solid rgba(0, 246, 255, 0.2);
    }
    .sidebar.open { left: 0; }
}

@media (min-width: 769px) {
    .mobile-only  { display: none; }
    .desktop-only { display: block; }
}
