/* Custom CSS for FengMing Developer Website */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --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-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 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;
}

.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);
}

/* FM Stats */
.fm-stats {
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* FM Image */
.fm-image {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-phone {
    width: 280px;
    height: 560px;
    background: var(--white);
    border-radius: 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
    padding: 20px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-content {
    text-align: center;
}

.app-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.app-icon .material-icons {
    font-size: 40px;
    color: white;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.floating-card .material-icons {
    font-size: 2rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.about-image {
    position: relative;
}

.about-shape {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    z-index: -1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-item .material-icons {
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.2rem;
    font-size: 1.5rem;
}

.feature-item h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-light);
    margin: 0;
}

/* Apps Section */
.apps-section {
    background: var(--bg-light);
    padding: 100px 0;
}

.app-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.app-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.app-icon .material-icons {
    font-size: 2.5rem;
    color: white;
}

.app-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.app-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
}

.feature-tag .material-icons {
    font-size: 1rem;
    margin-right: 0.5rem;
}

.app-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-actions .btn {
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
}

/* App Preview */
.app-preview {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.app-card:hover .app-preview {
    opacity: 0.3;
}

.preview-phone {
    width: 160px;
    height: 320px;
    background: var(--text-dark);
    border-radius: 25px;
    padding: 10px;
}

.preview-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    padding: 15px;
}

/* Expense Preview */
.expense-preview .expense-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.expense-chart {
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, var(--primary-color) 60%, #e2e8f0 60%);
    border-radius: 8px;
    margin-bottom: 15px;
}

.expense-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    margin-bottom: 8px;
}

.expense-item .material-icons {
    font-size: 1rem;
    color: var(--primary-color);
}

/* PDF Preview */
.pdf-preview .pdf-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.pdf-document {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

.pdf-line {
    height: 4px;
    background: #dee2e6;
    border-radius: 2px;
    margin-bottom: 4px;
}

.pdf-line.short {
    width: 60%;
}

.pdf-line.medium {
    width: 80%;
}

.pdf-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.pdf-controls .material-icons {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: white;
}

.contact-section .section-title {
    color: white;
}

.contact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.contact-buttons .btn {
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 600;
    text-decoration: none;
    margin: 0.5rem;
}

.contact-section .btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
}

.contact-section .btn-outline-primary {
    border: 2px solid white;
    color: white;
}

.contact-section .btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
}

/* 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;
    }
    
    .fm-image {
        margin-top: 3rem;
        height: 400px;
    }
    
    .fm-phone {
        width: 200px;
        height: 400px;
    }
    
    .floating-card {
        width: 60px;
        height: 60px;
    }
    
    .floating-card .material-icons {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .fm-title {
        font-size: 2rem;
    }
    
    .fm-subtitle {
        font-size: 1rem;
    }
    
    .app-card {
        padding: 2rem 1.5rem;
    }
    
    .app-preview {
        display: none;
    }
    
    .fm-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .contact-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .footer-bottom .text-end {
        text-align: start !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
