body.light-mode .rule-tag:last-child {
    background: rgba(107, 0, 255, 0.08);
    border-color: rgba(107, 0, 255, 0.15);
}

/* Learning Process Section */
.learning-process-section {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.process-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.process-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.process-status {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.process-status.active {
    background: rgba(0, 200, 120, 0.15);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.process-step.completed {
    border-left-color: var(--color-accent);
    opacity: 0.8;
}

.process-step.active {
    border-left-color: var(--color-primary);
    background: rgba(0, 245, 255, 0.05);
}

.step-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.process-step.completed .step-icon {
    background: rgba(0, 200, 120, 0.2);
    color: var(--color-accent);
}

.process-step.active .step-icon {
    background: rgba(0, 245, 255, 0.2);
    color: var(--color-primary);
    animation: rotate 2s linear infinite;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.step-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.step-detail {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
}

body.light-mode .learning-process-section {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .process-step {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .process-step.active {
    background: rgba(0, 102, 255, 0.05);
}

body.light-mode .step-icon {
    background: rgba(0, 0, 0, 0.08);
}

body.light-mode .process-step.completed .step-icon {
    background: rgba(0, 200, 120, 0.15);
}

body.light-mode .process-step.active .step-icon {
    background: rgba(0, 102, 255, 0.15);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Auto Secure Fix Section */
.auto-fix-section {
    padding: 0.1rem 0;
}

.fix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.fix-label {
    font-size: 0.8125rem;
    color: var(--color-text-primary);
    font-weight: 600;
}

.fix-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fix-process {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fix-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.fix-item.detected {
    background: rgba(255, 51, 102, 0.1);
    border-left-color: var(--color-danger);
}

.fix-item.analyzing {
    background: rgba(255, 170, 0, 0.1);
    border-left-color: var(--color-warning);
}

.fix-item.active {
    background: rgba(0, 200, 120, 0.1);
    border-left-color: var(--color-accent);
}

.fix-step {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.fix-step.detected {
    background: rgba(255, 51, 102, 0.2);
    color: var(--color-danger);
}

.fix-step.analyzing {
    background: rgba(255, 170, 0, 0.2);
    color: var(--color-warning);
}

.fix-step.active {
    background: rgba(0, 200, 120, 0.2);
    color: var(--color-accent);
}

.fix-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.fix-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.fix-code {
    font-family: 'Courier New', monospace;
    font-size: 0.6875rem;
    color: var(--color-text-muted);
}

.fix-arrow {
    text-align: center;
    color: var(--color-primary);
    font-size: 1rem;
    padding: 0.25rem 0;
}

body.light-mode .fix-item {
    background: rgba(0, 0, 0, 0.02);
    border-left-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .fix-item.detected {
    background: rgba(255, 51, 102, 0.12);
    border-left-color: #ff3366;
}

body.light-mode .fix-item.analyzing {
    background: rgba(255, 170, 0, 0.12);
    border-left-color: #ffaa00;
}

body.light-mode .fix-item.active {
    background: rgba(0, 200, 120, 0.08);
}

body.light-mode .fix-step {
    background: rgba(0, 0, 0, 0.08);
}

body.light-mode .fix-step.detected {
    background: rgba(255, 51, 102, 0.15);
}

body.light-mode .fix-step.analyzing {
    background: rgba(255, 170, 0, 0.15);
}

body.light-mode .fix-step.active {
    background: rgba(0, 200, 120, 0.15);
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Mode Colors (default) */
    --color-bg-dark: #0a0a0f;
    --color-bg-darker: #050508;
    --color-primary: #84CC16;
    --color-secondary: #7000ff;
    --color-accent: #00ff88;
    --color-danger: #ff3366;
    --color-warning: #ffaa00;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0b0;
    --color-text-muted: #606070;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Light Mode Theme */
body.light-mode {
    --color-bg-dark: #ffffff;
    --color-bg-darker: #f5f7fa;
    --color-primary: #0066ff;
    --color-secondary: #6b00ff;
    --color-accent: #00c778;
    --color-danger: #ff3366;
    --color-warning: #ff8800;
    --color-text-primary: #1a1a2e;
    --color-text-secondary: #4a5568;
    --color-text-muted: #718096;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   Navigation Bar
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--spacing-md);
    max-width: 1280px;
    margin: 0 auto;
}

.nav-brand .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-brand .logo:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
    margin: 0;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

body.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

body.light-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
}

.cta-nav-button {
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.cta-nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 245, 255, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 100%);
    padding-top: 80px; /* Account for fixed navbar */
}

/* Light mode hero background */
body.light-mode .hero-section {
    background: linear-gradient(135deg, #e8f0ff 0%, #f5f7fa 50%, #ffffff 100%);
}

#graph-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(10, 10, 15, 0.7) 100%);
    z-index: 2;
}

/* Light mode overlay - much lighter */
body.light-mode .hero-overlay {
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(245, 247, 250, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

.gradient-text {
    color: var(--color-primary);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: var(--spacing-md);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light mode description - NO box, NO background, just text */
body.light-mode .hero-description {
    background: rgb(255, 255, 255, 0.2);
    border: none;
    color: #2d3748;
    backdrop-filter: blur(5px);
    box-shadow: none;
    border-radius: 16px;
    
}

/* CTA Card */
.hero-cta-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: var(--spacing-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInRight 1s ease-out 0.3s backwards;
}

/* Light mode CTA card */
body.light-mode .hero-cta-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.cta-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.email-form {
    margin-bottom: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.email-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

/* Light mode email input */
body.light-mode .email-input {
    background: rgba(0, 0, 0, 0.03);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--color-text-primary);
}

.email-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.1);
}

body.light-mode .email-input:focus {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.cta-button {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

/* Light mode scroll indicator */
body.light-mode .mouse {
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

/* ===================================
   Screenshots Section
   =================================== */
.screenshots-section {
    padding: var(--spacing-xl) 0;
    background: #0d0d12;
    position: relative;
}

body.light-mode .screenshots-section {
    background: #f8f9fb;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.screenshot-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.25);
}

.card-large {
    grid-row: span 2;
}

.screenshot-mockup {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    height: 100%;
}

.mockup-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mockup-dots span:nth-child(1) {
    background: #ff5f56;
}

.mockup-dots span:nth-child(2) {
    background: #ffbd2e;
}

.mockup-dots span:nth-child(3) {
    background: #27c93f;
}

.mockup-title {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.mockup-content {
    padding: var(--spacing-sm);
}

.dashboard-preview .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-sm);
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
}

.stat-value.danger {
    color: var(--color-danger);
}

.stat-value.warning {
    color: var(--color-warning);
}

.stat-value.info {
    color: var(--color-primary);
}

.stat-value.success {
    color: var(--color-accent);
}

.chart-placeholder {
    height: 200px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: var(--spacing-sm);
}

.trend-chart path {
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

.dependency-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.dependency-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.dependency-item.safe {
    border-left-color: var(--color-accent);
}

.dependency-item.vulnerable {
    border-left-color: var(--color-danger);
    animation: pulse 2s infinite;
}

.dep-icon {
    font-size: 1.25rem;
}

.dep-name {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* File Dependency Graph */
.file-dependency-graph {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: 0.5rem 0;
}

.dep-tree {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 1.5rem;
    position: relative;
}

.dep-tree::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0;
    bottom: 0.5rem;
    width: 2px;
    background: rgba(160, 160, 176, 0.4);
}

.tree-branch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.branch-line {
    width: 1rem;
    height: 2px;
    background: rgba(160, 160, 176, 0.4);
    position: relative;
}

.branch-line::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(160, 160, 176, 0.4);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

body.light-mode .dep-tree::before {
    background: rgba(74, 85, 104, 0.3);
}

body.light-mode .branch-line {
    background: rgba(74, 85, 104, 0.3);
}

body.light-mode .branch-line::before {
    border-left-color: rgba(74, 85, 104, 0.3);
}

/* Contextual Rules Section */
.contextual-rules-section {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rules-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.rules-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.rules-count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(0, 245, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.rules-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rule-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 6px;
    font-size: 0.6875rem;
    color: var(--color-primary);
    font-weight: 500;
    white-space: nowrap;
}

.rule-tag:last-child {
    background: rgba(112, 0, 255, 0.1);
    border-color: rgba(112, 0, 255, 0.2);
    color: var(--color-secondary);
    font-weight: 600;
}

body.light-mode .contextual-rules-section {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .rules-count {
    background: rgba(0, 102, 255, 0.1);
}

body.light-mode .rule-tag {
    background: rgba(0, 102, 255, 0.08);
    border-color: rgba(0, 102, 255, 0.15);
}

body.light-mode .rule-tag:last-child {
    background: rgba(107, 0, 255, 0.08);
    border-color: rgba(107, 0, 255, 0.15);
}

.dep-node {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.source-node {
    background: rgba(0, 200, 120, 0.1);
    border-color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.safe-node {
    background: rgba(0, 200, 120, 0.1);
    border-color: var(--color-accent);
}

.vulnerable-node {
    background: rgba(255, 51, 102, 0.15);
    border-color: var(--color-danger);
    animation: pulse 2s infinite;
}

body.light-mode .source-node {
    background: rgba(0, 200, 120, 0.2) !important;
    border-color: #00c778 !important;
    border-width: 2px;
}

body.light-mode .safe-node {
    background: rgba(0, 200, 120, 0.2) !important;
    border-color: #00c778 !important;
    border-width: 2px;
}

body.light-mode .vulnerable-node {
    background: rgba(255, 51, 102, 0.25) !important;
    border-color: #ff3366 !important;
    border-width: 2px;
}

.dep-arrows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1rem;
}

.dep-arrow-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arrow {
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: bold;
}

.target-node {
    flex: 1;
}

.file-icon {
    font-size: 1rem;
}

.file-name {
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    color: var(--color-text-primary);
    font-weight: 500;
}

body.light-mode .file-name {
    color: var(--color-text-primary);
}

body.light-mode .dep-node {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .source-node {
    background: rgba(0, 200, 120, 0.15);
    border-color: var(--color-accent);
}

.scan-progress {
    padding: var(--spacing-md) 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    width: 70%;
    background: var(--color-primary);
    border-radius: 4px;
    animation: progress 2s ease-in-out infinite;
}

.scan-status {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* ===================================
   Features Section
   =================================== */
.features-section {
    padding: var(--spacing-xl) 0;
    background: #0a0a0f;
}

body.light-mode .features-section {
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #84CC16;
    border-radius: 16px;
    padding: var(--spacing-md);
    transition: all 0.3s ease;
}

/* Default hover for dark mode */
.feature-card:hover {
    transform: translateY(-8px);
    border-color: #84CC16;
    box-shadow: 0 20px 40px rgba(132, 204, 22, 0.2);
}

/* Light mode specific styles */
body.light-mode .feature-card {
    border-color: #0066ff;
}

body.light-mode .feature-card:hover {
    transform: translateY(-8px);
    border-color: #0066ff;
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(84, 204, 16, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: #84CC16;
}

body.light-mode .feature-card {
    border-color: #0066ff;
}

body.light-mode .feature-icon {
    background: rgba(0, 102, 255, 0.1);
    border-color: rgba(0, 102, 255, 0.3);
    color: #0066ff;
}

/* Features Section specific gradient text override */
body.dark-mode .features-section .gradient-text {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: #84CC16;
}

body.light-mode .features-section .gradient-text {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: #0066ff;
}

body.light-mode .features-section .gradient-text {
    color: #0066ff;
}

body.dark-mode .features-section .gradient-text {
    color: #84CC16;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    text-align: justify;
}

/* ===================================
   Blog Section
   =================================== */
.blog-section {
    padding: var(--spacing-xl) 0;
    background: #08080c;
}

body.light-mode .blog-section {
    background: #f0f4f8;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    background: rgba(0, 102, 255, 0.9);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.blog-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.blog-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    flex: 1;
    text-align: justify;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-date {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.blog-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: var(--color-secondary);
}

/* Light mode blog styles */
body.light-mode .blog-section {
    background: #f0f4f8;
}

body.light-mode .blog-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .blog-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 102, 255, 0.3);
}

body.light-mode .blog-meta {
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    padding: var(--spacing-xl) 0;
    background: #0a0a0f;
}

body.light-mode .contact-section {
    background: #ffffff;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

body.light-mode .form-input {
    background: rgba(0, 0, 0, 0.03);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.1);
}

body.light-mode .form-input:focus {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 150px;
}

body.light-mode .form-textarea {
    background: rgba(0, 0, 0, 0.03);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.1);
}

body.light-mode .form-textarea:focus {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.contact-submit-button {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    margin-top: var(--spacing-sm);
}

.contact-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.contact-form-message {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    margin-top: var(--spacing-sm);
    display: none;
}

.contact-form-message.error {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    color: var(--color-danger);
    display: block;
}

.contact-form-message.success {
    background: rgba(0, 200, 120, 0.1);
    border: 1px solid rgba(0, 200, 120, 0.3);
    color: var(--color-accent);
    display: block;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    margin-top: var(--spacing-sm);
    display: none;
}

.form-message.error {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    color: var(--color-danger);
    display: block;
}

.form-message.success {
    background: rgba(0, 200, 120, 0.1);
    border: 1px solid rgba(0, 200, 120, 0.3);
    color: var(--color-accent);
    display: block;
}

.form-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: #050508;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    text-align: justify;
}

body.light-mode .footer {
    background: #e8eef3;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.footer-tagline {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

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

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

body.light-mode .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-primary);
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes progress {
    0% {
        transform: scaleX(0.7);
    }
    50% {
        transform: scaleX(0.85);
    }
    100% {
        transform: scaleX(0.7);
    }
}

/* ===================================
   Blog Post Page Styles
   =================================== */

.blog-post-hero {
    padding: calc(var(--spacing-xl) + 80px) 0 var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 100%);
}

body.light-mode .blog-post-hero {
    background: linear-gradient(135deg, #e8f0ff 0%, #f5f7fa 100%);
}



.blog-post-header {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 0.75rem;
    opacity: 0.8;
}

.blog-post-category {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    margin-bottom: var(--spacing-md);
}

.blog-post-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .blog-post-meta {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.author-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

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

.author-name {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.9375rem;
}

.post-date {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.blog-featured-image {
    padding: var(--spacing-lg) 0;
    background: var(--color-bg-dark);
}

body.light-mode .blog-featured-image {
    background: #ffffff;
}

.featured-img {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body.light-mode .featured-img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.blog-post-content {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-dark);
}

body.light-mode .blog-post-content {
    background: #f8f9fb;
}

.post-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.post-main-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: var(--spacing-lg);
}

body.light-mode .post-main-content {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

.post-main-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.post-main-content h2:first-child {
    margin-top: 0;
}

.post-main-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.post-main-content ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.post-main-content li {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.post-main-content li strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    overflow-x: auto;
}

body.light-mode .code-block {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #e0e0e0;
}

body.light-mode .code-block code {
    color: #1a1a2e;
}

.post-cta {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: rgba(0, 102, 255, 0.05);
    border: 2px solid rgba(0, 102, 255, 0.2);
    border-radius: 16px;
    text-align: center;
}

.post-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.post-cta p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.cta-button-link {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cta-button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: var(--spacing-md);
}

body.light-mode .sidebar-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.sidebar-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.share-btn {
    display: block;
    padding: 0.75rem 1rem;
    text-align: center;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.share-btn.twitter {
    background: rgba(29, 161, 242, 0.1);
    border: 1px solid rgba(29, 161, 242, 0.3);
    color: #1da1f2;
}

.share-btn.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    transform: translateY(-2px);
}

.share-btn.linkedin {
    background: rgba(0, 119, 181, 0.1);
    border: 1px solid rgba(0, 119, 181, 0.3);
    color: #0077b5;
}

.share-btn.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: rgba(24, 119, 242, 0.1);
    border: 1px solid rgba(24, 119, 242, 0.3);
    color: #1877f2;
}

.share-btn.facebook:hover {
    background: rgba(24, 119, 242, 0.2);
    transform: translateY(-2px);
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.related-post-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

body.light-mode .related-post-item {
    background: rgba(0, 0, 0, 0.03);
}

.related-post-item:hover {
    background: rgba(0, 102, 255, 0.1);
    transform: translateX(4px);
}

.related-post-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.4;
}

.related-post-date {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.newsletter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

body.light-mode .newsletter-input {
    background: rgba(0, 0, 0, 0.03);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

body.light-mode .newsletter-input:focus {
    background: rgba(0, 0, 0, 0.05);
}

.newsletter-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* Form Label Styles */
.form-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

/* Responsive Design for Blog Post */
@media (max-width: 968px) {
    .post-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        order: -1;
    }
    
    .blog-post-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .blog-post-title {
        font-size: 1.875rem;
    }
    
    .post-main-content {
        padding: var(--spacing-md);
    }
    
    .post-main-content h2 {
        font-size: 1.5rem;
    }
    
    .post-main-content p,
    .post-main-content li {
        font-size: 1rem;
    }
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .card-large {
        grid-row: span 1;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--color-bg-dark);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: var(--spacing-md) 0;
    }
    
    body.light-mode .nav-menu {
        background: #ffffff;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-preview .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   Login Page Styles
   =================================== */

.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
}

/* Left Side - Login Form */
.login-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background: var(--color-bg-dark);
}

body.light-mode .login-form-section {
    background: #ffffff;
}

.login-form-wrapper {
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.login-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.login-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

body.light-mode .form-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

body.light-mode .form-input:focus {
    background: rgba(0, 0, 0, 0.05);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--spacing-sm) 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.forgot-password:hover {
    opacity: 0.8;
}

.login-button {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    margin-top: var(--spacing-sm);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.login-button:hover .arrow-icon {
    transform: translateX(4px);
}

.divider {
    position: relative;
    text-align: center;
    margin: var(--spacing-md) 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .divider::before {
    background: rgba(0, 0, 0, 0.1);
}

.divider span {
    position: relative;
    background: var(--color-bg-dark);
    padding: 0 var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

body.light-mode .divider span {
    background: #ffffff;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

body.light-mode .social-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

body.light-mode .social-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

.social-btn.google:hover {
    border-color: #4285f4;
}

.social-btn.github:hover {
    border-color: #333;
}

body.light-mode .social-btn.github:hover {
    border-color: #000;
}

.login-message {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    margin-top: var(--spacing-md);
    display: none;
}

.login-message.error {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    color: var(--color-danger);
    display: block;
}

.login-message.success {
    background: rgba(0, 200, 120, 0.1);
    border: 1px solid rgba(0, 200, 120, 0.3);
    color: var(--color-accent);
    display: block;
}

.login-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .login-footer {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.login-footer p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.signup-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.signup-link:hover {
    opacity: 0.8;
}

/* Right Side - Promotional Content */
.login-promo-section {
    background: linear-gradient(135deg, #0a1628 0%, #0d0d12 50%, #1a0a28 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

body.light-mode .login-promo-section {
    background: linear-gradient(135deg, #e8f0ff 0%, #f5f7fa 50%, #e8e0ff 100%);
}

.login-promo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.login-promo-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.1) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(50px, 50px) rotate(180deg);
    }
}

.promo-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.promo-logo {
    margin-bottom: var(--spacing-lg);
}

.promo-brand {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0;
}

.promo-hero {
    margin-bottom: var(--spacing-lg);
}

.promo-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.promo-gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.promo-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.promo-feature {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

body.light-mode .promo-feature {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}

.promo-feature:hover {
    transform: translateX(8px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
}

.promo-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 12px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.promo-feature-text h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--color-text-primary);
}

.promo-feature-text p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Responsive Login Page */
@media (max-width: 968px) {
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .login-promo-section {
        display: none;
    }
    
    .login-form-section {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .login-title {
        font-size: 2rem;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
}
