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

:root {
    --dark-bg: #000000;
    --dark-bg-secondary: #0a0a0a;
    --dark-bg-tertiary: #050505;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #e5e5e5;
    --text-secondary: #b0b0b0;
    --accent-blue: #4a5568;
    --accent-purple: #5a5a5a;
    --accent-indigo: #3a3a3a;
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #d0d0d0 50%, #a0a0a0 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Background with animated gradient orbs */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-secondary) 50%, var(--dark-bg-tertiary) 100%);
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #1a1a1a 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #0f0f0f 0%, transparent 70%);
    bottom: -300px;
    right: -300px;
    animation-delay: 7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #151515 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}


/* Navigation */
.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: inherit;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* Main Content */
.main {
    padding: 40px 0 80px;
}

/* Featured Section */
.featured-section {
    margin-bottom: 50px;
}

.featured-article {
    padding: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.article-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--accent-purple);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-excerpt {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.article-read-time::before {
    content: "•";
    margin-right: 20px;
    opacity: 0.5;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* News Grid */
.news-section {
    margin-top: 40px;
}

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

.news-article {
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-article:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.news-article .article-category {
    margin-bottom: 12px;
    font-size: 11px;
    padding: 5px 12px;
}

.news-article .article-title {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.3;
    flex-grow: 1;
}

.news-article .article-excerpt {
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-article .article-meta {
    margin-top: auto;
    font-size: 13px;
}

/* Category Colors */
.article-category.anomonus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.article-category.bugs {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #22c55e;
}

.article-category.tech {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #d0d0d0;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    margin-top: 80px;
}

.footer-content {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.footer-about {
    max-width: 350px;
}

.footer-categories {
    min-width: 200px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.footer-latest {
    min-width: 250px;
}

.latest-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.latest-news-item {
    text-decoration: none;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.latest-news-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.latest-news-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.latest-news-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.footer-social {
    min-width: 200px;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    margin-top: 20px;
}

.footer-bottom p {
    margin: 8px 0;
    color: var(--text-secondary);
}

.footer-subtitle {
    font-size: 14px;
    opacity: 0.8;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }

    .article-title {
        font-size: 28px;
    }

    .featured-article {
        padding: 24px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .container {
        padding: 0 16px;
    }

    /* Mobile Footer Improvements */
    .footer {
        padding: 40px 0 30px;
        margin-top: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 24px;
        text-align: left;
    }

    .footer-section {
        width: 100%;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--glass-border);
    }

    .footer-section:last-of-type {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-section h3 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid var(--glass-border);
    }

    .footer-about {
        max-width: 100%;
    }

    .footer-about p {
        font-size: 15px;
        line-height: 1.8;
    }

    /* Category Links - Clearer on Mobile */
    .footer-categories {
        min-width: 100%;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .footer-link {
        padding: 14px 18px;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 10px;
        font-size: 15px;
        font-weight: 500;
        text-align: center;
        color: var(--text-primary);
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .footer-link:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    /* Latest News - Clearer Format on Mobile */
    .footer-latest {
        min-width: 100%;
    }

    .latest-news-list {
        gap: 14px;
    }

    .latest-news-item {
        padding: 16px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        transition: all 0.3s ease;
        display: block;
    }

    .latest-news-item:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    .latest-news-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 8px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .latest-news-excerpt {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.6;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Social Media Icons - Better Spacing on Mobile */
    .footer-social {
        min-width: 100%;
    }

    .social-icons {
        justify-content: flex-start;
        gap: 12px;
        flex-wrap: wrap;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .footer-bottom {
        margin-top: 24px;
        padding-top: 24px;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 13px;
        margin: 6px 0;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 24px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-excerpt {
        font-size: 16px;
    }

    .featured-article {
        padding: 20px;
    }

    /* iPhone Footer - Even More Refined */
    .footer-content {
        padding: 28px 20px;
        gap: 28px;
    }

    .footer-section {
        padding-bottom: 20px;
    }

    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .footer-about p {
        font-size: 14px;
    }

    /* Category Links - Single Column on Small iPhone */
    .footer-links {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-link {
        padding: 16px;
        font-size: 15px;
    }

    /* Latest News - Optimized for Small Screens */
    .latest-news-item {
        padding: 14px;
    }

    .latest-news-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .latest-news-excerpt {
        font-size: 13px;
    }

    .social-icons {
        justify-content: center;
        gap: 10px;
    }

    .social-icon {
        width: 42px;
        height: 42px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-article {
    animation: fadeIn 0.5s ease-out;
}

