/* --- FutureGlob AISys Nexus Page Specific Styles --- */

.nexus-page {
    /* Remove page-specific body padding since base.css handles it */
}

.nexus-page h1, 
.nexus-page h2, 
.nexus-page h3 {
    font-family: 'Amaranth', sans-serif;
}

/* Remove duplicate header styles - base.css handles it */

.nexus-page #nexus-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.7rem 0 !important;
    margin: 0 !important;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
                url('/nexus_bg.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    filter: brightness(1.2);
    margin-top: -118px; /* Remove gap */
}

.nexus-page #nexus-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

.nexus-page #nexus-hero .hero-content {
    max-width: 800px;
    margin: auto;
    z-index: 1;
    background: rgba(0, 0, 0, 0.08); 
    padding: 2.2rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); 
}

.nexus-page #nexus-hero .hero-tagline {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Consistent shadow */
}

.nexus-page #nexus-hero .hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Consistent shadow */
}

/* Use base.css styles for overview and features */
.nexus-page #overview {
    background-color: var(--background-color);
}

.nexus-page #capabilities {
    background-color: var(--surface-color);
}

.nexus-page .capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.nexus-page .capability-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 400px; /* Added minimum height for consistency */
    justify-content: flex-start; /* Added for better content alignment */
}

.nexus-page .capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

.nexus-page .capability-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    margin-top: 0; /* Added to prevent margin collapse */
}

.nexus-page .capability-card p {
    color: var(--text-muted-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6; /* Added for better readability */
    flex-grow: 0; /* Prevent text from expanding */
}

.nexus-page .capability-image {
    width: 100%;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    flex-grow: 1; /* Allow image to take remaining space */
    display: flex;
    align-items: center;
}

.nexus-page .capability-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.nexus-page .capability-card:hover .capability-image img {
    transform: scale(1.02);
}

.nexus-page .feature-list {
    list-style: none;
    margin: 1rem 0 0 0;
    padding: 0;
    text-align: left;
    width: 100%;
}

.nexus-page .feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-color);
}

.nexus-page .feature-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
    .nexus-page .capabilities-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 768px) {
    .nexus-page #nexus-hero {
        margin-top: -108px;
        padding: 130px 1rem 2rem;
    }
    
    .nexus-page #nexus-hero .hero-content {
        padding: 1.5rem 1rem;
        background: rgba(0, 0, 0, 0.12); 
    }
    
    .nexus-page #nexus-hero .hero-tagline {
        font-size: 2.5rem;
    }

    .nexus-page #nexus-hero .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .nexus-page #nexus-hero {
        padding: 3rem 1rem;
    }

    .nexus-page .hero-content {
        padding: 1.5rem 1rem;
    }

    .nexus-page #nexus-hero .hero-tagline {
        font-size: 2rem;
    }

    .nexus-page .capability-card {
        padding: 1.2rem;
    }
}