/* Base Theme Settings */
:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

.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, #1e293b 0%, #0f172a 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.5);
    border: 1px solid #334155;
}

/* 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 #334155;
}

.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: #0f172a;
    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 #334155;
}

.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 #334155;
    margin-top: auto;
}


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

.notebook-header {
    padding: 2rem;
    border-bottom: 1px solid #334155;
}

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

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

.notebook-iframe {
    width: 100%;
    height: 700px; /* Adjust height based on notebook length */
    border: none;
    background-color: #ffffff; /* Jupyter prints best on white backgrounds */
}

section {
  margin-bottom: 50px; /* Adjust the pixels (px) to change the spacing */
}


/* Contact & Upload Tab CSS */


.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 #334155;
    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;
}

/*
.upload-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}  

*/
/* Drag and Drop Zone */
/*
.upload-box {
    border: 2px dashed #475569;
    border-radius: 6px;
    padding: 2rem;
    text-align: center;
    background-color: rgba(15, 23, 42, 0.3);
    transition: border-color 0.3s, background-color 0.3s;
}

.upload-box.dragover {
    border-color: var(--accent);
    background-color: rgba(56, 189, 248, 0.1);
}

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

.upload-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #334155;
    color: var(--text-main);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.upload-btn:hover {
    background-color: #475569;
}  */


/* 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;
}

/* Ensure the left forms still have proper space allocation */
.contact-split-wrapper .contact-grid {
    flex: 1.5;
    display: grid;
    grid-template-columns: 1fr; /* Stack the two cards vertically on the left side */
    gap: 2rem;
}

/* Right Side Image Box */
.contact-side-image {
    flex: 1;
    position: sticky;
    top: 100px; /* Stays fixed in view if the browser scrolls */
}

.side-png {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain; /* Keeps transparent backgrounds crisp without cropping */
    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; /* Drops image below forms on small screens */
    }
}

/* 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 #334155;
    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: #24334d;
}

.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;
}

/* Specific Download Button Adjustment */
.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: #0f172a;
}

/* Mobile responsive collapsing for downloads */
@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 #334155;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.visual-img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Crops image uniformly without losing aspect ratio layout */
    border-bottom: 1px solid #334155;
}

.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;
}

/* Fallback breakpoint adjustment for small monitors or mobile layouts */
@media (max-width: 850px) {
    .three-col-grid {
        grid-template-columns: 1fr; /* Stacks column cards in single layer row automatically on phone viewports */
    }
}

/* Tech Debt Strategy Banner Layout */
.strategy-banner-container {
    width: 100%;
    margin-bottom: 3.5rem; /* Creates clean spacing right before the gallery starts */
}

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

/* ── Plant Dashboard: How-to-Run Box ── */
.how-to-run {
    background-color: var(--card-bg);
    border: 1px solid #334155;
    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: #0f172a;
    color: var(--accent);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.88rem;
    font-family: 'Courier New', monospace;
}

/* ── Plant Dashboard: Screenshot & Caption ── */
.dashboard-screenshot {
    margin-top: 2rem;
}

.dashboard-screenshot .visual-img {
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #334155;
    width: 100%;
}

.caption {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* Dashboard Image Container */
.dashboard-screenshot {
    background: #0e1117; /* Dark background matching the image charts */
    border: 1px solid #262730;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-top: 35px;
}

.visual-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.caption {
    font-size: 0.88rem;
    color: #a3a8b4;
    margin-top: 12px;
    text-align: center;
    font-style: italic;
}

/* Business-framing line for "judgment" project cards (Expansion, Acquisition, Resilience) —
   distinct from .stack-line's monospace keyword-tag treatment, since this holds a full sentence. */
.framing-line {
    margin: 0 1.5rem 1.5rem;
    padding-left: 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
    font-style: italic;
    border-left: 2px solid var(--accent);
}

/* Fixed 2-column variant — used for Core Competencies so its 4 cards match the
   scale of the 2-card "Two Deeper Threads" grid, instead of auto-fitting to 4 columns. */
.grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

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

/* Subtle in-card sub-link — for surfacing a related/deeper page without adding a new card
   or competing visually with the main .btn call-to-action. */
.card-sublink {
    padding: 0 1.5rem 1.25rem;
}

.card-sublink a {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dotted var(--text-muted);
    transition: color 0.3s, border-color 0.3s;
}

.card-sublink a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Native AI Assistant Card Styling */
.ai-assistant-card {
    background-color: #111a2e;
    border: 1px solid #1f3a60;
    border-left: 5px solid #00b4d8; /* Distinct colored edge */
    border-radius: 6px;
    padding: 24px;
    margin: 40px auto;
    max-width: 100%;
    font-family: system-ui, -apple-system, sans-serif;
    color: #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
}

.status-dot {
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 10px;
    background-color: #00b4d8;
    border-radius: 50%;
    box-shadow: 0 0 8px #00b4d8;
}

.card-header h3 {
    font-size: 1.3rem;
    margin: 0;
    color: #ffffff;
}

.brand-tagline {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 4px 0 0 0;
}

.analysis-section {
    margin-bottom: 18px;
}

.analysis-section h4 {
    color: #38bdf8;
    font-size: 1.05rem;
    margin: 0 0 6px 0;
}

.analysis-section p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.warning-text {
    color: #f87171;
    font-weight: 600;
}

.action-highlight ol {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.action-highlight li {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 4px;
}

.card-footer {
    border-top: 1px solid #1e293b;
    padding-top: 12px;
    margin-top: 20px;
    color: #fbbf24;
    font-weight: 500;
    font-size: 0.9rem;
}


