from pathlib import Path

/*
Theme Name: NGAIS Theme
Theme URI: https://www.nextgenerationaisolutions.com
Author: Jeff L Bowman
Author URI: https://www.nextgenerationaisolutions.com
Description: Custom dark theme for Next Generation AI Solutions blog.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ngais-theme
*/


# Merged style.css from user-provided base and layout-enhanced updates
# - Fix alternating alt-section (services layout)
# - Correct orphaned brace in .main-content block
# - Standardize section-title font size

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css">

merged_style_css = """
/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    font-family: 'Roboto', Arial, sans-serif;
    scroll-behavior: smooth;
    background: url('/images/3D_Graph_on_Black.jpg') center top no-repeat fixed;
    background-size: 60% auto;
    background-color: black;
    color: white;
    overflow-x: hidden;
    max-width: 100%;
}

/* Header */
header.site-header {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    left: 0;
    right: 0;
}
.logo-container {
    display: flex;
    align-items: center;
}
.logo-container img,
.footer-logo img,
.dvob-logo {
    height: 40px;
    width: auto;
    vertical-align: middle;
}
.company-name {
    font-size: 24px;
    font-weight: 500;
    color: white;
}

/* Navigation */
.top-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-right: 60px;
}
.top-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}
.top-nav ul li a:hover {
    color: #00ffff;
}

/* Hero Section */
.intro-box {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: rgba(0,0,0,0.7);
}
.floating-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
    max-width: 900px;
}
.intro-box h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffcc00;
    margin-bottom: 20px;
}
.intro-box p {
    font-size: 1.25rem;
    max-width: 700px;
}

/* CTA Buttons */
.cta-button,
button.cta-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #ffcc00;
    color: #000;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}
.cta-button:hover {
    background-color: #00ffff;
    color: black;
}

/* Content Section */
.main-content {
    padding: 60px 20px;
    background: rgba(0,0,0,0.7);
    max-width: 1200px;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
    text-align: center;
}
section.main-content:first-of-type {
    margin-top: 60px;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #ffcc00;
    text-transform: uppercase;
}

/* About Us */
.section-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}
.info-box {
    flex: 1 1 45%;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}
.info-box img {
    width:80%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}
.info-box h3 {
    color: #ffcc00;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Our Services */
.alt-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    gap: 2rem;
}
.alt-section:nth-child(even) {
    flex-direction: row-reverse;
}
.alt-section img {
    max-width: 48%;
    height: auto;
    border-radius: 8px;
}
.alt-text {
    flex: 1;
    text-align: left;
    padding: 0 20px;
}
.alt-text h3 {
    color: #ffcc00;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.alt-text p {
    color: white;
}

/* Footer */
footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    background-color: #000;
    color: white;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    margin-top: 4rem;
}
footer .footer-section {
    flex: 1;
    min-width: 220px;
    text-align: center;
}
footer .footer-logo {
    text-align: center;
}
footer a {
    color: white;
    text-decoration: none;
}
footer a:hover {
    color: #00ffff;
}
.divider {
    width: 1px;
    background-color: white;
    height: 60px;
}
.footer-logo img,
.dvob-logo {
    height: 40px;
    width: auto;
    vertical-align: middle;
}
img[src$="SDVOSB-LOGO.jpg"] {
    height: 40px !important;
    width: auto !important;
    vertical-align: middle;
    display: inline-block;
}

/* Form Styling */
form input,
form textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
}
form input::placeholder,
form textarea::placeholder {
    color: #ccc;
}
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.form-row input {
    flex: 1;
    min-width: 200px;
}
.contact-form input,
.contact-form textarea {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid #666;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #ccc;
}
.form-row.center {
    justify-content: center;
}

/* Global Headings and Links */
h1, h2, h3 {
    color: #ffcc00;
}
a {
    transition: color 0.3s ease-in-out;
}
a:hover {
    color: #00ffff;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .intro-box h1 {
        font-size: 1.8rem !important;
    }
    .intro-box p {
        font-size: 1rem !important;
    }
    .alt-section,
    .alt-section:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
    .alt-section img,
    .alt-text {
        width: 100%;
        max-width: 100%;
    }
    .alt-text {
        padding: 0 1rem;
        text-align: center;
    }
    footer {
        flex-direction: column;
        text-align: center;
    }
    .divider {
        display: none;
    }
    .top-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0;
    }
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.service-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.service-item img {
    width: 50%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-left: 20px;
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-item .alt-text {
    width: 50%;
    padding: 0 20px;
}

@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        flex-direction: column !important;
        text-align: center;
    }

    .service-item img,
    .service-item .alt-text {
        width: 100%;
        margin: 10px 0;
        padding: 0;
    }
}
/* Fade In Animation for Pages */
.fade-in {
    animation: fadeInAnimation 1.5s ease forwards;
}

@keyframes fadeInAnimation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

"""

# Save the merged and corrected style.css
style_path = Path("/mnt/data/style.css")
style_path.write_text(merged_style_css)
style_path
