/* TPEX Mobile App - Main Stylesheet */
:root {
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --secondary: #60A5FA;
    --accent: #3B82F6;
    --text: #1F2937;
    --text-light: #6B7280;
    --bg: #F9FAFB;
    --bg-light: rgba(255, 255, 255, 0.9);
    --card-bg: rgba(255, 255, 255, 0.7);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border: rgba(37, 99, 235, 0.1);
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 30px;
}
/* Intro Section */
.intro-section {
    margin: 40px 15px;
    padding: 40px 20px;
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-light);
}

/* Features Grid */
.features-section {
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    padding: 25px;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 24px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* Additional Services */
.additional-services {
    padding: 40px 20px;
    text-align: center;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.service-tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.cta-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    padding-bottom: 80px; /* Space for bottom nav */
}

.mobile-app {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glass Effect */
.glass-effect {
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Top Header */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    border-radius: 0 0 var(--radius) var(--radius);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 24px;
}

.logo-icon {
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

/* Search Container */
.search-container {
    display: none;
    margin-top: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    outline: none;
}

/* Quick Categories */
.quick-categories {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.quick-categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s;
}

.category-btn.active {
    background: var(--primary);
    color: white;
}

/* Main Content */
.main-content {
    margin-top: 140px; /* Adjust based on header height */
    padding-bottom: 100px;
}

/* Hero Section */
.hero-section {
    border-radius: 25px;
    position: relative;
    padding: 40px 0;
    margin-bottom: 40px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(37, 99, 235, 0.2);
    z-index: -1;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

/* Blur Background Circles */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -150px;
    right: -100px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: #8B5CF6;
    top: 50%;
    left: 10%;
}

/* Services Section */
.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 380px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 24px;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.service-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 15px;
    font-size: 12px;
    color: var(--primary);
    border: 1px solid var(--border);
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 10px;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    padding: 40px 0;
}

.cta-content {
    padding: 40px 30px;
    text-align: center;
}

.cta-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text);
}

.cta-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 16px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    display: flex;
    justify-content: space-around;
    padding: 15px 20px;
    z-index: 1000;
    border-radius: var(--radius-lg);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 12px;
    transition: all 0.3s;
    position: relative;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.quote-btn {
    margin-top: -30px;
}

.quote-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    margin-bottom: 5px;
}

.quote-btn span {
    margin-top: 5px;
}

/* Quick Action Button */
.quick-action-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quick-action-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--bg-light);
    backdrop-filter: blur(30px);
    z-index: 1100;
    padding: 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.side-menu.active {
    right: 0;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.side-menu-header h3 {
    color: var(--primary);
    font-size: 22px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.side-nav-item:hover, .side-nav-item.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.side-nav-item i {
    width: 24px;
    text-align: center;
    font-size: 20px;
}

.side-nav-item span {
    flex-grow: 1;
}

.theme-switch {
    width: 50px;
    height: 26px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
}

.switch-handle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    transition: transform 0.3s;
}

.menu-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1099;
    display: none;
}

.side-menu-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .services-grid {
        gap: 15px;
    }
    
    .service-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .bottom-nav {
        width: 95%;
        padding: 12px 15px;
    }
    
    .nav-item i {
        font-size: 18px;
    }
    
    .quote-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
