/* ==========================================================================
   APP LAYOUT & 100% HORIZONTAL BOTTOM-PINNED FOOTER (css/main.css)
   ========================================================================== */

.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.main-content > section,
.hero-section {
    flex: 1 0 auto;
    width: 100%;
    padding: 3rem 4rem;
}

/* 100% Full-Width Bottom Pinned Footer */
.foot-container,
#footer-container {
    width: 100%;
    margin-top: auto;
}

.foot-container footer,
#footer-container footer,
footer.main-footer,
footer {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 1.5rem 2rem;
    margin: 0;
    border-radius: 0;
    display: block;
}

footer p,
.main-footer p {
    font-size: 0.9rem;
    color: var(--text-muted-dark);
    margin: 0;
    line-height: 1.5;
}

/* Hero Section Elements */
#home,
.hero-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 85vh;
    gap: 2rem;
}

.hero-content {
    flex: 1.2;
    width: 100%;
    /* max-width: 1000px; */
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.hero-content h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.hero-description,
.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
    line-height: 1.6;
}

/* Dedicated card container for home pillars */
.pillars-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
}

.pillars-list {
    margin: 0;
    padding-left: 1.25rem;
    list-style-type: disc;
}

.pillars-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 1rem;
}

.pillars-list li:last-child {
    margin-bottom: 0;
}

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

.repo-links-bar {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.repo-btn {
    background-color: #ffffff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.repo-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff !important;
}

/* Service Inline Card & Link Button */
.service-inline {
    background: #ffffff;
    border: 1px solid var(--card-border);
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-inline:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-inline h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.4rem 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.service-inline p {
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0;
    color: var(--text-dark);
}

.service-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.service-link-btn:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.service-link-btn i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.service-link-btn:hover i {
    transform: translateX(2px);
}

/* Card Micro-Interactions matching site-wide highlights styling */
.ai-tools-grid > *, 
.ai-tools-grid .tool-card, 
.ai-tools-grid .service-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.ai-tools-grid > *:hover, 
.ai-tools-grid .tool-card:hover, 
.ai-tools-grid .service-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* Responsive Layout */
@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .main-content > section,
    .hero-section {
        padding: 2rem 1.5rem;
    }

    .app-layout {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    #home,
    .hero-section {
        flex-direction: column;
        text-align: left;
        padding-top: 1rem;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .repo-links-bar {
        justify-content: flex-start;
    }

    .ai-tools-grid {
        grid-template-columns: 1fr;
    }
}