* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Consolas', monospace;
    background: #0a0a0a;
    min-height: 100vh;
    color: #00ff41;
    overflow-x: hidden;
    position: relative;
    /* Force color scheme to prevent browser night mode interference */
    color-scheme: only light;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Matrix canvas background */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

/* Scan line effect */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    animation: scan 4s linear infinite;
    z-index: 9998;
    opacity: 0.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Dialog screen */
.dialog-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.dialog-screen.active {
    display: flex;
}

.dialog-container {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Terminal window */
.terminal-window {
    background: rgba(0, 0, 0, 0.98);
    border: 2px solid #00ff41;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.4);
    animation: terminalGlow 2s ease-in-out infinite;
}

.terminal-header {
    background: rgba(0, 255, 65, 0.15);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #00ff41;
}

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

.terminal-dot.red {
    background: #ff5555;
    box-shadow: 0 0 5px #ff5555;
}

.terminal-dot.yellow {
    background: #ffff55;
    box-shadow: 0 0 5px #ffff55;
}

.terminal-dot.green {
    background: #55ff55;
    box-shadow: 0 0 5px #55ff55;
}

.terminal-title {
    margin-left: auto;
    font-size: 0.85rem;
    color: #00ff41;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.6);
}

.terminal-body {
    padding: 30px;
    min-height: 400px;
    max-height: 70vh;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
}

.message-container {
    color: #00ff41;
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.dialog-message {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInMessage 0.5s ease forwards;
    color: #00ff41;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.dialog-message.greeting {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ff41;
    text-shadow: 0 0 15px rgba(0, 255, 65, 1), 0 0 30px rgba(0, 255, 65, 0.6);
    margin-bottom: 30px;
}

.dialog-message.highlight {
    color: #ffff00;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.8), 0 0 20px rgba(255, 255, 0, 0.4);
}

.terminal-cursor {
    display: inline-block;
    color: #00ff41;
    animation: cursorBlink 1s step-end infinite;
    font-size: 1.1rem;
    margin-left: 2px;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.8);
}

/* Continue button */
.continue-btn {
    background: rgba(0, 255, 65, 0.15);
    border: 2px solid #00ff41;
    color: #00ff41;
    padding: 15px 30px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.8);
}

.continue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 65, 0.25);
    transition: left 0.3s ease;
}

.continue-btn:hover::before {
    left: 100%;
}

.continue-btn:hover {
    background: rgba(0, 255, 65, 0.25);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.6);
    transform: scale(1.05);
}

.continue-btn:active {
    transform: scale(0.98);
}

.continue-btn.hidden {
    display: none;
}

.btn-icon {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes terminalGlow {
    0%, 100% {
        box-shadow: 0 0 50px rgba(0, 255, 65, 0.4);
    }
    50% {
        box-shadow: 0 0 70px rgba(0, 255, 65, 0.5);
    }
}

@keyframes fadeInMessage {
    to {
        opacity: 1;
    }
}

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

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInDown 1s ease-out;
    position: relative;
}

.classified-stamp {
    display: inline-block;
    border: 3px solid #ff0000;
    color: #ff0000;
    padding: 5px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 5px;
    transform: rotate(-5deg);
    margin-bottom: 20px;
    opacity: 0.7;
}

.title {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    margin-bottom: 15px;
    letter-spacing: 8px;
    color: #00ff41;
    animation: flicker 3s ease-in-out infinite;
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0.8;
    letter-spacing: 4px;
    color: #00cc88;
}

.agent-badge {
    display: inline-block;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff41;
    padding: 8px 20px;
    margin-top: 15px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Status bar */
.status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 255, 0, 0.05);
    border-left: 3px solid #00ff41;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00ff41;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px #00ff41;
}

.status-text {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #00ff41;
}

/* Briefing section */
.briefing-section {
    animation: fadeInUp 1s ease-out;
}

.product-card {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid #00ff41;
    border-radius: 5px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.1),
                inset 0 0 50px rgba(0, 255, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    animation: scanEffect 3s ease-in-out infinite;
}

