/* =========================================
   BASE VARIABLES & RESET (PREMIUM SAAS LOOK)
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --blue: #2563EB;
    --blue-dark: #1E40AF;
    --navy: #0F172A;
    --orange: #F97316;
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --text: #1E293B;
    --muted: #64748B;
    --border: #E2E8F0;
    --gradient-brand: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    --gradient-text: linear-gradient(90deg, #F97316 0%, #F59E0B 100%);
    --shadow-soft: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 20px 40px -5px rgba(37, 99, 235, 0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* =========================================
   SCROLL REVEAL ANIMATIONS
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   NAVIGATION & HEADER (GLASSMORPHISM)
========================================= */
.top { background: var(--navy); color: #CBD5E1; padding: 8px 5%; font-size: 13px; display: flex; justify-content: space-between; font-weight: 500; }
.social-links span { color: #fff; cursor: pointer; transition: color 0.3s; }
.social-links span:hover { color: var(--orange); }

.nav {
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%; border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky; top: 0; z-index: 1000;
}

.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 26px; color: var(--navy); letter-spacing: -0.5px; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { color: var(--blue); }

.menu { display: flex; gap: 8px; align-items: center; }
.menu a { font-size: 15px; font-weight: 600; color: var(--muted); padding: 8px 16px; border-radius: 8px; }
.menu a:hover, .menu a.active { color: var(--blue); background: #EFF6FF; }

.hamburger { display: none; font-size: 26px; background: none; border: none; color: var(--navy); cursor: pointer; }

/* =========================================
   PREMIUM HERO SECTION
========================================= */
.hero {
    background: var(--navy); position: relative; padding: 80px 5% 120px;
    text-align: center; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    top: -200px; left: -200px; border-radius: 50%;
}
.hero::after {
    content: ''; position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 70%);
    bottom: -200px; right: -200px; border-radius: 50%;
}

.hero-content { position: relative; z-index: 2; max-width: 900px; margin: auto; }

.badge {
    display: inline-block; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #F8FAFC; padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600;
    margin-bottom: 25px; backdrop-filter: blur(4px);
}

.hero h1 { font-size: 52px; font-weight: 800; color: #fff; margin: 0 0 15px; line-height: 1.2; letter-spacing: -1px; }
.gradient-text { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 19px; color: #94A3B8; margin: 0 0 40px; font-weight: 500; }

.search-wrapper { max-width: 800px; margin: auto; padding: 8px; background: rgba(255, 255, 255, 0.05); border-radius: 20px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); }
.search { background: #fff; border-radius: 14px; display: flex; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.search input, .search select { border: 0; outline: 0; padding: 18px 24px; font-size: 16px; font-family: inherit; color: var(--navy); }
.search input { flex: 1; border-radius: 14px 0 0 14px; }
.search select { max-width: 180px; cursor: pointer; border-left: 1px solid var(--border); font-weight: 500; }
.search button { border: 0; background: var(--blue); color: white; padding: 0 35px; border-radius: 12px; font-weight: 700; font-size: 16px; cursor: pointer; margin: 6px; transition: all 0.3s; }
.search button:hover { background: var(--blue-dark); box-shadow: 0 0 15px rgba(37,99,235,0.5); transform: translateY(-1px); }

.trends { margin-top: 30px; font-size: 14px; color: #94A3B8; }
.trend { display: inline-block; padding: 6px 14px; margin: 4px; color: #CBD5E1; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; transition: all 0.3s; cursor: pointer; }
.trend:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* =========================================
   FLOATING QUICK LINKS (APP PILLS)
========================================= */
.quick-wrapper { max-width: 1200px; margin: -50px auto 40px; padding: 0 20px; position: relative; z-index: 10; }
.quick { background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--shadow-soft); display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; border: 1px solid var(--border); }
.quick a { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--navy); transition: all 0.3s; }
.quick a:hover { background: #EFF6FF; border-color: #BFDBFE; color: var(--blue); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37,99,235,0.15); }
.icon { font-size: 18px; }

/* =========================================
   PORTAL GRID & PREMIUM CARDS
========================================= */
.container { max-width: 1200px; margin: auto; padding: 0 20px 60px; }
.portal-grid { column-count: 2; column-gap: 25px; }

.portal-column {
    background: var(--card); border-radius: 20px; padding: 0; display: flex; flex-direction: column;
    break-inside: avoid; margin-bottom: 25px; border: 1px solid var(--border);
    box-shadow: var(--shadow-soft); overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.portal-column:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

/* Premium Dark Gradient Header */
.col-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 24px; margin: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    border-bottom: 3px solid var(--orange);
}
.col-head h2 { margin: 0; font-size: 18px; color: #fff !important; display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.3px; }

/* Stylish Filter Dropdown on Dark Header */
.mini-filter {
    padding: 8px 14px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
    outline: none; appearance: none; backdrop-filter: blur(5px); transition: all 0.2s;
}
.mini-filter option { color: var(--navy); }
.mini-filter:hover { background: rgba(255,255,255,0.2); }

/* Clean List Styles with Hover Animation */
.link-list { list-style: none; padding: 10px 24px 24px; margin: 0; }
.link-list li { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px dashed var(--border); padding: 16px 0; gap: 15px; }
.link-list li:last-child { border-bottom: none; padding-bottom: 0; }

.link-list a { color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.5; flex: 1; transition: transform 0.2s, color 0.2s; }
.link-list a:hover { color: var(--blue); transform: translateX(6px); }

.list-date { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--bg); padding: 5px 10px; border-radius: 6px; white-space: nowrap; margin-top: 2px; border: 1px solid var(--border); }
.new-badge { background: #EF4444; color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 10px; font-weight: 800; margin-left: 6px; vertical-align: middle; box-shadow: 0 2px 5px rgba(239,68,68,0.3); }

/* Premium View All Button */
.view-all-btn { 
    display: block !important; background: var(--bg); color: var(--blue) !important; 
    padding: 14px 20px !important; border-radius: 12px; font-size: 14px !important; font-weight: 700 !important; 
    text-align: center; border: 1px solid var(--border); margin-top: 10px; transition: all 0.3s ease !important;
}
.view-all-btn:hover { 
    background: var(--blue); color: #fff !important; 
    box-shadow: 0 10px 20px rgba(37,99,235,0.3); transform: translateY(-3px); 
}

/* =========================================
   GLOWING SUBSCRIBE SECTION
========================================= */
.subscribe {
    max-width: 1160px; margin: 40px auto 80px;
    background: var(--navy); color: #fff;
    padding: 60px 50px; border-radius: 24px;
    display: flex; justify-content: space-between; align-items: center; gap: 40px;
    position: relative; overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15,23,42,0.4);
}
.subscribe::before { content: ''; position: absolute; top: -50%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(37,99,235,0.4) 0%, transparent 70%); z-index: 1; }
.subscribe-content { position: relative; z-index: 2; max-width: 500px; }
.subscribe h2 { margin: 0 0 12px; font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.subscribe p { margin: 0; color: #94A3B8; font-size: 17px; }

.subform { display: flex; background: rgba(255,255,255,0.1); border-radius: 16px; padding: 8px; max-width: 450px; width: 100%; position: relative; z-index: 2; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); }
.subform input { flex: 1; border: 0; outline: 0; padding: 16px 20px; font-size: 15px; color: #fff; background: transparent; }
.subform input::placeholder { color: #94A3B8; }
.subform button.btn { background: var(--blue); color: #fff; padding: 14px 35px; border-radius: 12px; font-weight: 700; border: none; cursor: pointer; transition: all 0.3s; }
.subform button.btn:hover { background: var(--orange); box-shadow: 0 0 15px rgba(249,115,22,0.5); transform: translateY(-2px); }

/* =========================================
   CLEAN FOOTER
========================================= */
.footer { background: #fff; color: var(--text); padding: 60px 5% 30px; border-top: 1px solid var(--border); }
.footergrid { max-width: 1200px; margin: auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand-col p { color: var(--muted); font-size: 15px; margin-top: 15px; max-width: 280px; }
.footer h3 { color: var(--navy); font-size: 16px; margin-bottom: 20px; }
.footer a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
.footer a:hover { color: var(--orange); padding-left: 5px; }
.admin-link { display: inline-block; margin-top: 10px; background: var(--bg); color: var(--navy) !important; padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: 13px; border: 1px solid var(--border); transition: all 0.3s; }
.admin-link:hover { background: var(--navy); color: #fff !important; box-shadow: 0 8px 15px rgba(15,23,42,0.2); transform: translateY(-2px); }
.copy { border-top: 1px solid var(--border); margin-top: 50px; padding-top: 25px; text-align: center; font-size: 14px; color: var(--muted); font-weight: 500; }

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */
@media(max-width: 1024px) {
    .portal-grid { column-count: 2; }
    .hero h1 { font-size: 42px; }
}
@media(max-width: 900px) {
    .hero { padding: 50px 5% 100px; }
    .hero h1 { font-size: 36px; }
    .footergrid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .portal-grid { column-count: 1; }
    .hamburger { display: block; }
    .menu { display: none; position: absolute; top: 80px; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 20px; margin: 0; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); border-top: 1px solid var(--border); }
    .menu.show-menu { display: flex; animation: fadeInDown 0.2s ease forwards; }
    .menu a { width: 100%; text-align: center; padding: 14px; background: var(--bg); margin: 4px 0; }
}
@media(max-width: 600px) {
    .top { display: none; }
    .nav { height: 70px; }
    .brand { font-size: 22px; } .brand img { width: 36px; height: 36px; }
    .hero h1 { font-size: 30px; }
    .search-wrapper { padding: 4px; background: transparent; border: none; }
    .search { flex-direction: column; border-radius: 16px; overflow: hidden; }
    .search input { border-radius: 0; border-bottom: 1px solid var(--border); }
    .search select { max-width: 100%; border-left: none; border-bottom: 1px solid var(--border); }
    .search button { border-radius: 12px; padding: 16px; margin: 8px; }
    .quick-wrapper { margin-top: -30px; }
    .quick { justify-content: flex-start; padding: 15px; border-radius: 16px; }
    .quick a { flex: 1 1 calc(50% - 8px); padding: 10px; font-size: 13px; justify-content: center; }
    .footergrid { grid-template-columns: 1fr; }
    .subscribe { flex-direction: column; text-align: center; padding: 40px 25px; margin-bottom: 40px; border-radius: 20px; }
    .subscribe h2 { font-size: 26px; }
    .subform { flex-direction: column; background: transparent; border: none; padding: 0; margin-top: 20px; }
    .subform input { border-radius: 12px; margin-bottom: 10px; background: rgba(255,255,255,0.1); text-align: center; }
    .subform button.btn { border-radius: 12px; width: 100%; padding: 16px; }
}
