/* --- Global Styles --- */
:root {
    /* Exact dark blue sampled from the Ockham Engineering logo */
    --main-navy: #191E44; 
    --accent-light: #E0E7FF; 
    --text-color: #333;
    --light-bg: #F8FAFC;
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

body {
    /* Adjust this pixel value to match the exact physical height of your header layout */
    padding-top: 90px; 
}

/* --- Split Header Layout --- */
header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Left, Center, Right columns */
    align-items: center;
    background-color: #f4f6f8;
}

/* Navigation Base */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--main-navy);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: opacity 0.2s ease;
}

nav a:hover {
    opacity: 0.7;
}

/* Alignments */
.nav-left ul {
    justify-content: flex-start;
}

.nav-right ul {
    justify-content: flex-end;
}

.logo-container {
    text-align: center;
}

.logo-container .logo {
    max-height: 45px; /* Keeps the logo clean and compact in the bar */
    display: block;
    margin: 0 auto;
}

/* Instagram Icon Custom Styling */
.instagram-icon {
    font-size: 1.3rem;
    color: var(--main-navy);
    display: flex;
    align-items: center;
}

/* --- Hero Section Background Update --- */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Updated background overlay matching your true logo dark blue */
    background-color: rgba(25, 30, 68, 0.85); 
}
/* --- Intro Section Styles --- */
.intro-section {
    padding: 60px 0; /* Creates breathing room above and below the text */
    background-color: #fff;
    text-align: center; /* Centers all headers and paragraphs inside */
}

