/* The Command Center Theme — white-hull spaceship, plasma cyan */

.orligon-page {
    --accent: #18b7ff;
    --accent-hover: #55d3ff;
    --accent-glow: rgba(24, 183, 255, 0.35);
    --bg-primary: #0b0e14;
    --bg-secondary: #0e1219;
    --bg-tertiary: #131824;
    --bg-card: #0e1219;
    --border: #26303f;
    --border-light: #344253;
    --gradient-primary: linear-gradient(135deg, #18b7ff 0%, #0b7fd6 100%);
}

/* Frost grid background */
.terminal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(24, 183, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 183, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    animation: frostPulse 5s ease-in-out infinite;
}

@keyframes frostPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Hero Styling */
.orligon-hero {
    background:
        radial-gradient(ellipse at center 40%, rgba(24, 183, 255, 0.10) 0%, transparent 60%),
        #0b0e14;
}

.orligon-hero .hero-overlay {
    background: linear-gradient(to bottom,
        rgba(11, 14, 20, 0.2) 0%,
        rgba(11, 14, 20, 0.8) 100%);
    z-index: 1;
}

.orligon-hero .container {
    z-index: 2;
}

.orligon-hero-logo {
    width: 130px;
    height: 130px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    filter: drop-shadow(0 0 30px rgba(136, 192, 208, 0.5));
    animation: orbFloat 4s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.orligon-title {
    font-family: 'Fira Code', monospace !important;
    font-size: clamp(2.5rem, 8vw, 4.5rem) !important;
    letter-spacing: 0.25em;
    color: #88c0d0;
    text-shadow:
        0 0 10px rgba(136, 192, 208, 0.8),
        0 0 20px rgba(136, 192, 208, 0.5),
        0 0 40px rgba(136, 192, 208, 0.3);
    background: none !important;
    -webkit-text-fill-color: #88c0d0 !important;
}

/* Terminal cursor after the title */
.orligon-title::after {
    content: '_';
    animation: cursorBlink 1.2s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Override tech stack tags */
.orligon-page .project-tech-stack span {
    background: rgba(136, 192, 208, 0.08);
    border: 1px solid rgba(136, 192, 208, 0.3);
    color: #88c0d0;
    font-family: 'Fira Code', monospace;
}

/* Override section titles */
.orligon-page .section-title {
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.05em;
}

.orligon-page .section-title::after {
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(136, 192, 208, 0.5);
}

/* Architecture cards */
.orligon-page .arch-card {
    background: rgba(14, 18, 25, 0.8);
    border: 1px solid rgba(136, 192, 208, 0.2);
    backdrop-filter: blur(10px);
}

.orligon-page .arch-card:hover {
    border-color: #88c0d0;
    box-shadow:
        0 0 20px rgba(136, 192, 208, 0.15),
        inset 0 0 20px rgba(24, 183, 255, 0.05);
}

.orligon-page .arch-card h3 {
    color: #88c0d0;
    font-family: 'Fira Code', monospace;
}

/* Code preview - terminal window */
.orligon-page .code-preview {
    border: 1px solid rgba(136, 192, 208, 0.3);
    background: rgba(8, 10, 15, 0.95);
    box-shadow:
        0 0 20px rgba(136, 192, 208, 0.1),
        inset 0 0 30px rgba(136, 192, 208, 0.02);
}

.orligon-page .code-preview code {
    color: #88c0d0;
    text-shadow: 0 0 4px rgba(136, 192, 208, 0.4);
}

/* Badges */
.orligon-page .badge {
    background: rgba(136, 192, 208, 0.08);
    border: 1px solid rgba(136, 192, 208, 0.3);
    color: #88c0d0;
    font-family: 'Fira Code', monospace;
}

/* Story stats */
.orligon-page .story-stat-number {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(136, 192, 208, 0.4));
    font-family: 'Fira Code', monospace;
}

/* Gallery Carousel */
.gallery-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.carousel-container {
    position: relative;
    width: 100%;
    flex: 1;
    min-width: 0;
}

.carousel-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.carousel-slide.active {
    display: flex;
}

.slide-img {
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(136, 192, 208, 0.3);
    background: #0e1219;
    box-shadow: 0 0 30px rgba(136, 192, 208, 0.08);
}

.slide-caption {
    font-family: 'Fira Code', monospace;
    color: #88c0d0;
    font-size: 1rem;
    margin-top: 16px;
    text-align: center;
}

.carousel-btn {
    background: var(--bg-card);
    border: 1px solid rgba(136, 192, 208, 0.3);
    color: #88c0d0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    border-color: #88c0d0;
    background: rgba(136, 192, 208, 0.1);
    box-shadow: 0 0 15px rgba(136, 192, 208, 0.2);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #88c0d0;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background: #88c0d0;
    box-shadow: 0 0 10px rgba(136, 192, 208, 0.5);
}

@media (max-width: 768px) {
    .gallery-carousel {
        gap: 10px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* Alt background */
.orligon-page .alt-bg {
    background: #0e1219;
}

/* Footer */
.orligon-page .back-link:hover {
    color: #88c0d0;
    text-shadow: 0 0 10px rgba(136, 192, 208, 0.5);
}

/* Scroll hint */
.orligon-page .scroll-hint span {
    color: rgba(136, 192, 208, 0.6);
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.2em;
}

.orligon-page .scroll-arrow {
    border-color: rgba(136, 192, 208, 0.6);
}

@media (max-width: 768px) {
    .orligon-title {
        letter-spacing: 0.1em;
    }

    .orligon-hero-logo {
        width: 100px;
        height: 100px;
    }
}


/* ── Command Center rebrand additions ──────────────────────────────────── */
.orligon-page .project-hero-title,
.orligon-page .section-title,
.orligon-page .nav-logo {
    font-family: 'Orbitron', 'Inter', sans-serif;
    letter-spacing: 2px;
}
.orligon-page .project-hero-subtitle,
.orligon-page .project-label,
.orligon-page .slide-caption {
    font-family: 'Rajdhani', 'Inter', sans-serif;
}
/* The hero is transparent — the page-wide fixed vista shows through
   (one continuous backdrop; no separate image to scroll past). */
.orligon-hero {
    background: transparent !important;
}
/* THE red button as the see-project CTA — three generated states. */
.cc-see-btn {
    display: block;
    width: 96px;
    height: 96px;
    margin: 26px auto 0;
    background: url('../assets/images/orligon/red-button.png') center / contain no-repeat;
    transition: transform 0.06s;
}
.cc-see-btn:hover {
    background-image: url('../assets/images/orligon/red-button-hover.png');
}
.cc-see-btn:active {
    background-image: url('../assets/images/orligon/red-button-pressed.png');
    transform: translateY(1px);
}
.cc-see-caption {
    text-align: center;
    margin-top: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}


/* ════════════════════════════════════════════════════════════════════════
   FULL Command Center UI transplant: hull panels (corner brackets + plasma
   conduit + hull tile), metallic bevel keys, plasma details — the same
   asset system the app itself uses.
   ═══════════════════════════════════════════════════════════════════════ */

/* Space backdrop behind everything; sections stay translucent. */
.orligon-page {
    background: #060b14 url('../assets/images/orligon/cc-space.jpg') center / cover no-repeat fixed;
}
.orligon-page .project-section {
    background: transparent;
}
.orligon-page .project-section.alt-bg {
    background: rgba(6, 11, 20, 0.45);
}

/* ── Hull panels: cards, stats, slides, code blocks, CTA ── */
.orligon-page .arch-card,
.orligon-page .story-stat,
.orligon-page .feature-content,
.orligon-page .code-preview,
.orligon-page .carousel-slide,
.orligon-page .cc-cta-panel {
    position: relative;
    border: none;
    border-radius: 10px;
    background:
        url('../assets/images/orligon/corner-tl.png') top left / 56px 56px no-repeat,
        url('../assets/images/orligon/corner-tr.png') top right / 56px 56px no-repeat,
        url('../assets/images/orligon/corner-br.png') bottom right / 56px 56px no-repeat,
        url('../assets/images/orligon/corner-bl.png') bottom left / 56px 56px no-repeat,
        url('../assets/images/orligon/hull-tile.png') left top / 256px 256px repeat,
        linear-gradient(180deg, #f7fafc, #e8eef4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 2px 12px rgba(18, 40, 60, 0.35);
    padding: 26px;
}
.orligon-page .arch-card::before,
.orligon-page .story-stat::before,
.orligon-page .feature-content::before,
.orligon-page .code-preview::before,
.orligon-page .carousel-slide::before,
.orligon-page .cc-cta-panel::before {
    content: "";
    position: absolute;
    inset: 9px;
    pointer-events: none;
    border: 1.5px solid rgba(24, 183, 255, 0.7);
    border-radius: 7px;
    box-shadow: 0 0 7px rgba(24, 183, 255, 0.5), inset 0 0 7px rgba(24, 183, 255, 0.22);
    z-index: 1;
}
/* Panel interiors: dark text on white hull, content above the conduit. */
.orligon-page .arch-card > *,
.orligon-page .story-stat > *,
.orligon-page .feature-content > *,
.orligon-page .code-preview > *,
.orligon-page .carousel-slide > *,
.orligon-page .cc-cta-panel > * {
    position: relative;
    z-index: 2;
}
.orligon-page .arch-card,
.orligon-page .arch-card h3,
.orligon-page .arch-card p,
.orligon-page .story-stat,
.orligon-page .feature-content,
.orligon-page .feature-content h3,
.orligon-page .feature-content p,
.orligon-page .carousel-slide .slide-caption {
    color: #141e29;
}
.orligon-page .story-stat .story-stat-number { color: #0b7fd6; }
.orligon-page .story-stat .story-stat-label { color: #54637a; }
.orligon-page .slide-img {
    border-radius: 6px;
    display: block;
}
.orligon-page .code-preview,
.orligon-page .code-preview code,
.orligon-page .code-preview pre {
    color: #16283a;
}

/* Story text sits directly on space — light with a soft shadow. */
.orligon-page .story-text p,
.orligon-page .section-intro {
    color: #cfdded;
    text-shadow: 0 1px 4px rgba(2, 8, 16, 0.8);
}
.orligon-page .story-highlight strong { color: #55d3ff; }

/* ── Metallic bevel keys: carousel arrows, tech chips, back link ── */
.orligon-page .carousel-btn {
    border: 2px solid;
    border-color: #dde9f3 #46586a #32424f #d3e0ea;
    border-radius: 5px;
    background: linear-gradient(180deg, #bccbda 0%, #9aafc1 45%, #7d93a6 55%, #667c8f 100%);
    color: #f4f9fd;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -3px 5px rgba(12, 30, 46, 0.35),
        0 2px 5px rgba(8, 22, 36, 0.45);
}
.orligon-page .carousel-btn:hover {
    border-color: #eaf6ff #3e6a8a #2d5573 #dff0fb;
    filter: brightness(1.07);
}
.orligon-page .carousel-btn:active {
    transform: translateY(1.5px);
    border-color: #32424f #d3e0ea #dde9f3 #46586a;
}
.orligon-page .footer .back-link {
    border: 2px solid;
    border-color: #8fe6ff #0a5e9c #084a80 #6fd9ff;
    border-radius: 5px;
    padding: 9px 18px;
    background: linear-gradient(180deg, #55d3ff 0%, #17a3ec 45%, #0b7fd6 55%, #0868b0 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 40, 80, 0.6);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -3px 5px rgba(4, 50, 95, 0.5),
        0 0 11px rgba(24, 183, 255, 0.45);
    text-decoration: none;
}

/* ── Plasma details: dots, navbar, footer ── */
.orligon-page .carousel-dot {
    background: #34506a;
    border: 1px solid #18b7ff;
}
.orligon-page .carousel-dot.active {
    background: #18b7ff;
    box-shadow: 0 0 8px rgba(24, 183, 255, 0.8);
}
.orligon-page .navbar {
    background: rgba(8, 14, 24, 0.85);
    border-bottom: 1px solid rgba(24, 183, 255, 0.4);
    backdrop-filter: blur(6px);
}
.orligon-page .nav-link:hover { color: #55d3ff; }
.orligon-page .footer {
    background: rgba(8, 14, 24, 0.85);
    border-top: 1px solid rgba(24, 183, 255, 0.4);
}
.orligon-page,
.orligon-page p,
.orligon-page li {
    font-family: 'Rajdhani', 'Inter', sans-serif;
}
.orligon-page h1, .orligon-page h2, .orligon-page h3 {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
}

/* ── The CTA panel: the red button on its own bolted hull plate ── */
.orligon-page .cc-cta-panel {
    display: inline-block;
    margin: 30px auto 0;
    padding: 26px 56px 20px;
}
.orligon-page .cc-see-btn { margin: 0 auto; }
.orligon-page .cc-see-caption {
    color: #0b7fd6;
    text-shadow: none;
}
