/* style.css - Meta AI Inspired with Updated Hero Text Styling */

:root {
    --meta-blue: #0062E0;
    --meta-blue-hover: #0050C0;
    --text-primary: #1c1e21;
    --text-secondary: #606770;
    --text-light: #ffffff;
    --surface-background: #ffffff;
    --page-background: #f0f2f5;
    --border-color: #ccd0d5;
    --border-color-light: #e4e6eb;

    --font-family-main: 'Roboto', Helvetica, Arial, sans-serif;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-pill: 40px;
}

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

body {
    font-family: var(--font-family-main);
    background-color: var(--page-background);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--meta-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background-color: var(--surface-background);
    border-bottom: 1px solid var(--border-color-light);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-title {
    display: flex;
    align-items: center;
}

.header-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

header h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

header nav {
    display: flex;
    gap: 20px;
}

header nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

header nav a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.header-cta-button {
    background-color: var(--meta-blue);
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.header-cta-button:hover {
    background-color: var(--meta-blue-hover);
    text-decoration: none;
}

/* Hero Section - Two Column Layout */
.hero-section {
    display: flex;
    align-items: center;
    padding: 48px 24px;
    background-color: var(--surface-background);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-video-column {
    flex: 0 0 45%;
    max-width: 500px;
}

.hero-video {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    display: block;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.hero-text-column {
    flex: 1 1 55%;
    padding-left: 24px;
    text-align: left;
    color: var(--text-primary);
}

.hero-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
    color: var(--meta-blue);
}

.hero-text-column h2 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.hero-text-column p {
    font-size: 18px;
    margin-bottom: 36px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
}

.hero-btn {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    transition: transform 0.1s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.hero-btn.primary {
    background-color: var(--meta-blue);
    color: var(--text-light);
}
.hero-btn.primary:hover {
    background-color: var(--meta-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration:none;
}

.hero-btn.secondary {
    background-color: transparent;
    color: var(--meta-blue);
    border: 1px solid var(--meta-blue);
}
.hero-btn.secondary:hover {
    background-color: rgba(0, 98, 224, 0.05);
    transform: translateY(-1px);
    text-decoration:none;
}


/* App Showcase Section */
.app-showcase-section {
    padding: 48px 24px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-primary);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.app-card {
    background-color: var(--surface-background);
    border: 1px solid var(--border-color-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.app-card-image {
    height: 200px;
    background-size: cover; /* Kept in case you want a fallback bg image later */
    background-position: center; /* Kept for fallback */
    display: flex; /* For centering the icon */
    align-items: center; /* For centering the icon */
    justify-content: center; /* For centering the icon */
    overflow: hidden; /* To contain the icon if it's too large */
}

.app-icon {
    max-width: 50%; /* Adjust as needed */
    max-height: 50%; /* Adjust as needed */
    object-fit: contain; /* Keeps aspect ratio, fits within bounds */
}

.app-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.app-card-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.app-card-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 16px;
}

.card-action-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--meta-blue);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    align-self: flex-start;
    margin-top: auto;
}

.card-action-btn:hover {
    background-color: rgba(0, 98, 224, 0.05);
    border-color: var(--meta-blue);
    text-decoration: none;
}


/* Footer */
footer {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: var(--text-secondary);
    background-color: var(--page-background);
    border-top: 1px solid var(--border-color-light);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    header nav {
        display: none;
    }
    .hero-section {
        flex-direction: column;
        padding: 32px 16px;
        text-align: center;
    }
    .hero-video-column {
        flex-basis: auto;
        width: 100%;
        max-width: 450px;
        margin-bottom: 24px;
    }
    .hero-text-column {
        padding-left: 0;
        text-align: center;
        align-items: center;
    }
    .hero-text-column h2 {
        font-size: 40px;
    }
    .hero-text-column p {
        font-size: 17px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .header-container {
        justify-content: center;
    }
    .header-cta-button {
        display: none;
    }
    .logo-title {
        flex-grow: 1;
        justify-content: center;
    }
    header h1 {
        font-size: 17px;
    }
    .hero-text-column h2 {
        font-size: 32px;
    }
     .hero-text-column p {
        font-size: 16px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .hero-btn {
        width: 80%;
        max-width: 300px;
    }
    .app-grid {
        grid-template-columns: 1fr;
    }
    .app-card-content h2 {
        font-size: 18px;
    }
    .card-action-btn {
        width: 100%;
    }
}