/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* Section Management */
.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section.active {
    opacity: 1;
    visibility: visible;
}

/* Landing Section */
#landing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

#landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 2rem;
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.hero-description {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.cta-button {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.crypto-element {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    animation: float 6s ease-in-out infinite;
}

.crypto-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.crypto-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.crypto-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* MR P Image */
.mrp-image-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 600px;
    height: 600px;
    z-index: 1;
    pointer-events: none;
}

.mrp-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: mrpFloat 4s ease-in-out infinite;
}

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

/* Responsive adjustments for MR P image */
@media (max-width: 768px) {
    .mrp-image-container {
        width: 375px;
        height: 375px;
    }
}

@media (max-width: 480px) {
    .mrp-image-container {
        width: 300px;
        height: 300px;
    }
}

/* Character Selection Section */
#character-selection {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 2rem;
    overflow-y: auto;
}

.selection-header {
    text-align: center;
    margin-bottom: 3rem;
}

.selection-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.selection-header p {
    font-size: 1.2rem;
    color: rgba(236, 240, 241, 0.8);
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.character-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.character-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.character-image {
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.character-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.character-card:hover .character-photo {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.character-avatar {
    font-size: 4rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.analyst-avatar {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.strategist-avatar {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.sentiment-avatar {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.character-card:hover .character-avatar {
    transform: scale(1.1);
}

.character-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.character-card p {
    color: rgba(236, 240, 241, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(236, 240, 241, 0.9);
}

/* Terminal Section */
#terminal {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 1rem;
}

.terminal-container {
    width: 100%;
    max-width: 1000px;
    height: 80vh;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.terminal-header {
    background: linear-gradient(90deg, #333, #444);
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #555;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27ca3f; }

.terminal-title {
    font-family: 'Orbitron', monospace;
    color: #fff;
    font-size: 1rem;
    margin-left: 1rem;
}

.terminal-body {
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
}

.character-info {
    background: linear-gradient(90deg, #2c3e50, #34495e);
    padding: 1rem;
    border-bottom: 1px solid #555;
}

.selected-character {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selected-character .character-avatar {
    font-size: 2rem;
    padding: 0.5rem;
}

.selected-character span:last-child {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: #ecf0f1;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    animation: fadeIn 0.3s ease-in;
}

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

.message-avatar {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.message-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid #4ecdc4;
    flex: 1;
}

.message-content p {
    color: #ecf0f1;
    line-height: 1.6;
    margin: 0;
}

.bot-message .message-content {
    border-left-color: #4ecdc4;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: rgba(78, 205, 196, 0.1);
    border-left-color: #4ecdc4;
    border-left: none;
    border-right: 3px solid #4ecdc4;
}

.input-container {
    padding: 1rem;
    border-top: 1px solid #333;
    background: #0a0a0a;
}

.input-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#user-input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 1rem;
    border-radius: 10px;
    color: #ecf0f1;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

#user-input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

#send-button {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

#send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

/* Back Button */
.back-button {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4ecdc4;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .character-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .character-photo {
        width: 150px;
        height: 150px;
    }
    
    .terminal-container {
        height: 90vh;
    }
    
    .back-button {
        position: relative;
        top: auto;
        left: auto;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .character-photo {
        width: 120px;
        height: 120px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
} 