@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

/* Custom CSS for tyharg */

body {
    font-family: 'Lato', sans-serif;
}

/* Hero Section Styling */
.hero-section {
    position: relative; /* Needed for absolute positioning of canvas */
    /* Removed background image/gradient, canvas will handle visual background */
    min-height: 70vh; /* 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;
    /* Apply the dark overlay gradient directly to the canvas background */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
}

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

.hero-subtitle-bg {
    background-color: rgba(0, 0, 0, 0.5); /* 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 "tyharg" 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-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;
}

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

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