/* CSS Design System for TiZi Top (Premium Light Tech Theme) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-color: rgba(226, 232, 240, 0.8);
    --border-accent: rgba(99, 102, 241, 0.2);
    
    --primary: #4f46e5;       /* Tech Indigo */
    --primary-light: #6366f1;
    --primary-glow: rgba(79, 70, 229, 0.25);
    
    --secondary: #06b6d4;     /* Tech Cyan */
    --secondary-light: #22d3ee;
    --secondary-glow: rgba(6, 182, 212, 0.2);
    
    --text-primary: #0f172a;   /* Slate 900 */
    --text-secondary: #334155; /* Slate 700 */
    --text-muted: #64748b;     /* Slate 500 */
    
    --success: #10b981;
    --success-bg: #d1fae5;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --shadow-sm: 0 4px 12px rgba(148, 163, 184, 0.05);
    --shadow-md: 0 12px 32px rgba(148, 163, 184, 0.08);
    --shadow-lg: 0 24px 48px rgba(148, 163, 184, 0.12);
    --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.2);
    
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Canvas Background Styling */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: auto; /* Allows hover connection effects */
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.04) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
                #f8fafc;
}

/* Typography & Links */
h1, h2, h3, h4 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Header & Glassmorphism Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.site-header .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background-image: url('../images/logo-icon.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    transition: var(--transition);
}

.logo-link:hover .logo-icon {
    transform: scale(1.08) rotate(5deg);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.site-header nav {
    margin-left: auto;
    margin-right: 48px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 48px;
}

.nav-link {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: 400; /* Regular weight like Image 2 */
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}


.nav-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 8px 20px var(--primary-glow);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px var(--primary-glow), 0 0 15px var(--secondary-glow);
}

/* Fullscreen Hero Section (Portal Mode) */
.hero-portal {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    text-align: center;
    position: relative;
}

.hero-portal .hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--bg-surface);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 28px;
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.05em;
}

.hero-portal h1 {
    font-size: 4rem;
    font-weight: 900;
    max-width: 900px;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 70%, var(--secondary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: flowGradient 6s ease infinite;
}

@media (max-width: 768px) {
    .hero-portal h1 {
        font-size: 2.5rem;
    }
}

.hero-portal .hero-subtitle {
    font-size: 1.3rem;
    max-width: 750px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    line-height: 1.7;
    min-height: 4.5rem; /* Reserve space for typing */
}

/* Pulsing Neon CTA Buttons */
.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn-pulsing {
    position: relative;
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    color: white !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    overflow: hidden;
}

.btn-pulsing::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    transform: scale(0.5);
}

.btn-pulsing:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px var(--primary-glow), 0 0 25px var(--secondary-glow);
}

.btn-pulsing:hover::before {
    opacity: 1;
    transform: scale(1);
}

.btn-secondary-pulsing {
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    color: var(--text-primary) !important;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-secondary-pulsing:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

/* Portal Menu Tiles Grid (Tile Card Layout) */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1100px;
    margin-bottom: 80px;
}

.portal-card {
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 220px;
}

/* Staggered Floating Keyframes */
.portal-card:nth-child(1) { animation: float-1 6s ease-in-out infinite; }
.portal-card:nth-child(2) { animation: float-2 6.5s ease-in-out infinite; }
.portal-card:nth-child(3) { animation: float-1 7s ease-in-out infinite; }
.portal-card:nth-child(4) { animation: float-2 7.5s ease-in-out infinite; }

.portal-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.portal-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background-color: var(--bg-surface);
}

.portal-card:hover::after {
    opacity: 1;
}

.portal-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.3rem;
}

.portal-card:hover .portal-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.portal-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.portal-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.portal-arrow {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.portal-card:hover .portal-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Scroll Down Chevron indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    margin-top: 4px;
}

/* Sub-page Specific Layout Styles */
.page-header-section {
    padding: 120px 0 50px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.4);
}

