/* General Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f7 !important;
    color: #1d1d1f;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header */
header {
    background-color: #1d1d1f;
    color: white;
    padding: 2.5rem 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    width: 200px;
    height: 200px;
    border-radius: 22%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.header-text {
    text-align: left;
}

header h1 {
    margin: 0 0 0.4rem 0;
    font-weight: 700;
    font-size: 2.8rem;
    letter-spacing: -0.02em;
}

header p {
    margin: 0;
    font-weight: 400;
    font-size: 1.15rem;
    opacity: 0.7;
    letter-spacing: 0.01em;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

/* App Grid Section */
.app-grid h2 {
    text-align: center;
    font-size: 2rem;
    color: #1d1d1f;
    margin-bottom: 2rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* App Card Styling */
.app-card {
    background-color: #ffffff !important;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.app-image-placeholder {
    background-color: #f5f5f7;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86868b;
    font-weight: bold;
    overflow: hidden;
    position: relative;
    padding: 15px;
}

/* Style the actual image inside the placeholder */
.app-image-placeholder img.app-icon {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 75% !important;
    max-height: 75% !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    border-radius: 22% !important;
}

.app-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.app-info h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.app-info p {
    margin-bottom: 1rem;
    flex-grow: 1;
    color: #6e6e73;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-view-app {
    display: inline-block;
    background-color: #0071e3;
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    margin-top: auto;
}

.btn-view-app:hover {
    background-color: #0077ed;
    text-decoration: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #86868b;
    border-top: 1px solid #d2d2d7;
}

footer p {
    margin: 0 0 0.75rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    color: #0071e3;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-divider {
    color: #d2d2d7;
}

/* Carousel Styles for AwesomeCopy Mobile */
.carousel-container {
    text-align: center;
    margin-bottom: 2rem;
}

.carousel-container h2 {
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.carousel {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    background-color: #f5f5f7;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.carousel-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 15px;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-image.active {
    display: block;
}

/* Features container styling */
.features-container {
    max-width: 600px;
    margin: 2rem auto;
}

.features-container h2 {
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    background-color: #ffffff;
    margin-bottom: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #0071e3;
}

/* Carousel features section layout */
#carousel-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* App Store button styling */
.app-store-btn {
    display: inline-block;
    background-color: #000;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.app-store-btn:hover {
    background-color: #333;
    text-decoration: none;
}

/* Back button styling */
.back-btn {
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
    margin-left: 1rem;
}

.back-btn:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .header-text {
        text-align: center;
    }
    .header-logo {
        width: 110px;
        height: 110px;
    }
    header h1 {
        font-size: 2rem;
    }
    header p {
        font-size: 1rem;
    }
    .app-grid {
        grid-template-columns: 1fr;
    }

    /* Stack carousel and features on mobile */
    #carousel-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .carousel {
        max-width: 250px;
    }
}
