/* Base Theme Settings - Refactored for Cybersecurity Persona */
:root {
    --bg-color: #0b0f19;       /* Deep tactical midnight background */
    --card-bg: #131c2e;        /* Dark slate card body */
    --text-main: #f8fafc;      /* Crisp high-contrast light text */
    --text-muted: #94a3b8;     /* Muted slate details */
    --accent: #f59e0b;         /* Amber accent - highly recognizable in security/defense */
    --accent-hover: #d97706;   /* Deep amber highlight state */
    --border-color: #1e293b;   /* Clean framing borders */
}

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

/* Updated Typography: Sans-serif body paired with Monospace-style headings */
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, .logo {
    font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    letter-spacing: -0.025em;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    background-color: rgba(11, 15, 25, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 5rem 10%;
    text-align: center;
    background: linear-gradient(180deg, #131c2e 0%, #0b0f19 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Featured Hero Image Styles */
.hero-image-container {
    max-width: 1000px;
    margin: 2.5rem auto 0 auto;
    padding: 0 1rem;
}

.hero-main-img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    flex: 1;
}

.intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Dashboard Grid Component */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 1.5rem;
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 1rem 1.5rem 0.5rem;
}

.card p {
    color: var(--text-muted);
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    margin-left: 1.5rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--accent);
    color: #0b0f19;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: var(--accent-hover);
}

/* Interior Pages Design Elements */
.subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.gallery-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px;
}

.gallery-text {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-text h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.gallery-text p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* Jupyter Notebook Embedding CSS */
.notebook-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.notebook-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.notebook-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.notebook-header p {
    color: var(--text-muted);
}

.notebook-iframe {
    width: 100%;
    height: 700px;
    border: none;
    background-color: #ffffff;
}

section {
  margin-bottom: 50px;
}

/* Contact & Portfolio Mapping Split Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
}

.contact-card h3 {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.contact-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Image Preview Layout */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.preview-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #475569;
}

/* Contact Page Right-Side Image Layout */
.contact-split-wrapper {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.contact-split-wrapper .contact-grid {
    flex: 1.5;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-side-image {
    flex: 1;
    position: sticky;
    top: 100px;
}

.side-png {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
}

/* Responsive adjustment for Mobile Devices */
@media (max-width: 900px) {
    .contact-split-wrapper {
        flex-direction: column;
    }
    .contact-side-image {
        width: 100%;
        order: 2;
    }
}

/* Security Page Download Hub Styling */
.download-section {
    margin-top: 4rem;
}

.download-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.download-intro {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.download-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.download-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    transition: background-color 0.2s;
}

.download-card:hover {
    background-color: #1e293b;
}

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

.file-info {
    flex: 1;
}

.file-info h4 {
    margin-bottom: 0.25rem;
    color: var(--accent);
}

.file-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.dl-btn {
    padding: 0.6rem 1.2rem;
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}

.dl-btn:hover {
    background-color: var(--accent);
    color: #0b0f19;
}

@media (max-width: 650px) {
    .download-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .dl-btn {
        width: 100%;
        text-align: center;
    }
}

/* 3-Column Image Showcase Layout */
.visuals-section {
    margin-top: 4rem;
}

.three-col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.visual-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.visual-card-text {
    padding: 1.25rem;
}

.visual-card-text h4 {
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.visual-card-text p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

@media (max-width: 850px) {
    .three-col-grid {
        grid-template-columns: 1fr;
    }
}

/* Tech Debt Strategy Banner Layout */
.strategy-banner-container {
    width: 100%;
    margin-bottom: 3.5rem;
}

.strategy-banner-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* How-to-Run Box */
.how-to-run {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.how-to-run h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.how-to-run ul {
    list-style: disc;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.how-to-run li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.how-to-run code {
    background-color: #0b0f19;
    color: var(--accent);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.88rem;
    font-family: 'Courier New', monospace;
}

/* Dashboard Screenshot Container */
.dashboard-screenshot {
    background: #0b0f19;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 2rem 0;
}

.dashboard-screenshot .caption {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    text-align: center;
}

/* Framing Line - callout quote/principle block used throughout security pages */
.framing-line {
    background-color: rgba(245, 158, 11, 0.08);
    border-left: 3px solid var(--accent);
    padding: 1.25rem 1.5rem;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.6;
}

/* Card Footer - used for source notes / meta info at the end of a card or section */
.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 2-column grid variant, used on the insights/discourse page */
.grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
    .grid-2col {
        grid-template-columns: 1fr;
    }
}

