/* public/assets/css/ai-models.css */

:root {
    --bg-light: #ffffff;
    --bg-off: #f9fafb; /* Very light gray for alternate sections */
    --primary-black: #000000; /* Core Brand Color */
    --primary-dark-grey: #000000;
    --text-main: #000000;
    --text-muted: #6b7280;
    --border-light: #e5e7eb;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

/* --- ANIMATIONS --- */
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes pulse-grey {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* --- HERO SECTION --- */
/* Matches the "AI Chatbots" dark hero style but in pure black */
.model-hero {
    position: relative;
    padding: 160px 20px 100px; /* More top padding for navbar */
    background: var(--primary-black);
    color: white;
    text-align: center;
    overflow: hidden;
}

/* Subtle Network Background - changed to White/Grey opacity */
.neural-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image:
        radial-gradient(circle at 20% 20%, #ffffff 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, #ffffff 0%, transparent 20%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.model-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
}

/* --- INTERACTIVE SUGGESTION ENGINE --- */
.suggestion-section {
    padding: 100px 20px;
    background: var(--bg-off);
}

.recommender-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 0; /* Aivanta theme uses sharp or slightly rounded corners */
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--border-light);
}

/* Left Side: User Needs */
.rec-sidebar {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    padding: 40px;
    border-right: 1px solid var(--border-light);
}

.rec-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--primary-black);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.need-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 6px; /* Slight radius */
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.need-btn:hover {
    background: #f4f4f5;
    border-color: #000;
    transform: translateX(4px);
}

.need-btn.active {
    background: var(--primary-black);
    color: white;
    border-color: var(--primary-black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Right Side: AI Suggestion */
.rec-display {
    flex: 1.5;
    min-width: 300px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: #f9fafb; /* Slight contrast */
}

.model-card-display {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: none;
}

.model-card-display.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.model-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-block;
    animation: float 3s infinite ease-in-out;
    filter: grayscale(100%); /* Keeps icons monochrome */
}

.model-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 15px;
}

.model-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.tech-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #ffffff;
    color: var(--primary-black);
    border: 1px solid #000000;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 4px;
    text-transform: uppercase;
}

/* --- GRID SHOWCASE --- */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.grid-card:hover {
    border-color: var(--primary-black);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.grid-card h3 {
    color: var(--primary-black);
    font-weight: 700;
}

/* --- CTA (Call to Action) --- */
.cta-box {
    background: var(--primary-black);
    padding: 100px 20px;
    text-align: center;
    color: white;
}

.cta-btn {
    background: white;
    color: var(--primary-black);
    padding: 16px 45px;
    border-radius: 50px; /* Pill shape matches AivantaLoop style */
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.cta-btn:hover {
    background: transparent;
    color: white;
    transform: scale(1.02);
}

/* =========================================
   HERO FIX FOR LAPTOPS & TABLETS (1040px - 770px)
   ========================================= */

@media screen and (max-width: 1040px) {
    /* 1. Adjust Hero Padding */
    .model-hero {
        padding: 140px 20px 80px; /* Reduced top padding slightly */
    }

    /* 2. Force Vertical Stacking (Badge Top, Title Bottom) */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    /* 3. Badge Styling */
    .model-badge {
        order: -1; /* visually moves it to the top */
        margin-bottom: 20px;
        display: inline-block;
        width: auto;
        font-size: 0.8rem; /* Slightly smaller for tablets */
        padding: 6px 16px;
    }

    /* 4. Title Styling */
    .hero-title {
        font-size: clamp(2.2rem, 5vw, 3.5rem); /* Fluid font size */
        line-height: 1.1;
        width: 100%;
        margin-top: 0;
        margin-bottom: 15px;
        max-width: 90%; /* Prevents edge-to-edge text */
    }

    /* 5. Adjust Description Text (if any exists in your HTML) */
    .hero-content p {
        font-size: 1rem;
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }
}

/* =========================================
   MOBILE TWEAKS (480px and below)
   ========================================= */
@media screen and (max-width: 480px) {
    .model-hero {
        padding: 120px 20px 60px;
    }

    .hero-title {
        font-size: 2rem; /* Hard set for mobile readability */
    }

    .model-badge {
        font-size: 0.75rem;
    }
}

/* Mobile Tweak: Revert Hero to standard center on small screens */
@media screen and (max-width: 768px) {
    .hero-content p {
        text-align: center !important;
        text-align-last: center !important;
    }
}
