/* Homepage Styling - Categorized Model Layout */

:root {
    --hero-gradient-start: #1e3a5f;
    --hero-gradient-end: #3d5a80;
    --category-bg: #f8f9fa;
    --card-shadow: 0 4px 12px rgba(30, 58, 95, 0.08);
    --card-shadow-hover: 0 8px 24px rgba(30, 58, 95, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 70px 40px 60px;
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    border-radius: 24px;
    margin-bottom: 60px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(30, 58, 95, 0.15);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hero-description {
    font-size: 21px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.98);
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    line-height: 1.65;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

/* Category Sections */
.model-category {
    margin-bottom: 80px;
}

.category-header {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-description {
    font-size: 16px;
    color: #718096;
    font-weight: 400;
    line-height: 1.6;
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

/* Model Cards */
.model-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    height: 100%;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: #cbd5e0;
}

.model-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.08) 0%, rgba(61, 90, 128, 0.08) 100%);
}

.model-card-inner {
    padding: 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.model-icon-large {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    background: linear-gradient(135deg, #1e3a5f 0%, #3d5a80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: fit-content;
}

.model-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.model-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    line-height: 1.3;
}

.model-description {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.model-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #edf2f7;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #2d3748;
    transition: var(--transition-smooth);
}

.model-card:hover .feature-tag {
    background: #e2e8f0;
}

.model-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.model-cost {
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
    background: rgba(30, 58, 95, 0.08);
    padding: 6px 12px;
    border-radius: 8px;
}

.model-button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #3d5a80 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
}

.model-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.4);
}

.model-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .model-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .category-title {
        font-size: 24px;
    }

    .category-description {
        font-size: 14px;
    }

    .models-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .model-card.featured {
        grid-column: span 1;
    }

    .model-card-inner {
        padding: 20px;
    }

    .model-icon-large {
        font-size: 40px;
    }

    .model-title {
        font-size: 18px;
    }

    .model-description {
        font-size: 14px;
    }

    .model-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .model-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 15px;
    }

    .category-header {
        margin-bottom: 20px;
    }

    .model-category {
        margin-bottom: 50px;
    }
}

/* Animation on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.model-category {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.model-category:nth-child(1) {
    animation-delay: 0.1s;
}

.model-category:nth-child(2) {
    animation-delay: 0.2s;
}

.model-category:nth-child(3) {
    animation-delay: 0.3s;
}

.model-category:nth-child(4) {
    animation-delay: 0.4s;
}

.model-category:nth-child(5) {
    animation-delay: 0.5s;
}

/* Featured card special styling */
.model-card.featured .model-icon-large {
    font-size: 56px;
}

.model-card.featured .model-title {
    font-size: 26px;
}

.model-card.featured .model-description {
    font-size: 16px;
}

/* Hover effects for card content */
.model-card:hover .model-icon-large {
    transform: scale(1.1);
    transition: var(--transition-smooth);
}

.model-card:hover .model-title {
    color: #1e3a5f;
    transition: color 0.3s ease;
}

/* Footer adjustments */
.footer {
    margin-top: 80px;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    color: #718096;
    font-size: 14px;
}

/* Empty placeholder removal */
.model-placeholder {
    display: none;
}