.page-header-section h1 {
    font-size: 2.75rem;
    margin-bottom: 12px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Common Section Styles */
.section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Card Grid & Card Design */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card:hover::before {
    opacity: 1;
}

.card-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.tag-hot { background-color: var(--danger-bg); color: var(--danger); }
.tag-stable { background-color: var(--success-bg); color: var(--success); }
.tag-pro { background-color: var(--primary-glow); color: var(--primary); }

.card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.card-features {
    list-style: none;
    margin-bottom: 24px;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.card-features li svg {
    color: var(--success);
    width: 16px;
    height: 16px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.card-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.card-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Comparison Table Design */
.table-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    background-color: var(--bg-surface);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-select {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-base);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.table-wrapper {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

.compare-table th {
    background-color: #fafbfc;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 18px 24px;
    border-bottom: 2px solid var(--border-color);
}

.compare-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    vertical-align: middle;
}

.compare-table tbody tr {
    transition: var(--transition);
}

.compare-table tbody tr:hover {
    background-color: rgba(247, 249, 251, 0.7);
}

.provider-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.provider-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
}

.provider-name {
    font-weight: 600;
    color: var(--text-primary);
}

.badge-protocol {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f1f5f9;
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 4px;
    margin-bottom: 4px;
}

.unlock-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-unlock {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.unlock-yes { background-color: var(--success-bg); color: var(--success); }
.unlock-no { background-color: var(--danger-bg); color: var(--danger); }

.btn-detail {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.btn-detail:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--primary-glow);
}

/* FAQ Accordion Design */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.faq-question-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    outline: none;
}

.faq-question-btn h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.faq-question-btn:hover h3 {
    color: var(--primary);
}

.faq-icon {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    padding: 0 24px;
    background-color: #fafbfc;
}

.faq-answer p {
    padding-bottom: 24px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Active FAQ State */
.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    stroke: var(--primary);
}

.faq-item.active .faq-answer {
    padding-top: 10px;
}

/* EEAT Disclaimer Section */
.eeat-section {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-top: 40px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.eeat-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--success);
    background-color: var(--success-bg);
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.eeat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.eeat-item h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.eeat-item h3 svg {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.eeat-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.eeat-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.eeat-link {
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Standard Pages layout (About / Disclosure) */
.page-container {
    padding: 120px 0 100px;
    max-width: 1560px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.page-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
}

.page-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.page-content h2 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-content li {
    margin-bottom: 8px;
}

/* Site Footer */
.site-footer {
    background-color: var(--text-primary);
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-column h4 {
    color: white;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

.footer-copy {
    color: #64748b;
}

/* Keyframes Animations */
@keyframes flowGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

@keyframes float-1 {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

@keyframes float-2 {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Homepage Body Fullscreen */
.homepage-body {
    overflow: hidden !important;
    height: 100vh !important;
}

.homepage-body .site-footer {
    display: none; /* Hide footer on home page as it's only hero screen */
}

/* Blog Layout & Sidebar Widgets */
.blog-layout {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    align-items: flex-start;
}

.blog-main {
    flex: 3.2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

@media (max-width: 992px) {
    .blog-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .blog-sidebar {
        position: static;
        order: 2;
    }
}

.widget-card {
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.widget-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.widget-profile {
    text-align: center;
    padding: 32px 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background-image: url('../images/logo-icon.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    display: inline-flex;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
    transition: var(--transition);
}

.widget-card:hover .profile-avatar {
    transform: scale(1.05) rotate(3deg);
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.profile-bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.widget-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.announcement-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.info-label {
    color: var(--text-muted);
}

.info-value {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Post Cards in Blog List */
.post-card {
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary-light);
}

.post-title {
    font-size: 1.45rem;
    font-weight: 800;
}

.post-title a {
    color: var(--text-primary);
}

.post-title a:hover {
    color: var(--primary);
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.post-more {
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.post-more:hover {
    color: var(--primary-light);
}
