/* ========================================
   Exploit Research - Custom Dark Theme
   Pure black background with neon green accents
   ======================================== */

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

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #000000;
    color: #999999;
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #00ff00;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.25em; }

p {
    margin-bottom: 16px;
}

a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #00ff00;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #00ff00;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Text Selection */
::selection {
    background-color: #00ff00;
    color: #000000;
}

::-moz-selection {
    background-color: #00ff00;
    color: #000000;
}

/* Header */
.site-header {
    background-color: transparent;
    border-bottom: 1px solid #333333;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.site-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #00ff00;
    display: flex;
    align-items: center;
}

.site-title::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    background-color: #00ff00;
}

.nav-link:hover,
.nav-link.active {
    color: #00ff00;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* Homepage */
.homepage {
    max-width: 100%;
}

.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 60px 20px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-left {
    flex: 1;
    min-width: 0;
}

.hero-right {
    flex: 1;
    min-width: 0;
}

.hero-title {
    font-size: 3.5em;
    color: #00ff00;
    margin-bottom: 20px;
    margin-top: 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5em;
    color: #00ff00;
    margin-bottom: 30px;
    min-height: 2em;
    display: block;
}

#typewriter {
    display: inline-block;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: #00ff00;
    margin-left: 2px;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1em;
    color: #999999;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-social {
    display: flex;
    gap: 20px;
}

.social-link {
    color: #ffffff;
    transition: color 0.3s ease;
}

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

.social-link:hover {
    color: #00ff00;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.terminal-container {
    border: 1px solid #333333;
    border-radius: 8px;
    background-color: #0a0a0a;
    overflow: hidden;
}

.terminal-header {
    background-color: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #333333;
}

.terminal-body {
    padding: 20px;
}

.ascii-art {
    color: #00ff00;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.8em;
    line-height: 1.4;
    margin: 0;
    white-space: pre;
    overflow-x: auto;
}

/* Departments Section */
.departments-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    color: #00ff00;
    margin-bottom: 50px;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.department-card {
    background-color: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.department-card::after {
    display: none;
}

.department-card:hover {
    transform: translateY(-5px);
    border-color: #00ff00;
    box-shadow: 0 8px 24px rgba(0, 255, 0, 0.2);
}

.department-card h3 {
    color: #00ff00;
    margin-top: 0;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.department-card p {
    color: #999999;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Department Pages */
.department-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.department-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background-color: #0a0a0a;
    border-radius: 8px;
    border: 1px solid #333333;
}

.department-title {
    font-size: 3em;
    color: #00ff00;
    margin-bottom: 20px;
    margin-top: 0;
}

.department-description {
    font-size: 1.2em;
    color: #999999;
    max-width: 700px;
    margin: 0 auto;
}

.department-content {
    text-align: center;
    padding: 40px 20px;
    background-color: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 8px;
    color: #999999;
    font-size: 1.1em;
}

/* Article Pages */
.article {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333333;
}

.article-title {
    font-size: 3em;
    color: #00ff00;
    margin-bottom: 15px;
    margin-top: 0;
}

.article-meta {
    color: #999999;
    font-size: 0.95em;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.article-meta .category {
    background-color: #0a0a0a;
    padding: 4px 12px;
    border-radius: 4px;
    color: #00ff00;
    border: 1px solid #333333;
}

.article-description {
    font-size: 1.2em;
    color: #999999;
    margin-top: 15px;
}

.article-disclaimer {
    background-color: #1a0000;
    border-left: 4px solid #ff0000;
    padding: 15px 20px;
    margin-bottom: 40px;
    border-radius: 4px;
    color: #ff9999;
    line-height: 1.6;
}

.article-disclaimer strong {
    color: #ff0000;
}

.article-content {
    line-height: 1.8;
    color: #999999;
}

.article-content ul,
.article-content ol {
    margin-left: 30px;
    margin-bottom: 16px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #333333;
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tag {
    background-color: #0a0a0a;
    color: #00ff00;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid #333333;
}

/* Code Blocks */
code {
    background-color: #111111;
    color: #00ff00;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9em;
}

pre {
    background-color: #111111;
    border: 1px solid #333333;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
}

pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.95em;
}

.highlight {
    background-color: #111111;
    border-radius: 6px;
    margin-bottom: 16px;
    border: 1px solid #333333;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    background-color: #0a0a0a;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #333333;
    color: #999999;
}

th {
    background-color: #111111;
    color: #00ff00;
    font-weight: 600;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #00ff00;
    padding-left: 20px;
    margin: 20px 0;
    color: #999999;
    font-style: italic;
}

/* Footer */
.site-footer {
    background-color: #0a0a0a;
    border-top: 1px solid #333333;
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-text {
    color: #999999;
    margin-bottom: 10px;
}

.footer-disclaimer {
    color: #666666;
    font-size: 0.9em;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5em;
    }
    
    .hero-subtitle {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #000000;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 20px;
        transition: right 0.3s ease;
        border-left: 1px solid #333333;
        align-items: flex-start;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.2em;
        width: 100%;
        padding: 10px 0;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-left,
    .hero-right {
        width: 100%;
    }
    
    .hero-title {
        font-size: 2em;
    }
    
    .hero-subtitle {
        font-size: 1em;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
    }
    
    .department-title {
        font-size: 2em;
    }
    
    .article-title {
        font-size: 2em;
    }
    
    .section-title {
        font-size: 2em;
    }
}

/* Accessibility */
:focus {
    outline: 2px solid #00ff00;
    outline-offset: 2px;
}

button:focus {
    outline: 2px solid #00ff00;
    outline-offset: 2px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

