/* ========== BASE STYLES ========== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-color: #1e293b;
    --darker-color: #0f172a;
    --light-color: #f8fafc;
    --gray-color: #94a3b8;
    --light-gray: #e2e8f0;

    --font-primary: 'Poppins', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    background-color: white;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

/* ========== TYPOGRAPHY ========== */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-subtitle, .subtitle-enhanced {
    font-size: 1rem;
    color: var(--gray-color);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.5;
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.logo p {
    color: var(--gray-color);
    font-size: 0.8rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* ========== APPS SECTION ========== */
.apps-section {
    background-color: white;
    padding-top: 100px;
    padding-bottom: 60px;
}

.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 30px;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.tab-btn i {
    font-size: 1rem;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.tab-btn:hover:not(.active) {
    background-color: #d1d5db;
}

.apps-container {
    margin-top: 20px;
}

.platform-apps {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.platform-apps.active {
    display: grid;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-height: 340px;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.app-logo {
    height: 160px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.app-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.app-info {
    padding: 18px;
}

.app-info h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.app-info p {
    color: var(--gray-color);
    font-size: 0.85rem;
    margin-bottom: 15px;
    min-height: 40px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.download-btn:hover {
    background-color: var(--primary-dark);
}

.download-btn i {
    font-size: 1rem;
}

/* ========== FEATURES SECTION ========== */
.features-section {
    background-color: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-height: 280px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ========== STATS SECTION ========== */
.stats-section {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    text-align: center;
}

.stat-card {
    padding: 25px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========== CONTACT SECTION ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-content h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.info-content p, .info-content a {
    color: var(--gray-color);
    margin-bottom: 5px;
    display: block;
    font-size: 0.9rem;
}

.info-content a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.map-container {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ========== FOOTER ========== */
.main-footer {
    background-color: var(--darker-color);
    color: white;
    padding: 25px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: var(--gray-color);
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

/* ========== ENHANCED MOBILE STYLES ========== */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 350px;
        margin-top: 25px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle, .subtitle-enhanced {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .apps-section {
        padding-top: 90px;
    }

    .platform-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: none;
    }

    .platform-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .feature-card {
        min-height: 250px;
        padding: 20px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 15px;
    }

    section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .section-subtitle, .subtitle-enhanced {
        font-size: 0.85rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .apps-section {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .platform-apps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .app-card {
        min-height: 300px;
    }

    .app-logo {
        height: 140px;
    }

    .app-info {
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle, .subtitle-enhanced {
        font-size: 0.8rem;
    }

    .container {
        padding: 0 15px;
    }

    .tab-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .app-info h3 {
        font-size: 1rem;
    }

    .app-info p {
        font-size: 0.8rem;
    }

    .download-btn {
        font-size: 0.85rem;
        padding: 8px;
    }
}