/* Base Styles and Variables */
:root {
    /* Color Palette */
    --bg-primary: #050A30;
    --bg-secondary: #000000;
    --panel-bg: rgba(10, 23, 71, 0.7);
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --accent-primary: #00FFFF;
    --accent-secondary: #9D00FF;
    --accent-tertiary: #FF00A8;
    --success: #00FF88;
    --warning: #FFD700;
    --danger: #FF3366;
    
    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Sizes */
    --header-height: 70px;
    --container-width: 1200px;
    --border-radius: 8px;
    --glow-size: 10px;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.highlight {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

/* Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 10, 48, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-speed);
    box-shadow: 0 0 5px var(--accent-primary);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.theme-toggle, .mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.theme-toggle:hover {
    color: var(--accent-primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-speed);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 20px rgba(157, 0, 255, 0.5);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.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.7s;
    z-index: -1;
}

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

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    box-shadow: 0 0 var(--glow-size) rgba(0, 255, 255, 0.5);
}

.btn-primary:hover {
    box-shadow: 0 0 calc(var(--glow-size) * 1.5) rgba(0, 255, 255, 0.7);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

/* Panels */
.panel {
    background: var(--panel-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

/* Form Styles */
.investment-form {
    padding: 5rem 0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

input[type="number"], input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: var(--border-radius);
    background: rgba(5, 10, 48, 0.5);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-speed);
}

input[type="number"]:focus, input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-speed);
}

input:focus + .input-highlight {
    width: 100%;
}

.risk-selector {
    margin-top: 1rem;
}

input[type="range"] {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, var(--success), var(--warning), var(--danger));
    border-radius: 5px;
    outline: none;
    margin-bottom: 1.5rem;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    box-shadow: 0 0 8px var(--accent-primary);
    transition: all var(--transition-speed);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--accent-primary);
}

.risk-labels {
    display: flex;
    justify-content: space-between;
}

.risk-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.risk-label.active {
    color: var(--accent-primary);
    font-weight: 500;
}

/* Processing Section */
.processing {
    padding: 5rem 0;
}

.progress-container {
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 5px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 1.5s infinite;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.processing-animation {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 10px;
    background: var(--accent-primary);
    animation: pulse 1.5s infinite ease-in-out;
}

.circle:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--accent-secondary);
}

.circle:nth-child(3) {
    animation-delay: 0.4s;
    background: var(--accent-tertiary);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.5);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 15px currentColor;
    }
}

/* Results Section */
.results {
    padding: 5rem 0;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-speed);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-speed);
}

.tab-btn:hover, .tab-btn.active {
    color: var(--accent-primary);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.overview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.chart-container {
    flex: 1;
    min-width: 300px;
    height: 300px;
    position: relative;
}

.summary-container {
    flex: 1;
    min-width: 300px;
}

.summary-list {
    list-style: none;
    margin-bottom: 2rem;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-item {
    background: rgba(5, 10, 48, 0.5);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.chart-item h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-top: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-primary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.data-table tbody tr {
    transition: background var(--transition-speed);
}

.data-table tbody tr:hover {
    background: rgba(0, 255, 255, 0.05);
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-features {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: rgba(5, 10, 48, 0.5);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all var(--transition-speed);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-primary);
}

.feature i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 25px;
    width: 2px;
    height: calc(100% + 3rem);
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 2rem;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    z-index: 1;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: rgba(5, 10, 48, 0.9);
    padding: 4rem 0 1rem;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo p {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.footer-disclaimer {
    flex: 2;
    min-width: 300px;
}

.footer-disclaimer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .overview-container, .about-content {
        flex-direction: column;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(5, 10, 48, 0.95);
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        transition: height var(--transition-speed);
        z-index: 999;
    }
    
    .nav-list.active {
        height: calc(100vh - var(--header-height));
        padding: 2rem 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 1rem;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .panel {
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}
