:root {
    --primary: #1e3a8a; /* Rich navy blue */
    --secondary: #2563eb;
    --text: #334155;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #16a34a;
    --error: #dc2626;
    --list-style-color: brown;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Smooth scroll transitions when clicking navigation links */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
}
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 5rem 0.5rem 1rem;
}
.header-main, .nav-secondary {
    margin: 0 1rem;
    border-radius: 8px;
    background-color: var(--primary);
    color: var(--white);
    /* padding: 0.5rem 1rem 0.5rem 1rem; */
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.nav-secondary {
    display: none;
    margin-top: 10px;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    margin-bottom: 0.25rem;
    background-color: cadetblue;
    border-radius: 8px;
}
.company-name {
    font-size: 2.2rem;
}
.company-logo, .company-logo2 {
    /*height: 1em;
    width: 1em;*/
    border-radius: 5px;
    background-color: white;
}
.company-logo {
    height: 48px;
    width: 48px;
}
.company-logo2 {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    width: 32px;
}
header .subtitle {
    font-size: 1rem;
    opacity: 0.85;
    /* margin-bottom: 1.5rem; */
}

/* Navigation Bar Styling */
nav {
    padding: 0.5rem 1rem 0.5rem 1rem;
    /* margin-top: 1rem; */
    flex: 1;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: disc;
    gap: 2rem;
    padding: 0;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    opacity: 0.85;
    transition: opacity 0.2s ease, border-bottom 0.2s ease;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    opacity: 1;
    border-bottom: 4px solid var(--white);
}

nav li:hover {
    color: var(--list-style-color);
}

main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Adjusted padding to offset sticky header when anchor linking */
section {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    /* scroll-margin-top: 160px; */
    scroll-margin-top: 90px; 
}

h2 {
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

ul {
    list-style: none;
}

li {
    /* margin-bottom: 1rem; */
    font-size: 1.05rem;
}

strong {
    color: var(--primary);
}

.flagship {
    background-color: #eff6ff;
    border-left: 4px solid var(--secondary);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1.5rem;
}

.flagship h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tech-card {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.tech-card h4 {
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.tech-card ul {
    padding-left: 0;
}

.tech-card li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.tech-card li::before {
    content: "•";
    color: var(--secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background-color: var(--light);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button {
    background-color: var(--secondary);
    color: var(--white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: var(--primary);
}

.form-message {
    display: none;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background-color: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.form-message.error {
    display: block;
    background-color: #fef2f2;
    color: var(--error);
    border: 1px solid #fca5a5;
}

footer {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

footer a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    header { position: static !important; justify-content: center; padding: 0.5rem;}
    header>nav { display: none; }
    .nav-secondary { display: block; }
    header h1 { font-size: 1.8rem; }
    /* nav ul { gap: 1rem; } */
    nav a { font-size: 0.95rem; }
    section { padding: 1.5rem; scroll-margin-top: 60px; }
}