.intro-section h2 {
    color: var(--main-navy);
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.intro-section p {
    color: #555;
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 auto;
}

/* Helper class to stop the text from stretching too wide on massive screens */
.container-narrow {
    max-width: 800px; 
}

/* --- Inquiry Button Styles --- */
.btn-inquire {
    display: inline-block;
    margin-top: 30px; /* Separates the button from the text above */
    background-color: var(--main-navy);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 14px 36px;
    border-radius: 6px; /* Creates the clean, rounded-square shape */
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Subtle hover effect to show the button is interactive */
.btn-inquire:hover {
    background-color: #232a5f; /* Slightly lighter shade of your navy */
    color: #ffffff;
}

/* Slight press down effect when clicked */
.btn-inquire:active {
    transform: scale(0.98);
}

/* --- Hardware Images Layout --- */
.hardware-showcase {
    display: flex;
    gap: 20px;
    margin-top: 50px; /* Space below the inquiry button */
    justify-content: center;
}

.hardware-img {
    width: 50%; /* Splitting the 800px container equally */
    max-width: 380px; /* Prevents images from getting too massive */
    height: auto;
    border-radius: 4px; /* Subtle crisp edge rounding */
    object-fit: cover; /* Keeps image ratios proportional if they differ */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* --- Footer Layout & Elements --- */
footer {
    background-color: #ffffff; /* Keeping the background clean/white */
    padding: 60px 0 30px 0;
    border-top: 1px solid #eaeaea;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px; /* Perfect uniform spacing down the center column */
}

.footer-logo {
    max-height: 35px; /* Slightly smaller presentation for the footer link */
    transition: transform 0.2s ease;
}

.footer-logo:hover {
    transform: scale(1.05); /* Quick micro-interaction on hover */
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.footer-nav a {
    text-decoration: none;
    color: var(--main-navy);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.copyright p {
    color: #888888;
    font-size: 0.85rem;
    margin: 10px 0 0 0;
    letter-spacing: 0.5px;
}

/* Responsive adjustment for mobile screens */
@media (max-width: 600px) {
    .hardware-showcase {
        flex-direction: column;
        align-items: center;
    }
    .hardware-img {
        width: 100%;
    }
    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- About Page Specific Styles --- */

/* Bio Layout */
.about-bio-section {
    padding: 80px 0 60px 0;
    background-color: #ffffff;
}

.bio-grid {
    display: flex;
    align-items: center;
    gap: 60px; /* Spacing between your text and your picture */
}

.bio-text {
    flex: 1.2; /* Gives the text column slightly more width than the photo */
}

.bio-text h1 {
    color: var(--main-navy);
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.bio-text p {
    color: #444444;
    font-size: 1.15rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.bio-image-container {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.bio-img {
    width: 100%;
    max-width: 380px; /* Keeps your profile image crisp and perfectly proportioned */
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Solid Blue Divider Line */
.blue-divider {
    border: none;
    height: 3px;
    background-color: var(--main-navy); /* Uses your exact dark blue */
    margin: 20px auto;
    opacity: 1;
}

/* Testimonial Section */
.about-testimonial-section {
    padding: 60px 0 80px 0;
    text-align: center;
}

.testimonial-container {
    max-width: 800px; /* Keeps the quote length readable */
    margin: 0 auto;
}

.quote-text {
    font-size: 1.35rem;
    color: #333333;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 15px;
}

.quote-author {
    font-size: 1rem;
    color: #666666;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
}

.cta-wrapper {
    margin-top: 20px;
}

/* Responsive adjustment for tablet/mobile viewports */
@media (max-width: 768px) {
    .bio-grid {
        flex-direction: column-reverse; /* Stacks text over image on phones */
        gap: 40px;
    }
    .bio-text {
        text-align: center;
    }
    .bio-img {
        max-width: 280px;
    }
    .quote-text {
        font-size: 1.15rem;
    }
}

/* --- Services Page Layout --- */
.services-section {
    padding: 80px 0 100px 0;
    background-color: #ffffff;
}

.services-title {
    text-align: center;
    color: var(--main-navy);
    font-size: 2.5rem;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
}

/* Three-column dynamic row layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Individual Image Links */
.service-card {
    display: block;
    height: 400px; /* Controls the vertical height of your service image slots */
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Dark layout shield so text remains easy to read over background images */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(25, 30, 68, 0.4), rgba(25, 30, 68, 0.75));
    transition: background 0.3s ease;
}

/* Centered text formatting */
.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.card-content h2 {
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

/* Smooth Interactive Hover Effects */
.service-card:hover {
    transform: translateY(-5px); /* Card subtly lifts off the page */
    box-shadow: 0 12px 25px rgba(25, 30, 68, 0.15);
}

.service-card:hover .card-overlay {
    background: linear-gradient(to bottom, rgba(25, 30, 68, 0.5), rgba(25, 30, 68, 0.85)); /* Darkens image slightly on hover */
}

/* Responsive adjustment for standard mobile screens */
@media (max-width: 768px) {
    .service-card {
        height: 300px; /* Slightly shorter cards on phones for easier scrolling */
    }
}

/* --- Gallery Page Layout --- */
.gallery-section {
    padding: 80px 0 100px 0;
    background-color: #ffffff;
}

.gallery-title {
    text-align: center;
    color: var(--main-navy);
    font-size: 2.5rem;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
}

/* 3-Column Layout Grid for 3x3 presentation */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Enforces 3 equal columns */
    gap: 20px; /* Space between photos */
}

/* Gallery Container Frame */
.gallery-item {
    position: relative;
    height: 300px; /* Uniform height for a perfect grid look */
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes all images scale uniformly without distortion */
    display: block;    /* Removes inline spacing gaps at the bottom of containers */
    transition: filter 0.3s ease;
}

/* Gray-out Hover Overlay Shield */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 30, 68, 0.85); 
    display: flex;
    justify-content: center; /* Horizontally centers the text box */
    align-items: center;     /* Vertically centers the text box */
    padding: 20px;           
    box-sizing: border-box;
    opacity: 0; 
    transition: opacity 0.3s ease;
    
    /* FIX: Tells the browser to ignore the overlay layer when clicking, 
       allowing clicks to pass straight through to the parent container */
    pointer-events: none; 
}

/* Content wrapper within hidden overlay */
.overlay-text {
    text-align: center;
    width: 100%;
    color: #ffffff;
    transform: translateY(10px); /* Subtle lift animation on appearance */
    transition: transform 0.3s ease;
}

.overlay-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.overlay-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}

/* Interactive Hover States */
.gallery-item:hover .gallery-overlay {
    opacity: 1; /* Reveals the dark screen and text */
}

.gallery-item:hover .overlay-text {
    transform: translateY(0); /* Completes the clean lift motion */
}

.gallery-item:hover .gallery-img {
    filter: grayscale(30%) brightness(80%); /* Directly applies a slight grayed-out effect to the photo */
}

/* Responsive Rules for Mobile Devices */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* Drops to 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 column stack on standard cellphones */
        gap: 15px;
    }
    .gallery-item {
        height: 250px;
    }
}

/* --- Navigation Dropdown System --- */

/* Establish a positioning context for the parent list item */
.nav-right ul li.dropdown {
    position: relative;
}

/* Micro-adjustment for the little down arrow icon */
.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 4px;
    vertical-align: middle;
    opacity: 0.8;
}

/* The actual hidden dropdown container block */
.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%; /* Sits perfectly beneath the main header text line */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Center-aligns the dropdown menu box */
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(25, 30, 68, 0.12); /* Adds a premium depth shadow */
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    pointer-events: none; /* Prevents accidental clicks while hidden */
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000; /* Ensures it floats over text/hero elements below it */
    background-color: #f4f6f8; 
    border: 1px solid #e2e8f0;
}

/* Forces the sub-links to stack vertically instead of running horizontally */
.dropdown-menu {
    flex-direction: column;
    gap: 0;
}

.dropdown-menu li {
    width: 100%;
}

/* Formatting the individual submenu links */
.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--main-navy);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0;
    text-align: left;
    white-space: nowrap; /* Prevents text from breaking into two lines awkwardly */
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* Hover state styling inside the box */
.dropdown-menu li a:hover {
    background-color: var(--light-bg);
    opacity: 1;
    color: #000000;
}

/* --- The Hover Trigger Mechanism --- */
.nav-right ul li.dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0); /* Smoothly glides up into place */
}

