@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-main: #0F172A;
    --bg-secondary: #1E293B;
    --accent: #6366F1;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand-logo {
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    font-weight: 700;
}

a {
    transition: var(--transition-smooth);
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
}

.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 7rem 0;
    }
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: transparent;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.9rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFF 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-left: 1px solid var(--glass-border);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.7);
}

.nav-links.active {
    right: 0;
}

@media (min-width: 768px) {
    .mobile-nav-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        gap: 2rem;
        box-shadow: none;
        border: none;
        transition: none;
        display: flex;
    }

    .brand-logo {
        font-size: 1.6rem;
    }
}

.nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .nav-link {
        font-size: 1rem;
    }
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    text-shadow: 0 0 15px var(--accent-glow);
}

.filter-btn {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 500;
    transition: var(--transition-smooth);
    outline: none;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.filter-btn.active-filter {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.nav-extra {
    display: none;
}

@media (min-width: 1024px) {
    .nav-extra {
        display: block;
    }
}

.hero-wrapper {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 0 4rem;
    position: relative;
}

.hero-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

.hero-title {
    font-size: clamp(2.6rem, 12vw, 6rem);
    margin-bottom: 2rem;
    background: linear-gradient(to bottom, #FFF, #94A3B8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3.5rem;
    padding: 0 1rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.35rem;
    }
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.post-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent);
}

.post-cover {
    width: 100%;
    height: 220px;
    border-radius: 1.25rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--accent) 250%);
    position: relative;
    overflow: hidden;
}

.post-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

.post-meta {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.5;
}

.site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 3rem;
    margin-top: 6rem;
    color: var(--text-secondary);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    padding-top: 2.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}