/* Home Page Styles */

/* Hero Section */
.hero { 
    position: relative;
    padding: 7rem 2rem 6rem; 
    text-align: center; 
    color: #fff; 
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}
.hero h1 { 
    font-size: 3.8rem; 
    margin-bottom: 1.2rem; 
    font-weight: 700; 
    font-family: 'Noto Serif SC', serif;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { 
    font-size: 1.25rem; 
    color: rgba(255,255,255,0.7); 
    max-width: 650px; 
    margin: 0 auto 3rem;
    line-height: 1.8;
}
.hero .stats { 
    display: flex; 
    justify-content: center; 
    gap: 5rem; 
    margin-top: 3rem;
}
.hero .stat-item { 
    text-align: center;
    position: relative;
}
.hero .stat-item::after {
    content: '';
    position: absolute;
    right: -2.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
}
.hero .stat-item:last-child::after {
    display: none;
}
.hero .stat-item .number { 
    font-size: 3rem; 
    font-weight: 700; 
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .stat-item .label { 
    font-size: 0.95rem; 
    color: rgba(255,255,255,0.6); 
    margin-top: 0.5rem;
    font-weight: 500;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
}
.hero-cta .btn {
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.hero-cta .btn-primary {
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}
.hero-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}
.hero-cta .btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}
.hero-cta .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

/* Category Section */
.category-section { 
    padding: 5rem 2rem; 
    background: #fff;
}
.category-section .container { max-width: 1400px; margin: 0 auto; }
.category-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 1.5rem; 
}
.category-card { 
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); 
    border-radius: 16px; 
    padding: 2rem 1.5rem; 
    text-align: center; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    cursor: pointer; 
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066ff, #00d4ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.category-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
    background: #fff;
}
.category-card:hover::before {
    opacity: 1;
}
.category-card .icon { 
    font-size: 2.8rem; 
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}
.category-card:hover .icon {
    transform: scale(1.1);
}
.category-card .name { 
    font-size: 1.15rem; 
    font-weight: 600; 
    color: #1a1a2e; 
}
.category-card .count { 
    font-size: 0.9rem; 
    color: #64748b; 
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Featured Works Section */
.featured-section { 
    padding: 5rem 2rem; 
    background: #f8fafc; 
}
.featured-section .container { max-width: 1400px; margin: 0 auto; }
.featured-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 2rem; 
}
.work-card { 
    background: #fff; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); 
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
    cursor: pointer;
    border: 1px solid #e2e8f0;
    display: block;
    text-decoration: none;
    color: inherit;
}
.work-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}
.work-card .cover { 
    height: 240px; 
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}
.work-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.work-card:hover .cover img {
    transform: scale(1.05);
}
.work-card .cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.work-card:hover .cover::after {
    opacity: 1;
}
.work-card .cover .year { 
    position: absolute; 
    top: 14px; 
    right: 14px; 
    background: rgba(255,255,255,0.95); 
    color: #0066ff; 
    padding: 0.4rem 0.9rem; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    font-weight: 600;
    backdrop-filter: blur(10px);
}
.work-card .cover .category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}
.work-card .info { 
    padding: 1.5rem; 
}
.work-card .info h3 { 
    font-size: 1.15rem; 
    margin-bottom: 0.6rem; 
    color: #1a1a2e; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap;
    font-weight: 600;
}
.work-card .info .architect { 
    font-size: 0.9rem; 
    color: #475569; 
    margin-bottom: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.work-card .info .architect::before {
    content: '👤';
    font-size: 0.8rem;
}
.work-card .info .location { 
    font-size: 0.85rem; 
    color: #94a3b8; 
    display: flex; 
    align-items: center; 
    gap: 0.4rem;
    font-weight: 500;
}
.work-card .info .location::before { 
    content: '📍'; 
}

/* Trending Section */
.trending-section { 
    padding: 5rem 2rem; 
    background: #fff;
}
.trending-section .container { max-width: 1400px; margin: 0 auto; }
.trending-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 1.8rem; 
}
.architect-card { 
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%); 
    border-radius: 16px; 
    padding: 2rem 1.5rem; 
    text-align: center; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
    cursor: pointer;
    border: 1px solid #e2e8f0;
}
.architect-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}
.architect-card .avatar { 
    width: 90px; 
    height: 90px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%); 
    margin: 0 auto 1.2rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2.5rem; 
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25);
    overflow: hidden;
}
.architect-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.architect-card .name { 
    font-size: 1.2rem; 
    font-weight: 600; 
    color: #1a1a2e;
    font-family: 'Noto Serif SC', serif;
}
.architect-card .en-name { 
    font-size: 0.85rem; 
    color: #64748b; 
    margin-bottom: 0.8rem; 
}
.architect-card .works { 
    display: inline-block;
    font-size: 0.85rem; 
    color: #0066ff; 
    font-weight: 600;
    padding: 0.4rem 1rem;
    background: rgba(0, 102, 255, 0.08);
    border-radius: 20px;
}

/* News Card (variant of architect-card) */
.news-card {
    text-align: left;
    padding: 1.5rem;
}
.news-card .news-title {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    text-align: left;
}
.news-card .news-summary {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card .news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #94a3b8;
}
.news-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.25);
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.35);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .stats { gap: 2.5rem; flex-wrap: wrap; }
    .hero .stat-item::after { display: none; }
    .hero-cta { flex-direction: column; align-items: center; }
}

/* Firm Section Variant */
.trending-section-alt {
    background: #f8fafc;
}
.avatar-rounded {
    border-radius: 20px !important;
}

/* News Card Variants */
.architect-card-news {
    text-align: left;
    padding: 1.5rem;
}
.news-title {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    text-align: left;
}
.news-summary {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #94a3b8;
}
.news-more {
    text-align: center;
    margin-top: 2rem;
}

/* CTA Link */
.cta-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.25);
}
.cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.35);
}
