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

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    transition: background 0.5s ease-in-out, color 0.5s ease-in-out;
    animation: backgroundAnimation 10s infinite alternate;
}

/* Smooth Animated Gradient Background */
@keyframes backgroundAnimation {
    0% { background: linear-gradient(120deg, #c69aff, #fac4e2); }
    50% { background: linear-gradient(120deg, #fbc2eb, #a6c1ee); }
    100% { background: linear-gradient(120deg, #84fab0, #8fd3f4); }
}

/* Dark Mode */
body.dark-mode {
    background: linear-gradient(120deg, #121212, #1e1e1e);
    color: #ffffff;
}

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

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

nav a:hover {
    color: #fbc2eb;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Dark Mode Toggle */
#darkModeToggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
    margin-left: 15px;
    transition: transform 0.3s ease-in-out;
}

#darkModeToggle:hover {
    transform: rotate(180deg);
}

/* Sections */
.investment-section {
    padding: 50px 20px;
    background: rgba(255, 255, 255, 0.9);
    margin: 80px auto 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 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;
}

.investment-section:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

/* Strategy Cards */
.strategy-container {
    background: white;
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.5s forwards;
}

.strategy-container:hover {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

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

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

/* Calculator Styling */
.calculator {
    background: white;
    padding: 25px;
    margin: 40px auto;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 2s forwards;
}

.calculator input {
    width: 80%;
    padding: 12px;
    margin: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s;
}

.calculator input:focus {
    border: 2px solid #007bff;
    outline: none;
}

/* Button Animation */
.calculator button {
    padding: 12px 18px;
    border: none;
    background-color: #007bff;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.calculator button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Result Text */
#result {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-top: 15px;
}
