/* Styles for netbridge.defrecord.com - InfoSec Marketing Theme */
:root {
    /* InfoSec-focused color palette */
    --primary: #0d2240;       /* Dark blue */
    --secondary: #1e4e8f;     /* Medium blue */
    --accent: #00b2e3;        /* Cyan accent */
    --accent-alt: #78be20;    /* Green accent */
    --warning: #ff6b35;       /* Orange warning */
    --dark: #0a192f;          /* Very dark blue */
    --text: #e6e6e6;          /* Light gray text */
    --text-dark: #1a1a1a;     /* Dark text */
    --light-bg: #f5f7fa;      /* Light background */
    --dark-bg: #1c2541;       /* Dark background */
    --card-bg: rgba(30, 78, 143, 0.05); /* Subtle card background */
    --terminal-bg: #0d1117;   /* Terminal background */
    --terminal-text: #58a6ff; /* Terminal text */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

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

/* Header and Navigation */
header {
    background-color: var(--primary);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    color: var(--dark);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    margin: 2.5rem 0 1.2rem;
    color: var(--secondary);
}

h3 {
    font-size: 1.6rem;
    margin: 1.8rem 0 1rem;
    color: var(--secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

p {
    margin-bottom: 1.5rem;
}

/* Hero Section for Org Mode */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    margin-top: -2rem;
    margin-bottom: 2rem;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 50%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%230d2240" fill-opacity="0.1" d="M0,192L48,176C96,160,192,128,288,122.7C384,117,480,139,576,149.3C672,160,768,160,864,165.3C960,171,1056,181,1152,186.7C1248,192,1344,192,1392,192L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
    z-index: 1;
}

/* Org Mode specific hero styling */
.hero > h1 {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding-top: 2rem;
}

.hero p {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.hero > ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

.hero > ul li a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero > ul li:first-child a {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 178, 227, 0.3);
}

.hero > ul li:first-child a:hover {
    background-color: var(--accent-alt);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 178, 227, 0.4);
}

.hero > ul li:last-child a {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: white;
}

.hero > ul li:last-child a:hover {
    background-color: var(--accent);
}

.btn-separator {
    display: none;
}

.hero-image {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

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

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 178, 227, 0.3);
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-alt);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 178, 227, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 178, 227, 0.3);
}

/* Features */
.feature-section {
    padding: 5rem 0;
    background-color: white;
}

/* Feature grid for org-mode */
.feature-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-card h4 {
    color: var(--accent);
    margin-top: 0;
    font-size: 1.4rem;
}

/* Org mode specific styling */
.outline-3 h3 {
    margin-top: 2.5rem;
}

.outline-4 h4 {
    margin-top: 1.5rem;
}

.feature-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Terminal display for org-mode */
.terminal {
    background-color: var(--terminal-bg);
    color: var(--terminal-text);
    padding: 1.5rem;
    border-radius: 8px;
    font-family: "Roboto Mono", monospace;
    font-size: 0.9rem;
    margin: 2rem 0;
    overflow-x: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: pre;
}

/* For org-mode included src blocks */
.terminal pre.src {
    background: transparent;
    border: none;
    color: inherit;
    margin: 0;
    padding: 0;
    overflow: visible;
    box-shadow: none;
    font-family: inherit;
    font-size: inherit;
}

.terminal .org-src-container {
    margin: 0;
}

/* Center text container for buttons */
.text-center {
    text-align: center;
    margin: 2rem 0;
}

.text-center a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.text-center a:hover {
    background-color: var(--accent);
    color: white;
}

/* Testimonials and quotes */
blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 0 1rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    position: relative;
    background-color: var(--card-bg);
    border-radius: 0 8px 8px 0;
}

blockquote::before {
    content: """;
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
}

/* Process steps */
.process-steps {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 2rem 0;
}

.process-steps th {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 1rem;
}

.process-steps td {
    border: 1px solid #eaeaea;
    padding: 1.5rem;
    background-color: white;
}

/* Security features */
.security-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: var(--card-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.security-feature-icon {
    flex: 0 0 50px;
    font-size: 24px;
    color: var(--accent);
    margin-right: 1rem;
}

.security-feature-content {
    flex: 1;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0;
    margin-top: 5rem;
}

.site-footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0;
    margin-top: 0;
}

.site-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-nav ul li a {
    color: var(--text);
    text-decoration: none;
}

.footer-nav ul li a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .feature-grid,
    .site-footer .container {
        grid-template-columns: 1fr;
    }
    
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .security-feature {
        flex-direction: column;
    }
    
    .security-feature-icon {
        margin-bottom: 1rem;
    }
}

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

.animate-fade {
    animation: fadeIn 0.8s ease-out forwards;
}
