/* General Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container.content-container {
    max-width: 1000px;
}

/* Header */
.header {
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.header p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Content */
.content {
    border-radius: 20px;
    padding: 4rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    border-radius: 2px;
}

.content h2:first-child {
    margin-top: 0;
}

.content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.content ul,
.content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Apps Grid */
.apps-section {
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: #4d75ce;
    margin: 1rem auto 0;
    border-radius: 2px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.app-card {
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #4d75ce;
    border-radius: 2px;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 17px rgba(0, 0, 0, 0.12);
}

.app-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: block;
    object-fit: cover;
}

.app-card h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 600;
}

.app-card p {
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.7;
    font-size: 1.05rem;
    flex-grow: 1;
}

.app-card a {
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: auto;
    box-sizing: border-box;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.back-link,
.app-link-button {
    display: inline-block;
    position: relative;
    padding: 0.8em 2.1em;
    margin-bottom: 0.75em;
    margin-right: 0.25em;
    line-height: 1.2;
    border: 4px solid transparent;
    outline: 0;
    text-decoration: none;
    text-shadow: none;
    border-radius: 30px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0px 10px 10px -8px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    box-sizing: border-box;
    will-change: background-color, color, border-color, box-shadow;
}

.back-link {
    margin-bottom: 2rem;
}

.app-link-button {
    margin: 0 1rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e5e5e5;
    background-color: #fcfcfc;
}

.hero-section p {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.8;
}

/* Images */
.app-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin: 3rem auto;
    display: block;
    transition: transform 0.3s ease;
}

.app-image:hover {
    transform: scale(1.02);
}

/* Screenshots */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.screenshot-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 17px rgba(0, 0, 0, 0.12);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #4d75ce;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 17px rgba(0, 0, 0, 0.12);
}

.feature-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-card p {
    margin: 0;
    font-size: 1rem;
}

/* Highlight Box */
.highlight-box {
    border-left: 5px solid #4d75ce;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.highlight-box h4 {
    margin-bottom: 0.8rem;
}

/* Tech Details */
.tech-details {
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tech-details h4 {
    margin-bottom: 0.8rem;
}

.tech-details ul {
    list-style: none;
    margin-left: 0;
}

.tech-details li {
    padding-left: 1.5rem;
    position: relative;
}

.tech-details li:before {
    content: "•";
    color: #4d75ce;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* CTA Section */
.cta-section {
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: #333333;
    color: #f5f5f5;
}

.cta-section h3 {
    color: #f5f5f5;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(245, 245, 245, 0.9);
    margin-bottom: 1.5rem;
}

.app-store-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.app-store-button {
    display: inline-block;
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
    line-height: 0;
}

.app-store-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-store-button img {
    height: 60px;
    width: auto;
    display: block;
    border-radius: 8px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 5rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer p {
    opacity: 0.9;
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .content {
        padding: 2rem 1.5rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .app-icon {
        width: 100px;
        height: 100px;
    }

    .feature-grid,
    .screenshot-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-color-scheme: dark) {
    .hero-section {
        background-color: #404141;
        border-color: #5e5f5f;
    }

    .cta-section {
        background-color: #1b1c1d;
        color: #f5f5f5;
    }

    .header {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .footer {
        box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3);
    }
}

