/**
 * RockTranslate — Deep Space Glassmorphism Stylesheet
 * Path: docs/style.css
 * 
 * Defines global variables, typography, glassmorphism filters, 
 * responsive grid cards, and background radial glow animations.
 * 
 * Author: RockTranslate Contributors
 * License: MIT License
 * Version: 1.0.0
 */

:root {
    /* Color Palette matching n8n-style dark themes */
    --bg-dark-base: #121621;
    --bg-dark-secondary: #0c101f;
    --border-glass: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 252, 252, 0.02);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;

    --accent-blue: #4f8ef7;
    --accent-blue-hover: #3b7ad4;
    --accent-blue-glow: rgba(79, 142, 247, 0.35);
    --accent-green: #10b981;
    --accent-red: #ef4444;
}

/* ── RESET & GLOBAL CONFIGURATIONS ── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--bg-dark-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ── BACKGROUND RADIAL GLOW EFFECTS ── */
.radial-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.glow-1 {
    top: -10%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 142, 247, 0.15) 0%, transparent 70%);
}

.glow-2 {
    bottom: 10%;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
}

/* ── LAYOUT CONTAINER ── */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px auto;
}

/* ── GLASSMORPHISM CARDS ── */
.glass-card {
    background: var(--bg-glass);
    border: 2px solid var(--border-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 142, 247, 0.3);
    box-shadow: 0 10px 30px -10px rgba(79, 142, 247, 0.15);
}

/* ── NAVIGATION BAR ── */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 70px;
    background: rgba(7, 10, 19, 0.7);
    border-bottom: 2px solid var(--border-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
     text-decoration: none; 
    color: inherit; 
    cursor: pointer;
}

.nav-logo {
    width: 32px;
    height: 32px;
}

.nav-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a:hover {
    color: var(--accent-blue);
}

.nav-btn-cta {
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(79, 142, 247, 0.2);
}

.nav-btn-cta:hover {
    background-color: var(--accent-blue-hover);
    box-shadow: 0 4px 20px var(--accent-blue-glow);
}

/* ── HERO SECTION ── */
.hero-section {
    padding-top: 150px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
}

.hero-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 142, 247, 0.1);
    border: 2px solid rgba(79, 142, 247, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 40px auto;
}

.hero-btn-primary {
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 20px rgba(79, 142, 247, 0.25);
}

/* Centered large hero brand logo style */
.hero-logo {
    display: block;
    margin-left: auto;
    margin-right: auto; 
    width: 580px;
    height: auto; 
    max-width: 100%;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 20px rgba(79, 142, 247, 0.35)); 
    animation: hero-logo-pulse 3s infinite ease-in-out;
}

@keyframes hero-logo-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 4px 20px rgba(79, 142, 247, 0.35)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 4px 30px rgba(79, 142, 247, 0.5)); }
}
.hero-btn-primary:hover {
    background-color: var(--accent-blue-hover);
    box-shadow: 0 4px 30px var(--accent-blue-glow);
    transform: translateY(-1px);
}

