:root {
    --primary-color: #0a0a0a;
    --secondary-color: #141414;
    --accent-gradient: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 100%);
    --danger-gradient: linear-gradient(135deg, #FF512F 0%, #DD2476 100%);
    --text-color: #ffffff;
    --card-bg: #1a1a1a;
    --input-bg: #202020;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --neon-shadow: 0 0 15px rgba(0, 255, 255, 0.6); /* Aqua Cyan Glow */
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Landing Page Styles */
.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-page.hide {
    transform: translateY(-100%) rotate(-5deg);
}

.landing-title {
    font-family: 'Righteous', cursive;
    font-size: 5rem;
    text-align: center;
    perspective: 1000px;
}

.landing-title span {
    display: inline-block;
    opacity: 0;
    transform: rotateX(90deg);
    animation: flipIn 0.5s forwards;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 5px;
}

@keyframes flipIn {
    to {
        opacity: 1;
        transform: rotateX(0);
    }
}

/* Main App Styles */
.app {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    transform: translateY(20px);
}

.app.show {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 4rem;
    transform: scale(0.9);
    opacity: 0;
    animation: scaleIn 0.5s forwards 0.5s;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.title {
    font-family: 'Righteous', cursive;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.subtitle {
    color: #888;
    font-size: 1.3rem;
    margin-top: 1rem;
}

.budget-setup {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.5s forwards 0.7s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.input-group {
    flex: 1;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: #E5DOCF;
    box-shadow: var(--neon-shadow);
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.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: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--neon-shadow);
}

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

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s forwards 0.9s;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gradient);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-card i {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.stat-card h3 {
    margin-bottom: 1rem;
    color: #888;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card p {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.expense-input {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.5rem;
    align-items: flex-end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s forwards 1.1s;
}

.history-section {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s forwards 1.3s;
}

.history-section h2 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.expense-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.expense-item {
    background: var(--input-bg);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    transform-origin: left;
}

.expense-item:hover {
    transform: scale(1.02);
    box-shadow: var(--neon-shadow);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.expense-item .details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.expense-item .amount {
    font-weight: 700;
    font-size: 1.2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.expense-item .note {
    font-size: 1rem;
    color: #888;
}

.expense-item .date {
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .landing-title {
        font-size: 3rem;
    }

    .title {
        font-size: 2.5rem;
    }

    .budget-setup,
    .expense-input {
        flex-direction: column;
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .expense-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #577D73 0%, #E5DOCF 100%);
}

.footer {
    background: black;
    padding: 2.5rem 0;
    text-align: center;
    /* color: #fff; */
    box-shadow: 0 -5px 15px rgba(255, 107, 107, 0.2);
}

.footer-container {
    max-width: 800px;
    margin: auto;
}

.footer-title {
    font-size: 2rem;
    font-weight: bold;
}

.footer-text {
    font-size: 1rem;
    opacity: 0.8;
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ffdddd;
}

.social-icons {
    margin: 15px 0;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #ff6b6b;
}

.footer-credit {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
}
