@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0b0e14;
    --card-bg: rgba(255, 255, 255, 0.03);
    --accent-primary: #00f2fe;
    --accent-secondary: #4facfe;
    --accent-tertiary: #f093fb;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    --gradient-1: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-2: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-3: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
}

/* Article & Content Hub Styling */
.rich-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 80px 60px;
    margin: 60px auto;
    backdrop-filter: blur(15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.content-block h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-block p {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    padding: 35px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s;
}

.feature-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
}

.feature-item h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.side-border-list {
    border-left: 3px solid var(--accent-secondary);
    padding-left: 40px;
    margin: 50px 0;
}

.list-item {
    margin-bottom: 40px;
}

.list-item h4 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 8px;
}

.tip-box {
    background: rgba(255, 87, 108, 0.08);
    border: 1px solid rgba(255, 87, 108, 0.3);
    padding: 30px;
    border-radius: 20px;
    color: #f5576c;
    font-weight: 500;
    margin-top: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
}

/* --- Header --- */
header {
    height: 100px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 30px;
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(11, 14, 20, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.admin-link {
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.1);
    color: var(--accent-primary);
}

.admin-link:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

/* --- Hero Section --- */
.hero {
    padding: 100px 0 60px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(0, 242, 254, 0.05) 0%, transparent 50%);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* --- Search Bar --- */
.search-container {
    max-width: 600px;
    margin: 0 auto 60px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 18px 25px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s;
}

.search-container input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* --- Categories Grid --- */
.categories {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    padding: 40px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 30px 60px -12px rgba(0, 242, 254, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
}

/* --- Footer --- */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
    text-align: center;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 0.8s ease forwards;
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.3);
}

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

    .nav-links {
        display: none;
    }
}