* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-background);
    color: var(--color-text-light);
    line-height: 1.6;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Exo 2', sans-serif;
}

.dot-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: dot-move 5s linear infinite;
}

@keyframes dot-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 30px 30px;
    }
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    position: sticky;
    top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.logo {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-mobile {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--color-primary);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-nav:hover {
    border-color: var(--color-primary);
}

/* Hero */
.hero {
    padding: 6rem 1.5rem 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Search */
.search-box {
    display: flex;
    gap: 1rem;
    max-width: 700px;
    margin: 2rem auto 0;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 10px;
    backdrop-filter: blur(10px);
}

.search-box input {
    flex-grow: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--color-text-light);
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--color-text-muted);
}

.btn-primary {
    padding: 0.8rem 1.5rem;
    background: var(--color-primary);
    border: none;
    color: var(--color-background);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.btn-back:hover {
    color: var(--color-primary);
}

/* Sections */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title span {
    color: var(--color-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    border-color: var(--color-primary);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.card-small {
    color: var(--color-primary);
}

/* Article Card */
.article-card small {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.article-card h4 {
    color: var(--color-primary);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

/* Article View */
.article-content {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.article-content h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    opacity: 0.9;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 4rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

/* Contact */
.contact-section {
    text-align: center;
}

/* Divider */
.divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    margin: 4rem auto;
}

/* Footer */
footer {
    background: var(--color-background);
    border-top: 1px solid var(--color-border);
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.social-links {
    font-size: 1.5rem;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    color: var(--color-text-muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: inline;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .search-box {
        flex-direction: column;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .article-content {
        padding: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
    }
}