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

:root {
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

* { box-sizing: border-box; outline: none; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Hind Siliguri', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animation Blob */
body::before {
    content: '';
    position: fixed;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
    top: -20%;
    left: -20%;
    z-index: -1;
    animation: floatBg 20s infinite alternate;
}

@keyframes floatBg {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

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

/* Glass Header */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    letter-spacing: -1px;
}

.lang-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.lang-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* News Grid & 3D Cards */
.section-title {
    margin-top: 40px;
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-left: 4px solid var(--secondary);
    padding-left: 15px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    backdrop-filter: blur(5px);
    transform-style: preserve-3d;
}

.card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(139, 92, 246, 0.3);
}

.card-img-holder {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-img-holder img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
}

.badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.news-badge { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.blog-badge { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }

.card h3 {
    margin: 15px 0;
    font-size: 1.2rem;
    line-height: 1.5;
}

.card h3 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.card h3 a:hover {
    color: var(--primary);
}

.meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

/* Loading Bar */
.loading-bar {
    height: 4px;
    background: var(--gradient);
    width: 0%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    transition: width 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    .logo { font-size: 1.5rem; }
}