/* Components - Platform Switch, Device Container, Download Buttons */

/* Platform Switch Buttons */
.platform-switch {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.platform {
    background-color: #f0f2f5;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #374151;
}

.platform:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.platform.active {
    background-color: #4b5cfb;
    border-color: #4b5cfb;
    color: white;
    font-weight: 600;
}

/* Device Container and Images */
.device-container {
    margin: 30px 0;
    text-align: center;
}

.device {
    margin: 0 auto;
}

.device img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.device figcaption {
    margin-top: 15px;
    font-size: 16px;
    color: #555;
    font-style: italic;
}

/* Download Buttons */
.download-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-download {
    background-color: #4b5cfb;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 92, 251, 0.3);
    color: white;
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, #f8f9fd 0%, #e9ecf1 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.contact-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
}

.btn-contact {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    margin-top: 0.6rem;
}

.btn-contact:hover,
.btn-contact:focus,
.btn-contact:active {
    background: var(--primary-dark);
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    /* Center platform switch and make buttons slightly larger/tappable */
    .platform-switch {
        justify-content: center;
        gap: 12px;
        margin: 16px 0;
    }

    .platform {
        padding: 12px 18px;
        font-size: 15px;
        border-radius: 10px;
    }

    /* Make download buttons stack and become full-width where appropriate */
    .download-row {
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .btn-download {
        padding: 12px 18px;
        font-size: 15px;
        border-radius: 10px;
    }

    /* Center contact cards and text for better mobile readability */
    .contact-card {
        text-align: center;
        padding: 1.6rem 1.2rem;
    }

    .contact-card p {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .platform {
        padding: 10px 14px;
        font-size: 14px;
    }

    .btn-download {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
