/* General Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #ffffff;
    color: #202124;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner Section */
.top-banner {
    width: 100%;
    height: 180px;
    /* You can replace this gradient with your banner.jpg image like this: */
    /* background: url('assets/banner.jpg') center/cover no-repeat; */
    background: linear-gradient(180deg, #1a1a2e 0%, #30587b 100%); 
}

/* Brand Header */
.brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid #e8eaed;
    gap: 40px;
}

.brand-title-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.brand-title-group h1 {
    font-size: 36px;
    font-weight: 500;
}

.brand-description p {
    font-size: 16px;
    line-height: 1.5;
    color: #3c4043;
    max-width: 500px;
}

/* Portfolio Grid */
.portfolio {
    padding: 30px 0;
}

.portfolio h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #202124;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 30px;
}

.app-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-icon {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 22.5%; /* Google Play style squircle */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin-bottom: 12px;
    object-fit: cover;
}

.app-card h3 {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 4px;
}

.rating {
    font-size: 12px;
    color: #5f6368;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .brand-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Additional Info Section */
.additional-info {
    padding: 40px 0;
    margin-top: 20px;
}

.additional-info h2 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 24px;
    color: #202124;
}

.info-grid {
    display: grid;
    /* This creates neat columns that automatically adjust on mobile */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.info-block {
    font-size: 14px;
    line-height: 1.6;
    color: #5f6368;
}

.info-block strong {
    color: #202124;
    font-weight: 500;
}

.info-block a {
    color: #1a73e8; /* Standard Google blue link color */
    text-decoration: none;
}

.info-block a:hover {
    text-decoration: underline;
}

/* --- APP DETAIL PAGE STYLES --- */
.app-page {
    background-color: #ffffff;
}

.app-hero {
    background-color: #0f172a; /* Dark background fallback */
    color: #ffffff;
    padding: 30px 0 60px 0;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #1e293b;
}

.back-link {
    color: #94a3b8;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 30px;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: #ffffff;
}

.app-header-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.app-main-icon {
    width: 160px;
    border-radius: 20%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.app-title-area h1 {
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 8px;
}

.developer-name {
    color: #10b981; /* Google Play Green */
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 24px;
}

.app-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #cbd5e1;
    text-decoration: none;
}

.stat-item strong {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 4px;
}

.stat-item span {
    font-size: 13px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background-color: #475569;
}

/* Privacy Button Hover */
.privacy-btn {
    cursor: pointer;
    transition: color 0.2s;
}

.privacy-btn:hover, .privacy-btn:hover strong {
    color: #10b981;
}
        
.privacy-btn svg {
    margin-bottom: 4px;
    width: 22px;
    height: 22px;
}

.store-buttons {
    display: flex;
    gap: 16px;
}

.store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: opacity 0.2s;
}

.store-btn:hover {
    opacity: 0.9;
}

.android-btn {
    background-color: #01875f;
    color: #ffffff;
}

.apple-btn {
    background-color: #ffffff;
    color: #000000;
}

/* Screenshots Section */
.screenshots-section {
    padding: 40px 0;
}

.screenshots-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px; /* Space for scrollbar */
    scrollbar-width: thin;
}

.screenshots-container::-webkit-scrollbar {
    height: 8px;
}

.screenshots-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.screenshots-container img {
    height: 400px; /* Adjust this to match your screenshot heights */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* Description Section */
.app-description {
    padding: 20px 0 60px 0;
}

.app-description h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #202124;
}

.app-description p {
    font-size: 15px;
    line-height: 1.6;
    color: #5f6368;
    margin-bottom: 16px;
    max-width: 800px;
}

/* Mobile Responsiveness for App Page */
@media (max-width: 768px) {
    .app-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .app-title-area h1 {
        font-size: 32px;
    }
    .app-stats {
        justify-content: center;
    }
    .store-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .screenshots-container img {
        height: 300px;
    }
}