
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&amp;family=Playfair+Display:wght@700&amp;display=swap');

:root {
    --bg: #0f172a;
    --card: #1e293b;
    --primary: #7c3aed;
    --accent: #06b6d4;
    --text: #f8fafc;
    --text-secondary: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system_ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

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

.logo-text {
    font-family: 'Playfair Display', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 680px;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)), url('https://picsum.photos/id/1015/2000/1200') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(15, 23, 42, 0.6) 80%);
}

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

.hero-heading {
    font-family: 'Playfair Display', sans-serif;
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    font-size: 1.05rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), #a78bfa);
    color: white;
    box-shadow: 0 10px 15px -3px rgb(124 58 237 / 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(124 58 237 / 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(148, 163, 184, 0.6);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(6, 182, 212, 0.1);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Playfair Display', sans-serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, #e0e7ff, #c4d0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.category-card {
    background: var(--card);
    padding: 2.25rem 1.75rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(8px);
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
    border-color: rgba(124, 58, 237, 0.4);
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    display: block;
}

.category-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

/* Articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgb(124 58 237 / 0.25);
}

.article-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-image img {
    transform: scale(1.08);
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(124, 58, 237, 0.95);
    color: white;
    padding: 4px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.article-content {
    padding: 1.75rem;
}

.article-title {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #67e8f9;
    letter-spacing: 0.5px;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, #1e293b, #334155);
    margin: 3rem 0;
    border-radius: 28px;
}

.newsletter-content {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: 4.5rem 2rem;
}

.newsletter-title {
    font-family: 'Playfair Display', sans-serif;
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.newsletter-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 2.25rem;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 240px;
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 9999px;
    color: white;
    font-size: 1.05rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.newsletter-note {
    font-size: 0.9rem;
    color: #64748b;
}

/* Footer */
.footer {
    background: #0a101f;
    padding: 3.5rem 0 2rem;
    border-top: 1px solid #1e293b;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-logo .logo-text {
    font-size: 1.85rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.copyright {
    color: #64748b;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.25rem;
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem 0;
    }
    
    .logo-text {
        font-size: 1.65rem;
    }
    
    .hero-heading {
        font-size: 2.5rem;
    }
}