/* --- Modern Variables & Reset --- */
:root {
    --main: #27ae60;
    --main-dark: #1e8449;
    --main-light: #e8f5e9;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --bg: #f1f5f9;
    --text: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glass: rgba(255, 255, 255, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background: var(--bg); 
    font-family: 'Inter', 'Poppins', sans-serif; 
    color: var(--text); 
    line-height: 1.6;
    overflow-x: hidden;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 25px; }

/* --- Premium Header --- */
.main-header { 
    background: var(--glass); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0; 
    border-bottom: 1px solid rgba(226, 232, 240, 0.8); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 30px; font-weight: 800; color: var(--dark); letter-spacing: -1.5px; }
.logo span { color: var(--main); }
.nav-links a { 
    margin-left: 25px; 
    text-decoration: none; 
    color: var(--dark-light); 
    font-weight: 600; 
    font-size: 14px; 
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}
.nav-links a:hover, .nav-links a.active { color: var(--main); background: var(--main-light); }

/* --- Layout Structure --- */
.portal-layout { 
    display: grid; 
    grid-template-columns: 1fr 340px; 
    gap: 35px; 
    margin: 30px auto; 
}

/* --- Hero Banner (Premium Design) --- */
.hero-banner { 
    background: linear-gradient(135deg, var(--dark) 0%, #2c3e50 100%); 
    padding: 80px 50px; 
    border-radius: 35px; 
    color: var(--white); 
    margin-bottom: 40px; 
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 300px; height: 300px;
    background: rgba(39, 174, 96, 0.15);
    filter: blur(80px);
    border-radius: 50%;
}
.hero-banner h1 { font-size: 42px; margin-bottom: 15px; font-weight: 800; letter-spacing: -1px; }
.hero-banner p { opacity: 0.9; font-size: 18px; max-width: 600px; }

/* --- Section Headers --- */
.block-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.5);
}
.section-title { 
    font-size: 26px; 
    font-weight: 800; 
    color: var(--dark); 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}
.section-title span { background: var(--main-light); padding: 8px; border-radius: 12px; font-size: 24px; }
.see-all { 
    color: var(--main); 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 15px;
    padding: 8px 18px;
    background: var(--main-light);
    border-radius: 50px;
    transition: 0.3s;
}
.see-all:hover { background: var(--main); color: var(--white); transform: scale(1.05); }

/* --- Featured Crawler (Heavy Look) --- */
.featured-crawler-box {
    background: var(--white);
    padding: 30px;
    border-radius: 30px;
    margin-bottom: 45px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(241, 245, 249, 1);
}
.crawler-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 10px 5px 25px 5px;
    scrollbar-width: none; /* Hide scrollbar for Chrome/Safari below */
}
.crawler-wrapper::-webkit-scrollbar { display: none; }

.crawler-item {
    min-width: 300px;
    background: #fdfdfd;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f5f9;
}
.crawler-item:hover {
    background: var(--white);
    border-color: var(--main);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.crawler-item img {
    width: 80px; height: 80px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.crawler-info h3 { font-size: 16px; color: var(--dark); margin-bottom: 5px; font-weight: 700; }

/* --- App Grid & Modern Cards --- */
.app-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); 
    gap: 25px; 
}
.app-card { 
    background: var(--white); 
    border-radius: 28px; 
    padding: 25px; 
    border: 1px solid #f1f5f9; 
    text-align: center; 
    transition: 0.4s; 
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}
.app-card:hover { transform: translateY(-12px); box-shadow: var(--shadow); border-color: var(--main-light); }