/* Showcase Window element */
.hero-showcase-window {
    margin-top: 80px;
    border: 2px solid var(--border-glass);
    border-radius: 12px;
    background: var(--bg-dark-secondary);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.window-bar {
    height: 40px;
    background: rgba(12, 16, 31, 0.8);
    border-bottom: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-dots .red {
    background-color: #ff5f56;
}

.window-dots .yellow {
    background-color: #ffbd2e;
}

.window-dots .green {
    background-color: #27c93f;
}

.window-title {
    font-size: 11px;
    font-family: monospace;
    color: var(--text-muted);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.showcase-gif {
    display: block;
    width: 100%;
    height: auto;
}

/* ── MISSION SECTION ── */
.mission-section {
    padding: 100px 0;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.mission-card {
    text-align: left;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 18px;
}

.mission-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.mission-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── FEATURES SECTION ── */
.features-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.feature-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Asymmetric large card styling */
.card-large {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.card-text-side {
    flex: 1;
}

.card-image-side {
    flex: 1.2;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-glass);
}

.feature-showcase-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-medium .card-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

/* ── DEVELOPERS SECTION ── */
.developers-section {
    padding: 100px 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.developers-info {
    text-align: left;
}

.developers-info .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.developers-info .section-subtitle {
    text-align: left;
    margin-bottom: 40px;
}

.dev-bullets-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dev-bullets-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.bullet-code {
    background: rgba(79, 142, 247, 0.1);
    border: 2px solid rgba(79, 142, 247, 0.2);
    color: var(--accent-blue);
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
    margin-top: 4px;
}

.dev-bullets-list strong {
    font-size: 14px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.dev-bullets-list p,
.dev-bullets-list div {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Terminal Mockup */
.developers-terminal {
    background: #060913;
    border: 2px solid var(--border-glass);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.terminal-header {
    height: 38px;
    background: rgba(12, 16, 31, 0.9);
    border-bottom: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.terminal-dots .red {
    background-color: #ff5f56;
}

.terminal-dots .yellow {
    background-color: #ffbd2e;
}

.terminal-dots .green {
    background-color: #27c93f;
}

.terminal-title {
    font-size: 10px;
    font-family: monospace;
    color: var(--text-muted);
    margin-left: 14px;
}

.terminal-body {
    padding: 20px;
    text-align: left;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
}

.code-line {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.code-prompt {
    color: var(--accent-blue);
    user-select: none;
    margin-right: 8px;
}

.code-comment {
    color: var(--text-muted);
}

.code-output {
    color: #a8a29e;
}

.blink-cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-blue);
    font-weight: bold;
}

@keyframes blink {

    from,
    to {
        color: transparent
    }

    50% {
        color: var(--accent-blue);
    }
}

/* ── FINAL CALL TO ACTION ── */
.final-cta-section {
    padding: 120px 24px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(79, 142, 247, 0.08) 0%, transparent 60%);
    position: relative;
    border-top: 2px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    overflow: hidden;
}

.cta-glow-effect {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background-color: rgba(79, 142, 247, 0.1);
    filter: blur(100px);
    border-radius: 50%;
}

.cta-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 10;
}

.cta-btn-primary {
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 16px rgba(79, 142, 247, 0.2);
}

.cta-btn-primary:hover {
    background-color: var(--accent-blue-hover);
    box-shadow: 0 4px 24px var(--accent-blue-glow);
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cta-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── FOOTER SECTION ── */
.main-footer {
    padding: 60px 0;
    background: #04060c;
    border-top: 2px solid var(--border-glass);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.footer-tagline {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-credits {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-credits strong {
    color: var(--text-primary);
}

.footer-copyright {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ── RESPONSIVE DESIGN (Adaptive Viewports) ── */
@media (max-width: 968px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .card-large {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .hero-title {
        font-size: 38px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .card-large {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .nav-menu {
        display: none;
        /* Hide menus on small mobile screens */
    }

    .footer-container {
        flex-direction: column;
        gap: 24px;
    }

    .footer-credits {
        text-align: left;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 280px;
        margin: 0 auto;
    }
}




/* ── INFINITE HORIZONTAL USER CASES SCROLLER ── */
.scroller-container {
    overflow: hidden;
    width: 100%;
    margin-top: 60px;
    position: relative;
    padding: 10px 0;
}

/* Translucent gradient masks on left and right edges for a premium "fade out" effect */
.scroller-container::before,
.scroller-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.scroller-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark-base) 0%, transparent 100%);
}

.scroller-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark-base) 0%, transparent 100%);
}

.scroller-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: infinite-scroll 35s linear infinite;
}

/* Pause the scrolling animation gently when hovering a bubble */
.scroller-track:hover {
    animation-play-state: paused;
}

.scroller-bubble {
    background: var(--bg-glass);
    border: 2px solid var(--border-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 22px;
    border-radius: 20px;
    /* Highly rounded "bubble" style */
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 480px;
}

.bubble-avatar {
    font-size: 20px;
    flex-shrink: 0;
}

.scroller-bubble div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.bubble-author {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 2px;
}

.bubble-quote {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    white-space: nowrap;
    /* Forces text to remain on a single line */
}

/* Infinite wrapping keyframe animation */
@keyframes infinite-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Translates exactly half of the duplicated track width for a seamless loop */
        transform: translateX(calc(-50% - 10px));
    }
}




/* ── SHOWCASE SECTION (Before & After Stack) ── */
.showcase-section {
    padding: 100px 0;
    border-top: 2px solid var(--border-glass);
}

.showcase-stack {
    display: flex;
    flex-direction: column;
    gap: 60px;
    /* Espace équilibré entre chaque cas d'étude */
}

.showcase-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px !important;
    position: relative;
    cursor: default;
}

.showcase-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.showcase-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 900px;
}

/* Glowing dynamic photo frame container */
.showcase-frame {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-glass);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

/* Transition to soft neon-glow borders on card hover */
.showcase-card:hover .showcase-frame {
    border-color: rgba(79, 142, 247, 0.45);
    box-shadow: 0 15px 40px rgba(79, 142, 247, 0.15);
}

.showcase-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: translateZ(0);
    /* Force hardware GPU acceleration */
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Buttery smooth 3D micro-zoom on image when hovering the card */
.showcase-card:hover .showcase-img {
    transform: scale(1.015);
}




/* ── TERMINAL INTERACTIVE TABS ── */
.terminal-tabs {
    display: flex;
    gap: 4px;
    margin-left: auto; /* Aligne les onglets à droite du header */
}

.terminal-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
}

.terminal-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.terminal-tab.active {
    color: var(--accent-blue);
    background: rgba(79, 142, 247, 0.1);
    border: 2px solid rgba(79, 142, 247, 0.2);
}

/* ── PYTHON SYNTAX HIGHLIGHTING COLORS ── */
.code-keyword {
    color: #ff79c6; /* Violet / Rose néon pour les mots-clés (from, import) */
    font-weight: bold;
}

.code-string {
    color: #50fa7b; /* Vert néon pour les chaînes de caractères */
}

.code-comment {
    color: #6272a4; /* Bleu grisé pour les commentaires */
    font-style: italic;
}