/* Custom CSS for Expense Diary App Page */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --gradient-danger: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    display: flex;
    align-items: center;
}

.navbar-brand .material-icons {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* FM Section */
.fm-section {
    background: linear-gradient(135deg, #f8faff 0%, #e8f4f8 100%);
    padding-top: 100px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-weight: 600;
}

.app-badge .material-icons {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.fm-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fm-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.fm-buttons .btn {
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary);
    border: none;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* App Rating */
.app-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
}

.rating-stars .material-icons {
    color: #ffd700;
    font-size: 1.2rem;
}

.rating-text {
    color: var(--text-light);
    font-weight: 500;
}

/* App Mockup */
.app-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
}

.phone-container {
    position: relative;
    z-index: 2;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: var(--text-dark);
    border-radius: 40px;
    padding: 15px;
    box-shadow: var(--shadow-xl);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    padding: 20px;
}

/* App Interface */
.app-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    color: white;
}

.header-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.header-info p {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    opacity: 0.9;
}

.budget-ring {
    width: 60px;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-progress {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, white var(--progress), rgba(255,255,255,0.3) var(--progress));
    mask: radial-gradient(circle closest-side, transparent 70%, black 70%);
}

.ring-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

/* Quick Stats */
.quick-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    gap: 0.75rem;
}

.stat-item.income .material-icons {
    color: var(--success-color);
    background: rgba(72, 187, 120, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.stat-item.expense .material-icons {
    color: var(--danger-color);
    background: rgba(245, 101, 101, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.stat-item p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.stat-item h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Recent Transactions */
.recent-transactions {
    flex: 1;
}

.recent-transactions h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    gap: 1rem;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transaction-icon.groceries {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
}

.transaction-icon.gas {
    background: rgba(237, 137, 54, 0.1);
    color: var(--warning-color);
}

.transaction-icon.salary {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.transaction-icon .material-icons {
    font-size: 1.2rem;
}

.transaction-info {
    flex: 1;
}

.transaction-info p {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.transaction-info small {
    color: var(--text-light);
    font-size: 0.75rem;
}

.transaction-amount {
    font-weight: 700;
    font-size: 0.9rem;
}

.transaction-amount.income {
    color: var(--success-color);
}

.transaction-amount.expense {
    color: var(--danger-color);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.float-card .material-icons {
    font-size: 1rem;
    color: var(--primary-color);
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30%;
    left: -10%;
    animation-delay: 2s;
}

.card-3 {
    top: 60%;
    right: -15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

/* Features Section */
.features-section {
    background: var(--bg-light);
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
    text-align: center;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon .material-icons {
    font-size: 2.5rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Screenshots Section */
.screenshots-section {
    padding: 100px 0;
    background: var(--white);
}

.screenshots-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.screenshot-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    padding: 2rem 0;
}

.screenshot-item {
    min-width: 200px;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.screenshot-item:not(.active) {
    opacity: 0.6;
    transform: scale(0.9);
}

.screenshot-phone {
    width: 180px;
    height: 360px;
    background: var(--text-dark);
    border-radius: 25px;
    padding: 10px;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-lg);
}

.screenshot-content {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 20px;
    padding: 15px;
    overflow: hidden;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.content-header h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.content-header .material-icons {
    color: var(--primary-color);
}

/* Dashboard Screenshot */
.screenshot-content.dashboard .chart-placeholder {
    width: 100%;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 10px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-box {
    background: var(--bg-light);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
}

/* Transactions Screenshot */
.transaction-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trans-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    background: var(--bg-light);
}

.trans-icon {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 5px;
    opacity: 0.8;
}

.trans-details {
    flex: 1;
}

.trans-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dark);
}

.trans-date {
    font-size: 0.6rem;
    color: var(--text-light);
}

.trans-amount {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--danger-color);
}

/* Analytics Screenshot */
.chart-section {
    text-align: center;
}

.pie-chart {
    width: 80px;
    height: 80px;
    background: conic-gradient(var(--primary-color) 0deg 120deg, var(--success-color) 120deg 200deg, var(--warning-color) 200deg);
    border-radius: 50%;
    margin: 0 auto 15px;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.legend-color.food {
    background: var(--primary-color);
}

.legend-color.transport {
    background: var(--success-color);
}

/* Screenshot Navigation */
.screenshot-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--primary-color);
}

/* Download Section */
.download-section {
    background: var(--gradient-primary);
    color: white;
    padding: 100px 0;
}

.download-section .section-title {
    color: white;
}

.download-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.download-buttons .btn {
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.app-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.info-item .material-icons {
    font-size: 1.2rem;
}

/* Download Visual */
.download-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.qr-pattern {
    width: 120px;
    height: 120px;
    background: url("data:image/svg+xml,%3csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cpattern id='qr' width='10' height='10' patternUnits='userSpaceOnUse'%3e%3crect width='5' height='5' fill='%23000'/%3e%3c/pattern%3e%3c/defs%3e%3crect width='100' height='100' fill='url(%23qr)'/%3e%3c/svg%3e");
    border-radius: 10px;
    margin-bottom: 1rem;
}

.qr-code p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-brand .material-icons {
    color: var(--primary-color);
    font-size: 2rem;
}

.footer-description {
    color: #a0aec0;
    margin-bottom: 0;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
}

.footer-bottom p {
    margin: 0;
    color: #a0aec0;
}

.heart {
    color: #f56565;
    font-size: 1rem;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .fm-title {
        font-size: 2.5rem;
    }
    
    .fm-section {
        padding-top: 120px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .app-mockup {
        margin-top: 3rem;
        height: 500px;
    }
    
    .phone-frame {
        width: 250px;
        height: 500px;
    }
    
    .floating-elements {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .fm-title {
        font-size: 2rem;
    }
    
    .fm-subtitle {
        font-size: 1rem;
    }
    
    .fm-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .screenshot-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .screenshot-item {
        min-width: auto;
    }
    
    .app-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom .text-end {
        text-align: start !important;
    }
    
    .quick-stats {
        flex-direction: column;
    }
    
    .app-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