.product-card:hover {
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.2),
                inset 0 0 50px rgba(0, 255, 0, 0.05);
}

.image-container {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    animation: verticalScan 2s ease-in-out infinite;
    pointer-events: none;
}

.product-image {
    max-width: 100%;
    height: auto;
    border: 2px solid #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transition: all 0.3s ease;
    filter: contrast(1.1) brightness(0.95);
}

.product-image:hover {
    filter: contrast(1.2) brightness(1);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.corner-brackets {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 95%;
    pointer-events: none;
}

.bracket {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #00ff41;
}

.bracket.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.bracket.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.bracket.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.bracket.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.product-info {
    color: #00ff41;
    text-align: left;
}

.product-title {
    font-size: 2.5rem;
    color: #00ff41;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 8px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.code-designation {
    text-align: center;
    font-size: 1rem;
    color: #00cc88;
    margin-bottom: 30px;
    letter-spacing: 3px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.spec-item {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid #00ff41;
    border-left: 3px solid #00ff41;
    padding: 15px;
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.spec-label {
    display: block;
    font-size: 0.75rem;
    color: #00cc88;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.spec-value {
    display: block;
    font-size: 1.1rem;
    color: #00ff41;
    font-weight: bold;
    margin-bottom: 5px;
}

.spec-detail {
    display: block;
    font-size: 0.85rem;
    color: #00aa55;
}

.tactical-features {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 255, 0, 0.03);
    border: 1px solid #00ff41;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #00ff41;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.feature:last-child {
    border-bottom: none;
}

.feature-icon {
    color: #00ff41;
    font-weight: bold;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff41;
    color: #00ff41;
    padding: 18px 40px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 30px;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 0, 0.2);
    transition: left 0.3s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-arrow {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Agent message */
.agent-message {
    margin-top: 40px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid #00ff41;
    border-left: 4px solid #00ff41;
    padding: 25px;
}

/* Video briefing */
.video-briefing {
    margin-top: 40px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid #00ff41;
    padding: 25px;
}

.video-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #00ff41;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.video-icon {
    color: #00ff41;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border: 2px solid #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #00ff41;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.message-icon {
    color: #00ff41;
}

.message-content {
    color: #00ff41;
    line-height: 1.8;
}

.agent-info {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.agent-info strong {
    color: #00ff41;
}

.delivery-info {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #00cc88;
}

.signature {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
}

.signature-line {
    color: #00ff41;
    font-style: italic;
}

.clearance {
    font-size: 0.85rem;
    color: #00aa55;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
}

.footer-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-item {
    font-size: 0.9rem;
    color: #00cc88;
    letter-spacing: 2px;
    padding: 5px 15px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.disclaimer {
    font-size: 0.85rem;
    color: #00aa55;
    margin-top: 15px;
    letter-spacing: 1px;
}


/* Animations */
@keyframes scan {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

@keyframes scanEffect {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

@keyframes verticalScan {
    0% {
        top: 0;
    }
    50% {
        top: 100%;
    }
    100% {
        top: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
    75% {
        opacity: 0.98;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
        letter-spacing: 4px;
    }
    
    .subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .product-card {
        padding: 20px;
    }
    
    .product-title {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-button {
        font-size: 0.9rem;
        padding: 15px 25px;
        letter-spacing: 2px;
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 10px;
    }
    
    .agent-message {
        padding: 15px;
    }

    /* Video briefing mobile */
    .video-briefing {
        padding: 15px;
    }

    .video-header {
        font-size: 1rem;
    }

    /* Dialog screen mobile */
    .dialog-container {
        max-width: 100%;
    }

    .terminal-body {
        padding: 20px;
        min-height: 300px;
        max-height: 60vh;
    }

    .message-container {
        font-size: 1rem;
    }

    .dialog-message.greeting {
        font-size: 1.5rem;
    }

    .continue-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .terminal-title {
        font-size: 0.7rem;
    }

    .terminal-dot {
        width: 10px;
        height: 10px;
    }
}


