:root {
    --bg-body: #0a0b10;
    --bg-card: #12141c;
    --bg-header: #0d0f16;
    --accent-blue: #007aff;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --accent-orange: #f59e0b;
    --accent-green: #10b981;
    --text-primary: #ffffff;
    --text-secondary: #b0bfd0; /* Updated from #94a3b8 for better contrast (4.7:1) */
    --border-color: #1e293b;
}

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 122, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    animation: bgShift 30s ease-in-out infinite;
}

@keyframes bgShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(5%, 5%) rotate(3deg) scale(1.1); }
}

/* Navigation */
nav {
    background: rgba(13, 15, 22, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    min-height: 80px;
}

.logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: -1.5px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo span {
    background: linear-gradient(135deg, #007aff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--accent-blue);
}

.search-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 122, 255, 0.4);
}

.mobile-menu {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: color 0.3s;
}

.mobile-menu:hover {
    color: var(--accent-blue);
}

/* Modern Hero Section */
.hero-modern {
    padding: 120px 40px 80px;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(0, 122, 255, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-modern h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
}

.gradient-text {
    background: linear-gradient(135deg, #007aff 0%, #00d4ff 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

.hero-desc {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.cta-primary,
.cta-secondary {
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
}

.cta-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 122, 255, 0.4);
}

.cta-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.cta-secondary:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 122, 255, 0.1);
}

.trending-topics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.topic-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.topics-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.topic-tag {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topic-tag:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 122, 255, 0.1);
    transform: translateY(-2px);
}

/* Featured Story */
.featured-story {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header h2 i {
    color: var(--accent-orange);
}

.featured-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 122, 255, 0.3);
    border-color: var(--accent-blue);
}

.featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.featured-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(10, 11, 16, 0.1) 0%,
        rgba(10, 11, 16, 0.5) 30%,
        rgba(10, 11, 16, 0.9) 100%);
    z-index: 1;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.featured-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
}

.featured-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.featured-badge {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-date {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.featured-content h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    background: rgba(0, 122, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: 2px solid var(--accent-blue);
}

.read-more:hover {
    gap: 12px;
    background: var(--accent-blue);
    color: #ffffff;
    transform: translateX(5px);
}

/* Latest News */
.latest-news {
    padding: 80px 0;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    border-color: var(--accent-blue);
    background: rgba(0, 122, 255, 0.1);
    color: var(--accent-blue);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 122, 255, 0.25);
}

.news-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.news-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(10, 11, 16, 0.2) 0%,
        rgba(10, 11, 16, 0.6) 40%,
        rgba(10, 11, 16, 0.95) 100%);
    z-index: 1;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 380px;
}

.news-card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.news-card-category {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.4);
}

.cat-ios { 
    border: 2px solid #667eea;
    color: #667eea;
}
.cat-ai { 
    border: 2px solid #f093fb;
    color: #f093fb;
}
.cat-leaks { 
    border: 2px solid #4facfe;
    color: #4facfe;
}
.cat-hardware { 
    border: 2px solid #f59e0b;
    color: #f59e0b;
}
.cat-gaming { 
    border: 2px solid #ec4899;
    color: #ec4899;
}
.cat-tech, .cat-reviews, .cat-comparison, .cat-news { 
    border: 2px solid #10b981;
    color: #10b981;
}

.news-card-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
}

.news-card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.load-more-container {
    text-align: center;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border: none;
    color: white;
    padding: 16px 40px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}

/* Categories Showcase */
.categories-showcase {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(18, 20, 28, 0.5) 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-blue);
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(0, 122, 255, 0.3));
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.category-count {
    display: inline-block;
    background: rgba(0, 122, 255, 0.1);
    color: var(--accent-blue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Newsletter */
.newsletter-section {
    padding: 80px 0;
}

.newsletter-card {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 122, 255, 0.3);
}

.newsletter-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.newsletter-card h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.newsletter-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    background: white;
    color: var(--accent-blue);
    border: none;
    padding: 16px 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: var(--bg-header);
    padding: 60px 40px;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 15px;
    line-height: 1.7;
}

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

.footer-column h4 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Search Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-header);
    padding: 50px;
    border-radius: 24px;
    max-width: 700px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal {
    float: right;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.search-input {
    width: 100%;
    padding: 20px 28px;
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 20px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.search-results {
    margin-top: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        padding: 40px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-header);
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        transition: left 0.3s;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .search-btn span {
        display: none;
    }
    
    .nav-container,
    .container {
        padding: 0 20px;
    }
    
    .hero-modern h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Performance Fixes */
.news-card img, .featured-card img {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.news-card {
  min-height: 450px;
}
.featured-card {
  min-height: 400px;
}
