/* Custom CSS for PDF Viewer App Page */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #4facfe;
    --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, #4facfe 0%, #00f2fe 100%);
    --gradient-success: linear-gradient(135deg, #48bb78 0%, #38a169 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(75, 172, 254, 0.1);
    color: var(--accent-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-secondary);
    -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-secondary);
    border: none;
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-secondary);
    border: none;
}

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-primary:hover {
    background: var(--accent-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;
}

/* PDF Interface */
.pdf-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.file-info .material-icons {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.file-details h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.file-details p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.header-actions .material-icons {
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-actions .material-icons:hover {
    color: var(--accent-color);
}

/* PDF Document */
.pdf-document {
    flex: 1;
    background: #fafafa;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.pdf-page {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.page-content {
    height: 100%;
}

.doc-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.company-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-secondary);
    border-radius: 8px;
    margin: 0 auto 0.75rem;
}

.doc-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.doc-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.text-line {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    animation: shimmer 2s ease-in-out infinite;
}

.text-line.short {
    width: 40%;
}

.text-line.medium {
    width: 70%;
}

.text-line.long {
    width: 90%;
}

.text-line.full {
    width: 100%;
}

.chart-placeholder {
    width: 100%;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 8px;
    margin: 1rem 0;
    opacity: 0.7;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* PDF Controls */
.pdf-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.control-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.control-btn:hover {
    background: rgba(75, 172, 254, 0.1);
}

.control-btn .material-icons {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.zoom-level {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

.page-navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-info {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 40px;
    text-align: center;
}

/* 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(--accent-color);
}

.card-1 {
    top: 15%;
    right: 5%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 35%;
    left: -15%;
    animation-delay: 2s;
}

.card-3 {
    top: 65%;
    right: -10%;
    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-secondary);
    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;
}

/* How It Works Section */
.how-it-works-section {
    padding: 100px 0;
    background: var(--white);
}

.step-card {
    text-align: center;
    position: relative;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(75, 172, 254, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
}

.step-icon .material-icons {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.step-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Screenshots Section */
.screenshots-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.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 h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.content-header .material-icons {
    color: var(--accent-color);
}

/* Viewer Screenshot */
.document-preview {
    height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

.doc-page {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.page-header {
    margin-bottom: 8px;
}

.header-line {
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    margin-bottom: 3px;
}

.header-line.long {
    width: 80%;
}

.header-line.short {
    width: 50%;
}

.page-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.body-line {
    height: 2px;
    background: #e2e8f0;
    border-radius: 1px;
}

.body-line.medium {
    width: 70%;
}

.body-line.short {
    width: 40%;
}

.image-placeholder {
    width: 60px;
    height: 30px;
    background: var(--gradient-secondary);
    border-radius: 4px;
    margin: 8px 0;
    opacity: 0.7;
}

.viewer-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.viewer-controls .material-icons {
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Library Screenshot */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--bg-light);
    border-radius: 8px;
}

.file-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-icon.pdf {
    background: var(--accent-color);
}

.file-info {
    flex: 1;
}

.file-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

.file-size {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Search Screenshot */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 15px;
}

.search-bar .material-icons {
    color: var(--text-light);
    font-size: 1rem;
}

.search-text {
    font-size: 0.8rem;
    color: var(--text-dark);
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-item {
    padding: 8px;
    border-left: 3px solid var(--accent-color);
    background: rgba(75, 172, 254, 0.05);
    border-radius: 0 6px 6px 0;
}

.result-page {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 2px;
}

.result-text {
    font-size: 0.7rem;
    color: var(--text-dark);
}

/* 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(--accent-color);
}

/* Download Section */
.download-section {
    background: var(--gradient-secondary);
    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(--accent-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(--accent-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(--accent-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;
    }
    
    .step-card {
        margin-bottom: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
