
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2d1b4e 100%);
    color: white;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 188, 212, 0.6);
    border-radius: 50%;
    animation: float-particle 8s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.glow-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: float 6s ease-in-out infinite;
}

.orb1 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, transparent 70%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb2 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3) 0%, transparent 70%);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.orb3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 20, 147, 0.3) 0%, transparent 70%);
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.container {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.robot-icon {
    width: 120px;
    height: 120px;
    background: url(../images/robo.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 188, 212, 0.3);
    animation: pulse 2s infinite, glow 3s infinite alternate;
    transition: transform 0.3s ease;
}

.robot-icon:hover {
    transform: scale(1.1) rotate(5deg);
    animation: bounce 0.6s ease;
}


.main-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffa726, #ff7043);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.3s both;
}

.subtitle {
    font-size: 18px;
    color: #b0bec5;
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.6s both;
}

.analysis-box {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideInFromLeft 1s ease 0.9s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analysis-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.accuracy-stat {
    font-size: 24px;
    font-weight: bold;
    color: #4caf50;
    margin-bottom: 15px;
}

.description {
    font-size: 14px;
    color: #90a4ae;
    line-height: 1.8;
    margin-bottom: 20px;
}

.user-count {
    font-size: 16px;
    color: #ffa726;
    font-weight: bold;
}

.input-section {
    margin-bottom: 30px;
    animation: slideInFromRight 1s ease 1.2s both;
}

.stock-input {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.stock-input:focus {
    outline: none;
    border-color: #00bcd4;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
}

.stock-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.analyze-btn {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #00bcd4, #2196f3);
    border: none;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.4);
    position: relative;
    overflow: hidden;
}

.analyze-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 188, 212, 0.6);
}

.analyze-btn:hover::before {
    left: 100%;
}

.analyze-btn:active {
    transform: translateY(0);
}

.progress-container {
    display: none;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
}

.progress-title {
    font-size: 20px;
    margin-bottom: 25px;
    color: #00bcd4;
}

.progress-item {
    margin-bottom: 20px;
    text-align: left;
}

.progress-label {
    font-size: 14px;
    color: #b0bec5;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00bcd4, #4caf50);
    border-radius: 3px;
    width: 0%;
    transition: width 0.8s ease;
}

.result-container {
    display: none;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.result-title {
    font-size: 22px;
    color: #4caf50;
    margin-bottom: 20px;
}

.result-description {
    font-size: 14px;
    color: #b0bec5;
    line-height: 1.6;
    margin-bottom: 25px;
}

.line-btn {
    display: inline-flex;
    align-items: center;
    background: #06c755;
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.3);
}

.line-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(6, 199, 85, 0.4);
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-link {
    color: #64b5f6;
    text-decoration: none;
    font-size: 12px;
}

.company-info {
    font-size: 12px;
    color: #78909c;
    line-height: 1.4;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
    }
    50% { 
        box-shadow: 0 0 40px rgba(0, 188, 212, 0.6), 
                   0 0 60px rgba(0, 188, 212, 0.4);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes sparkle {
    0%, 100% { 
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% { 
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
}

/* 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.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 24px;
    color: #00bcd4;
    margin: 0;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #fff;
}

.modal-body {
    color: #e2e8f0;
    line-height: 1.6;
}

.modal-body h3 {
    color: #00bcd4;
    margin-bottom: 15px;
    font-size: 20px;
}

.modal-body h4 {
    color: #64b5f6;
    margin: 20px 0 10px 0;
    font-size: 16px;
}

.modal-body ul {
    margin: 10px 0 15px 20px;
}

.modal-body li {
    margin-bottom: 8px;
    color: #cbd5e1;
}

.modal-body p {
    margin-bottom: 15px;
    color: #e2e8f0;
}

.progress-container-modal {
    background: rgba(30, 41, 59, 0.9);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-container-modal {
    background: rgba(30, 41, 59, 0.9);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 16px;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
        max-height: 80vh;
    }

    .modal-title {
        font-size: 20px;
    }
}