.app-card img { 
    width: 110px; height: 110px; 
    border-radius: 30px; 
    margin-bottom: 20px; 
    object-fit: cover; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.app-card h3 { 
    font-size: 17px; font-weight: 700; color: var(--dark); 
    margin-bottom: 12px; height: 45px; overflow: hidden; 
}
.category-tag { 
    font-size: 11px; font-weight: 700; color: var(--main); 
    background: var(--main-light); padding: 6px 14px; 
    border-radius: 10px; display: inline-block; margin-bottom: 20px;
    text-transform: uppercase;
}
.view-btn { 
    display: block; background: var(--dark); color: var(--white); 
    text-decoration: none; padding: 14px; border-radius: 16px; 
    font-size: 14px; font-weight: 700; transition: 0.3s; 
}
.app-card:hover .view-btn { background: var(--main); box-shadow: 0 10px 15px rgba(39, 174, 96, 0.3); }

/* --- Structured Specifications --- */
.app-detail-header { 
    background: var(--white); padding: 45px; border-radius: 35px; 
    box-shadow: var(--shadow); margin-bottom: 40px; border: 1px solid #f1f5f9;
}
.specs-grid { 
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; 
    background: #f8fafc; padding: 35px; border-radius: 30px; 
    border: 1px solid #edf2f7; margin: 30px 0;
}
.spec-item { 
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1.5px solid rgba(226, 232, 240, 0.6); padding: 18px 5px; 
}
.spec-item strong { color: var(--text-muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.spec-item span { color: var(--dark); font-weight: 700; font-size: 16px; }

/* --- Footer Categories (Professional Grid) --- */
.bottom-categories-section {
    margin-top: 60px; padding: 40px; background: var(--white);
    border-radius: 35px; box-shadow: var(--shadow); border: 1px solid #f1f5f9;
}
.bottom-cat-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.cat-pill {
    background: #f8fafc; color: var(--text); padding: 12px 24px;
    border-radius: 18px; text-decoration: none; font-size: 15px;
    font-weight: 600; transition: 0.3s; border: 1.5px solid #e2e8f0;
}
.cat-pill:hover {
    background: var(--main); color: var(--white);
    border-color: var(--main); transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(39, 174, 96, 0.2);
}

/* --- Sidebar (Sticky & Clean) --- */
.sidebar-side { position: sticky; top: 100px; height: fit-content; }
.widget { 
    background: var(--white); padding: 35px; border-radius: 30px; 
    margin-bottom: 30px; box-shadow: var(--shadow); border: 1px solid #f1f5f9; 
}
.widget h3 { 
    font-size: 20px; font-weight: 800; margin-bottom: 25px; 
    color: var(--dark); border-left: 6px solid var(--main); padding-left: 18px; 
}
.cat-list a { 
    display: flex; justify-content: space-between;
    text-decoration: none; color: var(--text-muted); font-size: 15px; 
    font-weight: 600; transition: 0.3s; padding: 12px 0;
    border-bottom: 1px solid #f8fafc;
}
.cat-list a:hover { color: var(--main); padding-left: 10px; }

/* --- Professional Footer --- */
.main-footer { background: var(--dark); color: #94a3b8; padding: 100px 0 50px 0; margin-top: 100px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; padding-bottom: 50px; border-bottom: 1px solid #1e293b; }
.footer-about .logo { color: var(--white); margin-bottom: 25px; }
.footer-links-box h4 { color: var(--white); margin-bottom: 30px; font-size: 18px; font-weight: 700; }
.footer-links-box ul { list-style: none; }
.footer-links-box li { margin-bottom: 15px; }
.footer-links-box a { color: #94a3b8; text-decoration: none; font-size: 15px; transition: 0.3s; }
.footer-links-box a:hover { color: var(--main); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 40px; font-size: 14px; opacity: 0.8; }

/* --- Responsive Fixes --- */
@media (max-width: 1024px) {
    .portal-layout { grid-template-columns: 1fr; }
    .sidebar-side { position: relative; top: 0; }
}
@media (max-width: 768px) {
    .hero-banner { padding: 50px 30px; }
    .hero-banner h1 { font-size: 32px; }
    .specs-grid { grid-template-columns: 1fr; }
}