/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background: linear-gradient(120deg, #a18cd1, #fbc2eb);
    color: #222;
    animation: backgroundAnimation 6s infinite alternate;
}

/* Background Animation */
@keyframes backgroundAnimation {
    0% { background: linear-gradient(120deg, #a18cd1, #d1c2fb); }
    50% { background: linear-gradient(120deg, #84fab0, #8fd3f4); }
    100% { background: linear-gradient(120deg, #e29aff, #fad0c4); }
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

/* Navigation */
nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

nav a:hover {
    color: #fbc2eb;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Market Section */
.market-container {
    padding: 100px 20px 40px;
}

/* Glassmorphism Card */
.market-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    margin: 20px auto;
    width: 85%;
    max-width: 750px;
    color: white;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards ease-in-out;
}

.market-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.5);
}

/* Stock Data Table */
.stock-table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    font-size: 18px;
}

.stock-table th, .stock-table td {
    padding: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.stock-table th {
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.stock-table td {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Stock Animation */
@keyframes stockBlink {
    0% { color: #28a745; }
    50% { color: #fbc2eb; }
    100% { color: #28a745; }
}

.stock-price {
    font-size: 22px;
    font-weight: bold;
    animation: stockBlink 1.5s infinite alternate;
}

/* Chart Container */
.chart-container {
    width: 80%;
    max-width: 600px;
    margin: auto;
    padding-top: 20px;
}

/* Hover Effect for Stock List */
.stock-list li {
    font-size: 18px;
    padding: 10px;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.stock-list li:hover {
    transform: scale(1.05);
    color: #ffc107;
}

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