/* --- Projects & Updates Feed Layout --- */
.projects-section {
    padding: 80px 0 100px 0;
    background-color: var(--light-bg); /* Uses light grey background to frame individual white cards */
}

.projects-title {
    text-align: center;
    color: var(--main-navy);
    font-size: 2.5rem;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
}

.projects-feed {
    display: flex;
    flex-direction: column;
    gap: 45px; /* Spacing between independent entries */
}

/* Individual Project Feed Block */
.project-card {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2f6;
}

.project-image-wrapper {
    width: 100%;
    height: 35px;
    height: 380px; /* Enforces a uniform hero height for project images */
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 25px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #eaeaea;
}

/* Metadata Row (Tag + Date) */
.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-tag {
    background-color: var(--main-navy);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.project-date {
    color: #888888;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-card h2 {
    color: var(--main-navy);
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.project-card p {
    color: #444444;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Mobile Responsive Optimization */
@media (max-width: 768px) {
    .project-card {
        padding: 20px;
    }
    .project-image-wrapper {
        height: 220px; /* Scales down image size elegantly for smaller screens */
        margin-bottom: 15px;
    }
    .project-card h2 {
        font-size: 1.4rem;
    }
    .project-card p {
        font-size: 1rem;
    }
}

/* --- Storefront System Layout --- */
.store-section {
    padding: 80px 0 100px 0;
    background-color: var(--light-bg); /* Muted slate/grey behind white cards */
}

.store-title {
    text-align: center;
    color: var(--main-navy);
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.store-subtitle {
    text-align: center;
    color: #666666;
    font-size: 1.15rem;
    margin: 0 auto 50px auto;
    max-width: 600px;
}

/* Responsive grid grouping rows of 2 or more products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Individual Product Showcase Cards */
.product-card {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-image-box {
    width: 100%;
    height: 350px;
    background-color: #f1f5f9;
    overflow: hidden;
    border-bottom: 1px solid #eef2f6;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ensures uniform card alignment height down the row grid */
}

.product-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888888;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    color: var(--main-navy);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.product-desc {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

/* Bottom Row inside the detail box anchoring prices and action button */
.product-purchase {
    margin-top: auto; /* Pushes the pricing/buy elements flush to card floor */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px dashed #eaeaea;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--main-navy);
}

/* Direct Order Form Funnel Button */
.btn-buy {
    display: inline-block;
    background-color: var(--main-navy);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 4px; /* Clean rounded square look matching home button */
    transition: background-color 0.15s ease;
}

.btn-buy:hover {
    background-color: #232a5f;
}

/* Mobile Layout Scaling overrides */
@media (max-width: 600px) {
    .product-image-box {
        height: 200px;
    }
    .product-details {
        padding: 20px;
    }
}

/* --- Gallery Lightbox Modal System --- */
.lightbox-modal {
    position: fixed;
    z-index: 2000; /* Floats completely over everything including navigation */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Dims background behind modal window */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Activates window instantly when triggered */
.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* The Blue Parameter Framework */
.lightbox-frame {
    background-color: var(--main-navy); /* Solid dark blue border frame */
    padding: 15px; /* Creates the blue outer parameter */
    border-radius: 8px;
    max-width: 85vw;
    width: 650px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.lightbox-frame img {
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    background-color: #000;
    border-radius: 4px 4px 0 0;
}

/* Taller Section on the bottom for text content */
.lightbox-caption {
    background-color: var(--main-navy);
    color: #ffffff;
    padding: 30px 20px; /* Taller top/bottom padding for room */
    text-align: left;
    border-radius: 0 0 4px 4px;
}

.lightbox-caption h3 {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.lightbox-caption p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--accent-light); /* Uses your light line color for premium legibility text contrast */
}

/* Close Button (X) */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--accent-light);
}

/* Responsive constraints for smaller tablets and mobile screens */
@media (max-width: 768px) {
    .lightbox-frame {
        width: 90vw;
        padding: 8px;
    }
    .lightbox-caption {
        padding: 20px 15px;
    }
    .lightbox-caption h3 {
        font-size: 1.15rem;
    }
    .lightbox-caption p {
        font-size: 0.95rem;
    }
}

/* --- Inquiry Intake Form Layout --- */
.inquiry-section {
    padding: 80px 0 100px 0;
    background-color: var(--light-bg); /* Matches slate background from store/projects */
}

.inquiry-title {
    text-align: center;
    color: var(--main-navy);
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.inquiry-subtitle {
    text-align: center;
    color: #555555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 auto 50px auto;
}

/* Centralized White Form Panel */
.inquiry-form {
    background-color: #ffffff;
    padding: 45px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2f6;
}

/* Layout container splitting items side-by-side on desktop */
.form-group-row {
    display: flex;
    gap: 25px;
}

.form-group-row .form-group {
    flex: 1; /* Grants equal 50/50 horizontal width weighting */
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--main-navy);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Master Inputs Overhaul (Text boxes, drop downs, and textareas) */
.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form select,
.inquiry-form textarea {
    font-family: var(--font-family);
    font-size: 1rem;
    padding: 12px 16px;
    border: 1px solid #ccd4dc;
    border-radius: 4px;
    color: #333333;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Form Interactivity Focus Glow states */
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    border-color: var(--main-navy);
    box-shadow: 0 0 0 3px rgba(25, 30, 68, 0.1); /* Subtle dark blue glow ring */
}

.inquiry-form textarea {
    resize: vertical; /* Permits vertical height resizing while blocking width warping */
}

/* Submit Form Action Button Override */
.btn-submit-form {
    display: block;
    width: 100%; /* Spans full length of form panel floor */
    background-color: var(--main-navy);
    color: #ffffff;
    border: none;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 16px;
    border-radius: 6px; /* Dark blue rounded square styling alignment */
    cursor: pointer;
    transition: background-color 0.15s ease;
    margin-top: 10px;
}

.btn-submit-form:hover {
    background-color: #232a5f;
}

/* Responsive constraints collapse row fields to independent rows on smaller phones */
@media (max-width: 650px) {
    .inquiry-form {
        padding: 25px 20px;
    }
    .form-group-row {
        flex-direction: column;
        gap: 0;
    }
}

/* --- Service Specific Landing Page Styles --- */
.service-profile-page {
    padding: 80px 0 100px 0;
    background-color: #ffffff;
}

/* Page Title Text Styling */
.service-profile-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.service-profile-header h1 {
    color: var(--main-navy);
    font-size: 2.5rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.service-profile-header p {
    color: #555555;
    font-size: 1.15rem;
    line-height: 1.65;
}

/* Dynamic 3-Column Profile Layout Row */
.showcase-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Individual technical asset presentation frames */
.showcase-card {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.showcase-img-frame {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #f8fafc;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.showcase-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--main-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.showcase-details h3 {
    color: var(--main-navy);
    font-size: 1.35rem;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.showcase-details p {
    color: #444444;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Centered Button Wrapper Bottom Frame */
.service-action-container {
    text-align: center;
    margin-top: 20px;
}

/* Mobile Responsiveness adjustments for display screens */
@media (max-width: 768px) {
    .service-profile-header h1 {
        font-size: 2rem;
    }
    .showcase-img-frame {
        height: 200px;
    }
}

header {
    position: fixed;        /* Locks the header in place relative to the screen browser window */
    top: 0;                 /* Pins it tightly to the absolute top edge */
    left: 0;                /* Aligns it perfectly to the left boundary */
    width: 100%;            /* Forces the navigation bar to span across the entire screen width */
    z-index: 1500;          /* Keeps it floating above all body text, cards, and section containers */
    background-color: #f4f6f8;
    border-bottom: 1px solid #e2e8f0;
}

/* --- Home Page Slideshow Layout System --- */
.slideshow-container {
    max-width: 100%;
    position: relative; /* Crucial anchor point for the arrows */
    margin: 40px auto 50px auto;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 500px; 
    display: block; /* Overrides any unintended flex/grid warping from parent layout */
}



/* Force inner images to match container framing parameters seamlessly */
.mySlides {
    display: none;
    width: 100%;
    height: 100%;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents stretching regardless of original aspect ratios */
}

/* Manual Left/Right Nav Arrows */
.prev-slide {
    left: 0 !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.5rem;
    transition: background-color 0.2s ease;
    user-select: none;
    z-index: 10;
    background-color: rgba(25, 30, 68, 0.3);
    border-radius: 0 4px 4px 0;
}

/* Force Right Arrow to snap strictly to the far-right bounding frame border */
.next-slide {
    right: 0 !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.5rem;
    transition: background-color 0.2s ease;
    user-select: none;
    z-index: 10;
    background-color: rgba(25, 30, 68, 0.3);
    border-radius: 4px 0 0 4px;
}

.prev-slide:hover, .next-slide:hover {
    background-color: var(--main-navy);
    color: #ffffff;
}

/* Indicators Frame Container (Anchored to lower right corner) */
.slideshow-indicators {
    position: absolute;
    bottom: 25px;
    right: 25px; /* Pins container explicitly into right-hand corner floor */
    z-index: 12;
    display: flex;
    gap: 10px;
    background-color: rgba(25, 30, 68, 0.6); /* Translucent dark blue shield backdrop */
    padding: 8px 14px;
    border-radius: 20px;
}

/* Navigation Indicator Dots */
.slide-dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.slide-dot:hover, .slide-dot.active-dot {
    background-color: #ffffff; /* Turns solid bright white when active */
    transform: scale(1.2);     /* Subtle expansion accent bump */
}

/* Premium Cross-Fade Transition Animation */
.fade {
    animation-name: slideFade;
    animation-duration: 0.8s;
}

@keyframes slideFade {
    from { opacity: 0.4; } 
    to { opacity: 1; }
}

/* Mobile view port scaling override */
@media (max-width: 768px) {
    .slideshow-container {
        height: 320px; /* Shorter sizing limits for responsive tablet/phone grids */
    }
    .slideshow-indicators {
        bottom: 15px;
        right: 15px;
        padding: 6px 10px;
    }
}

/* --- Projects & Updates Feed Layout (Slideshow Mode) --- */
.projects-section {
    padding: 80px 0 100px 0;
    background-color: var(--light-bg);
}

.projects-title {
    text-align: center;
    color: var(--main-navy);
    font-size: 2.5rem;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
}

.projects-feed {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.project-card {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2f6;
}

/* Local Slider Anchor Shell */
.project-slider-wrapper {
    width: 100%;
    height: 420px; /* Enhanced view window size */
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 25px;
    background-color: #eaeaea;
}

.project-slides-track {
    width: 100%;
    height: 100%;
    position: relative;
}

/* absolute positioning stacks all pictures cleanly on top of each other */
.project-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1;
}

/* Reveal style rule triggered by index handler script */
.project-slide-img.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Localized Carousel Controls */
.proj-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(25, 30, 68, 0.4);
    color: #ffffff;
    border: none;
    font-size: 1.25rem;
    padding: 12px 16px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease;
    user-select: none;
}

.proj-nav-btn:hover {
    background-color: var(--main-navy);
}

.prev-btn { left: 0; border-radius: 0 4px 4px 0; }
.next-btn { right: 0; border-radius: 4px 0 0 4px; }

/* Meta & Text formatting */
.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-tag {
    background-color: var(--main-navy);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.project-date {
    color: #888888;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-card h2 {
    color: var(--main-navy);
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.project-card p {
    color: #444444;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Tablet & Mobile Layout Corrections */
@media (max-width: 768px) {
    .project-card { padding: 20px; }
    .project-slider-wrapper { height: 260px; margin-bottom: 15px; }
    .project-card h2 { font-size: 1.4rem; }
    .project-card p { font-size: 1rem; }
    .proj-nav-btn { padding: 8px 12px; font-size: 1rem; }
}