:root {
    --bg-dark: #0a0a0f;
    --bg-card: #14141e;
    --bg-card-hover: #1c1c2a;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #00ff88;
    --accent-glow: rgba(0, 255, 136, 0.3);
    --secondary: #00ccff;
    --danger: #ff3366;
    --border: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 255, 136, 0.2);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.text-gradient, .accent {
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

/* Section Header */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
}

/* Background Effects */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: inset 0 0 20px var(--accent-glow), 0 0 30px var(--accent-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 255, 136, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom-color: var(--border-glow);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.nav-logo img {
    border-radius: 8px;
    box-shadow: 0 0 10px var(--accent-glow);
}

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

.nav-link {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    box-shadow: 0 0 8px var(--accent-glow);
}

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

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

.cta-link {
    border: 1px solid var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--accent);
}

.cta-link::after {
    display: none;
}

.cta-link:hover {
    background: var(--accent);
    color: #000 !important;
    box-shadow: 0 0 15px var(--accent-glow);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
    left: 0;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
    background: var(--accent);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
    background: var(--accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 15, 0.7) 0%,
        rgba(10, 10, 15, 0.4) 50%,
        var(--bg-dark) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px var(--accent-glow);
}

.badge-icon {
    font-size: 1rem;
    animation: flash 2s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.hero-title .line1 {
    color: #fff;
}

.hero-title .line2 {
    color: var(--accent);
    text-transform: uppercase;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 86px, 0); }
    5% { clip: rect(62px, 9999px, 17px, 0); }
    10% { clip: rect(34px, 9999px, 88px, 0); }
    15% { clip: rect(48px, 9999px, 11px, 0); }
    20% { clip: rect(78px, 9999px, 20px, 0); }
    25% { clip: rect(22px, 9999px, 55px, 0); }
    30% { clip: rect(8px, 9999px, 99px, 0); }
    35% { clip: rect(31px, 9999px, 45px, 0); }
    40% { clip: rect(4px, 9999px, 14px, 0); }
    45% { clip: rect(98px, 9999px, 3px, 0); }
    50% { clip: rect(55px, 9999px, 76px, 0); }
    55% { clip: rect(3px, 9999px, 22px, 0); }
    60% { clip: rect(18px, 9999px, 88px, 0); }
    65% { clip: rect(88px, 9999px, 11px, 0); }
    70% { clip: rect(34px, 9999px, 44px, 0); }
    75% { clip: rect(9px, 9999px, 2px, 0); }
    80% { clip: rect(77px, 9999px, 63px, 0); }
    85% { clip: rect(42px, 9999px, 81px, 0); }
    90% { clip: rect(11px, 9999px, 5px, 0); }
    95% { clip: rect(66px, 9999px, 99px, 0); }
    100% { clip: rect(29px, 9999px, 33px, 0); }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number, .stat-suffix {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.stat-label {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* Featured Section */
.featured-section {
    background: linear-gradient(to bottom, var(--bg-dark), #0f1016);
    padding-top: 2rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.featured-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
    transform: translateY(-5px);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 350px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-tag {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 51, 102, 0.9);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.5);
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.meta-category {
    color: var(--accent);
}

.featured-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.featured-excerpt {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #000;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #fff;
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-read {
    background: transparent;
    color: var(--accent);
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-read:hover {
    color: var(--secondary);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Categories Section */
.categories-section {
    background: #0f1016;
}

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

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.category-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-5px);
}

.category-card:hover::before {
    transform: translateX(100%);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}

.category-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.category-count {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
}

/* Blog Grid */
.blog-section {
    background: linear-gradient(to bottom, #0f1016, var(--bg-dark));
}

.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.blog-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.blog-card:hover .card-overlay {
    opacity: 1;
}

.btn-read-card {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .btn-read-card {
    transform: translateY(0);
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.tag {
    padding: 0.2rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.tag-phishing { background: rgba(0, 204, 255, 0.1); color: #00ccff; border: 1px solid rgba(0, 204, 255, 0.3); }
.tag-network { background: rgba(0, 255, 136, 0.1); color: #00ff88; border: 1px solid rgba(0, 255, 136, 0.3); }
.tag-darkweb { background: rgba(153, 51, 255, 0.1); color: #9933ff; border: 1px solid rgba(153, 51, 255, 0.3); }
.tag-zeroday { background: rgba(255, 153, 0, 0.1); color: #ff9900; border: 1px solid rgba(255, 153, 0, 0.3); }
.tag-ai { background: rgba(51, 102, 255, 0.1); color: #3366ff; border: 1px solid rgba(51, 102, 255, 0.3); }
.tag-ransomware { background: rgba(255, 51, 102, 0.1); color: #ff3366; border: 1px solid rgba(255, 51, 102, 0.3); }

.card-date {
    color: var(--text-muted);
}

.card-title {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: var(--transition);
}

.blog-card:hover .card-title {
    color: var(--accent);
}

.card-excerpt {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

/* About Section */
.about-section {
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    color: #e2e8f0;
}

.about-features {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
}

.feature {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    font-size: 1.5rem;
    background: rgba(255,255,255,0.05);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.feature h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature p {
    font-size: 0.9rem;
    margin: 0;
}

/* Terminal Animation */
.terminal {
    background: #0f1016;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: var(--font-mono);
}

.terminal-header {
    background: #1c1c2a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.5rem;
    min-height: 250px;
}

.terminal-line {
    margin-bottom: 0.5rem;
    color: #a5b4fc;
    font-size: 0.9rem;
}

.prompt {
    color: var(--accent);
    margin-right: 0.5rem;
}

.command {
    color: #fff;
}

.cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(to bottom, var(--bg-dark), #0a0a0f);
}

.newsletter-card {
    background: linear-gradient(135deg, #14141e, #0a0a0f);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.05);
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
}

.newsletter-form {
    margin: 2rem 0 1rem;
}

.input-group {
    display: flex;
    gap: 1rem;
}

.input-group input {
    flex-grow: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-sans);
    outline: none;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.newsletter-note {
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* Shield Animation */
.shield-animation {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0;
}

.ring-1 { width: 100px; height: 100px; animation: pulse-ring 3s infinite; }
.ring-2 { width: 150px; height: 150px; animation: pulse-ring 3s infinite 1s; }
.ring-3 { width: 200px; height: 200px; animation: pulse-ring 3s infinite 2s; }

.shield-core {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px var(--accent-glow));
    z-index: 10;
}

@keyframes pulse-ring {
    0% { transform: scale(0.5); opacity: 0.8; border-color: var(--accent); }
    100% { transform: scale(2); opacity: 0; border-color: var(--secondary); }
}

/* Footer */
.footer {
    background: #050508;
    padding-top: 4rem;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 900px;
    height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: sticky;
    top: 1rem;
    left: calc(100% - 3rem);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
}

/* Scoped styles for article content inside modal */
.article-header {
    position: relative;
    height: 350px;
}

.article-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.article-content {
    padding: 2rem 4rem 4rem;
    margin-top: -100px;
    position: relative;
    z-index: 2;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    background: rgba(10,10,15,0.8);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-flex;
    border: 1px solid var(--border);
}

.article-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
}

.article-body h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.article-body p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.code-block {
    background: #050508;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #a5b4fc;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    .featured-image {
        min-height: 250px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-card {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
    }
    .newsletter-visual {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
    }
    .nav-links.active {
        left: 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .stat-divider {
        width: 50px;
        height: 1px;
    }
    .input-group {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .article-content {
        padding: 1.5rem;
    }
    .article-title {
        font-size: 1.8rem;
    }
}
