/* Homepage Styles */
.public-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-navbar {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.public-navbar .navbar-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s;
}

.public-navbar .navbar-brand:hover {
    opacity: 0.9;
}

.brand-text {
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-actions .btn {
    font-weight: 500;
}

.public-content {
    flex: 1;
}

.home-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="rgba(255,255,255,0.05)" d="M0,0 L1200,0 L1200,60 Q900,120 600,60 T0,60 Z"/></svg>');
    background-size: cover;
    opacity: 0.5;
}

.home-hero .hero-content {
    width: 60vw;          /* 60% of the viewport width */
    max-width: 1200px;    /* keep an upper bound for very large screens */
    margin: 0 auto;       /* center horizontally */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Ensure text container doesn't force wrapping due to intrinsic width */
.hero-text-container {
    min-width: 0; /* allows flex/grid children to shrink properly */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.gradient-text {
    background: linear-gradient(45deg, #ffd700, #ffed4e, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite;
}

.solid-text {
    /* Set the background to the solid color (start of the original gradient) */
    background: #ffd700;
    /* These properties are crucial for applying the background to the text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Standard property for non-webkit browsers */
    /* Keep the animation */
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;   /* same as .mission-text */
    line-height: 1.8;    /* same as .mission-text */
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
    max-width: 90%;
    text-align: left;
}

/* Optional: keep mobile readable; matches mission-text scale */
@media (max-width: 768px) {
    .hero-description {
        font-size: 1.1rem;
        max-width: 100%;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: nowrap;      /* Prevent wrapping to next line */
    align-items: center;
    gap: 1rem;              /* Consistent spacing between buttons */
}

.hero-buttons .btn {
    flex-shrink: 0;         /* Prevent buttons from shrinking too small */
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.hero-buttons .btn-primary {
    background: linear-gradient(45deg, #0d6efd, #6610f2);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.6);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Mobile: stack buttons vertically */
@media (max-width: 768px) {
    .home-hero .hero-content {
        width: 100vw;     /* full width on small screens */
        grid-template-columns: 1fr; /* stack graphic under text */
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
        flex-shrink: 1;
    }
}

.neural-network-container {
    perspective: 1000px;
}

.neural-network {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(10deg); }
}

.network-node {
    animation: pulse 2s ease-in-out infinite;
}

.network-line {
    animation: flow 3s linear infinite;
}

@keyframes pulse {
    0%, 100% { r: 8; }
    50% { r: 10; }
}

@keyframes flow {
    0% { stroke-dasharray: 0, 100; }
    100% { stroke-dasharray: 100, 0; }
}

.features-section {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    background: linear-gradient(45deg, #0d6efd, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.8;
}

.mission-section {
    padding: 5rem 2rem;
    background: white;
}

.mission-graphic svg {
    width: 100%;
    height: auto;
    animation: float 8s ease-in-out infinite;
}

.mission-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.mission-title .gradient-text {
    /* Match hero-title typography */
    background: none;                    /* remove gradient */
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: #ffffff;                      /* solid white to match the hero header's non-gradient text */
    font-size: 3.5rem;                   /* match .hero-title size */
    font-weight: 800;                    /* match .hero-title weight */
    line-height: 1.2;
    display: inline-block;  /* ensure proper rendering inside the h2 */
}

/* Optional: scale down on smaller screens to keep layout balanced */
@media (max-width: 768px) {
    .mission-title .gradient-text {
        font-size: 2.5rem;  /* align with .hero-title mobile scaling */
    }
}

.mission-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.5rem;
}

.benefits-section {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.benefit-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 1.5rem;
    color: #198754;
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.benefit-item p {
    color: #6c757d;
    margin-bottom: 0;
}

.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons .btn {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.cta-buttons .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.4);
}

.cta-buttons .btn-outline-light {
    border-width: 2px;
}

.cta-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.public-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-link {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    .section-title, .mission-title, .cta-title {
        font-size: 2rem;
    }
}