:root {
    --primary-color: #00b4ff;
    --secondary-color: #0077b6;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-light: #f5f5f5;
    --text-gray: #b0b0b0;
    --accent-color: #00d4ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

/* Header */
header {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 18, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero / Intro Section */
.hero {
    padding: 100px 10%;
    display: flex;
    align-items: center;
    gap: 50px;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 180, 255, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    filter: grayscale(20%);
}

.hero-image img:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 180, 255, 0.4);
    filter: grayscale(0%);
}

/* Search & Filter Section */
.search-container {
    padding: 50px 10%;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.search-box input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

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

.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-gray);
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Articles Grid */
.articles-section {
    padding: 80px 10%;
}

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

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

.article-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.article-cover {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.article-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
}

.article-info {
    padding: 25px;
    flex-grow: 1;
}

.article-tag {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

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

/* Footer */
footer {
    padding: 60px 10% 30px;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.footer-links h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    text-decoration: none;
    color: var(--text-gray);
    transition: 0.3s;
}

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Article Page Styles */
.article-header {
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 50px 10%;
    position: relative;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), var(--bg-dark));
}

.article-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.article-body {
    padding: 60px 10%;
    max-width: 1000px;
    margin: 0 auto;
}

.article-content {
    font-size: 1.1rem;
    color: #e0e0e0;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content h2 {
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.article-content img {
    width: 100%;
    border-radius: 15px;
    margin: 30px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 50px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    nav ul {
        display: none;
    }
}
