@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Code&display=swap');

/* Custom CSS for plug.solutions */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
}

/* Navigation Bar Styling */
.navbar-nav .nav-item {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

/* Hero Section Styling */
.hero-section {
    position: relative; /* Needed for absolute positioning of canvas */
    /* Removed background image/gradient, canvas will handle visual background */
    min-height: 42vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden; /* Hide particles that go outside the section */
    background-color: #1a1a1a; /* A dark fallback/base color for the hero section */
}

.hero-content-wrapper {
    position: relative; /* Establishes new stacking context */
    z-index: 2; /* Ensures text is above the canvas */
    text-align: center; /* Centers text within the wrapper */
    padding: 20px; /* Add some padding to prevent text from touching edges */
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Canvas behind text, but above hero-section's background-color */
    display: block;
}

.hero-section h1 {
    font-weight: 700;
}

.hero-subtitle-bg {
    background-color: rgba(0, 0, 0, 0.2); /* 50% transparent black background */
    border-radius: 0.5rem; /* Rounded corners */
    padding: 0.5rem 1rem; /* Padding around the text */
    display: inline-block; /* Ensures background fits content */
}

/* Styling for the animated ellipsis to keep "plug.solutions" fixed */
#animatedEllipsis {
    display: inline-block; /* Allows setting width */
    width: 1.2em; /* Fixed width to accommodate "..." without shifting */
    vertical-align: bottom; /* Align with the bottom of the text */
    text-align: left; /* Ensure dots start from the left within its fixed width */
}

.hero-button-container {
    margin-top: 5vh;
    margin-bottom: 0;
}

.hero-section .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hero-section .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* General Section Padding */
section {
    padding: 60px 0;
}

/* Card Styling for Services */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-body {
    padding: 30px;
}

.icon-large {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Beginner Modules Section Styling */
.module-list {
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
}

.module-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #444;
    transition: background-color 0.2s ease;
}

.module-item:last-child {
    border-bottom: none;
}

.module-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.module-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    margin-right: 1.5rem;
    min-width: 2rem;
    text-align: center;
}

.module-title {
    flex-grow: 1;
    font-size: 1.1rem;
}

.module-arrow {
    font-size: 1.5rem;
    color: #6c757d;
    transition: transform 0.2s ease, color 0.2s ease;
}

.module-item:hover .module-arrow {
    transform: translateX(5px);
    color: #007bff;
}

/* Contact Section Styling */
.mailing-list-card .card-body {
    text-align: center;
}

/* Calculator Matrix Input Styling */
.matrix-cell-input {
    font-size: 0.9em; /* Slightly larger than 0.85em, still compact */
    text-align: center; /* Center the numbers */
    padding: 0.2rem 0.1rem; /* Slightly more vertical padding, less horizontal */
    max-width: 55px; /* Slightly narrower */
    min-width: 35px; /* Ensure a minimum width */
    height: 30px; /* Fixed height for uniformity */
    /* border: 1px solid #ced4da; */ /* Removed to respect Bootstrap dark theme */
    border-radius: 0.25rem; /* Standard Bootstrap border-radius */
    /* background-color: #e9ecef; */ /* Removed to respect Bootstrap dark theme */
    box-shadow: none; /* Remove default Bootstrap shadow */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;

    /* Remove up/down dials for number inputs */
    -moz-appearance: textfield; /* Firefox */
}

/* Remove up/down dials for Webkit browsers (Chrome, Safari, Edge) */
.matrix-cell-input::-webkit-outer-spin-button,
.matrix-cell-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0; /* Remove margin to prevent extra space */
}

/* Placeholder text styling */
.matrix-cell-input::placeholder {
    /* color: #6c757d; */ /* Let theme handle color */
    opacity: 0.6; /* Lower opacity for placeholder text */
}
.matrix-cell-input:-ms-input-placeholder { /* IE 10-11 */
    /* color: #6c757d; */
    opacity: 0.6;
}
.matrix-cell-input::-ms-input-placeholder { /* Edge */
    /* color: #6c757d; */
    opacity: 0.6;
}


.matrix-cell-input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Custom focus shadow */
    /* background-color: #ffffff; */ /* Removed to respect Bootstrap dark theme */
}

/* Style for the table containing the inputs */
#matrixInputsContainer .table {
    margin-bottom: 0; /* Remove default table bottom margin */
    border-collapse: separate; /* Allow border-spacing for gaps between cells */
    border-spacing: 0.2rem; /* Add spacing between cells */
    width: auto; /* Allow table to shrink to content width */
    margin-left: auto; /* Center the table */
    margin-right: auto; /* Center the table */
}

#matrixInputsContainer .table td {
    padding: 0; /* Remove all padding from table cells, spacing is handled by border-spacing */
    border: none; /* Ensure no extra borders from Bootstrap's table-bordered */
    vertical-align: middle;
}

/* Override Bootstrap's table-bordered if it's still applied (though we removed the class in JS) */
#matrixInputsContainer .table.table-bordered > :not(caption) > * > * {
    border-width: 0;
}


/* Footer Styling */
footer {
    background-color: #343a40; /* Dark background for footer */
    color: white;
    padding: 20px 0;
}

/* Blog Post Modal Content Styling */
#blogPostModal .modal-body {
    text-align: left; /* Align text to the left for readability */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Use standard sans-serif font */
}

#blogPostModal .modal-body h1,
#blogPostModal .modal-body h2,
#blogPostModal .modal-body h3,
#blogPostModal .modal-body h4,
#blogPostModal .modal-body h5,
#blogPostModal .modal-body h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#blogPostModal .modal-body p {
    margin-bottom: 1rem;
}

#blogPostModal .modal-body code,
#blogPostModal .modal-body pre {
    font-family: 'Google Sans Code', monospace; /* Ensure code snippets are monospace */
}

#blogPostModal .modal-body code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

#blogPostModal .modal-body pre {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}

#blogPostModal .modal-body pre code {
    background-color: transparent;
    padding: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 30vh;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
}

.mono{
    font-family: 'Google Sans Code', monospace!important;
}
