/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Background Overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(1px);
}

/* Floating Particles (overlay on video) */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(0, 174, 255, 0.2), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 255, 136, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 0, 128, 0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 165, 0, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(-100px); }
    100% { transform: translateY(-100px) translateX(100px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    padding: 30px 0;
    text-align: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00aeff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #00aeff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

/* Main Content */
.main-content {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    text-align: center;
    max-width: 800px;
}

/* Title */
.title {
    margin-bottom: 30px;
}

.gradient-text {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00aeff, #00ff88, #ff0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 10px;
    animation: shimmer 3s infinite;
}

.typing-effect {
    font-size: 1.2rem;
    color: #888;
    font-weight: 300;
    border-right: 2px solid #00aeff;
    padding-right: 5px;
    animation: typing 4s infinite;
}

/* Description */
.description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 50px;
    color: #cccccc;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Input Section */
.stock-input-section {
    margin-bottom: 60px;
}

.input-group {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.input-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.stock-input {
    width: 100%;
    padding: 18px 50px 18px 50px;
    font-size: 1.1rem;
    border: 2px solid rgba(0, 174, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
}

.stock-input:focus {
    border-color: #00aeff;
    box-shadow: 0 0 20px rgba(0, 174, 255, 0.3);
    transform: translateY(-2px);
}

.stock-input::placeholder {
    color: #888;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #00aeff;
    font-size: 1.2rem;
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: linear-gradient(45deg, transparent, rgba(0, 174, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stock-input:focus + .input-glow {
    opacity: 1;
}

/* Analyze Button */
.analyze-btn {
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(45deg, #00aeff, #00ff88);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.analyze-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 174, 255, 0.4);
}

.analyze-btn:active {
    transform: translateY(0);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.analyze-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Features */
.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 174, 255, 0.2);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 174, 255, 0.2);
}

.feature-item i {
    font-size: 1.5rem;
    color: #00aeff;
}

.feature-item span {
    font-weight: 500;
    color: #cccccc;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    border: 1px solid rgba(0, 174, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Analysis Modal */
.analysis-header h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #00aeff;
    font-size: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00aeff, #00ff88);
    width: 0%;
    animation: progress 5s ease-in-out;
}

.analysis-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
    background: rgba(0, 174, 255, 0.1);
    border-left: 4px solid #00aeff;
}

.step.completed {
    opacity: 1;
    background: rgba(0, 255, 136, 0.1);
    border-left: 4px solid #00ff88;
}

.step i {
    font-size: 1.2rem;
    color: #00aeff;
    width: 20px;
}

.step-status {
    margin-left: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #555;
    position: relative;
}

.step.completed .step-status {
    background: #00ff88;
    border-color: #00ff88;
}

.step.completed .step-status::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    font-weight: bold;
}

/* Result Modal */
.result-content {
    max-width: 600px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 174, 255, 0.3);
}

.result-header h3 {
    color: #00aeff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff0080;
}

/* Report Generated Section */
.report-generated {
    text-align: center;
    margin-bottom: 30px;
}

.success-icon {
    font-size: 4rem;
    color: #00ff88;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.report-generated h4 {
    color: #00aeff;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.report-description {
    color: #cccccc;
    margin-bottom: 25px;
    line-height: 1.6;
}

.report-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: rgba(0, 174, 255, 0.1);
    border-radius: 10px;
    border-left: 4px solid #00aeff;
    transition: all 0.3s ease;
}

.feature-row:hover {
    background: rgba(0, 174, 255, 0.2);
    transform: translateX(5px);
}

.feature-row i {
    color: #00aeff;
    font-size: 1.2rem;
    width: 20px;
}

.feature-row span {
    color: #ffffff;
    font-weight: 500;
}

/* Free Badge */
.free-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #ff0080, #ff4040);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.free-badge i {
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 25px;
    background: rgba(0, 174, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(0, 174, 255, 0.3);
}

.cta-text {
    margin-bottom: 20px;
    color: #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cta-text i {
    color: #ff0080;
}

.whatsapp-btn {
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
    font-size: 1.3rem;
}

.small-text {
    color: #888;
    font-size: 0.9rem;
    margin-top: 15px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Animations */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes typing {
    0%, 50% { border-color: #00aeff; }
    51%, 100% { border-color: transparent; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gradient-text {
        font-size: 2.5rem;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-wrapper {
        max-width: none;
    }
    
    .features {
        gap: 15px;
        margin: 0 10px;
    }
    
    .feature-item {
        padding: 12px 8px;
    }
    
    .feature-item i {
        font-size: 1.2rem;
    }
    
    .feature-item span {
        font-size: 0.8rem;
    }
    
    .result-preview {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .gradient-text {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .features {
        gap: 10px;
        margin: 0 5px;
    }
    
    .feature-item {
        padding: 10px 6px;
    }
    
    .feature-item i {
        font-size: 1rem;
    }
    
    .feature-item span {
        font-size: 0.75rem;
    }
}
