/* ==========================================
   LEKSO SYSTEMS INC. - BRAND ENGINE
   Theme: Carbon Gradient, 3D Bevels & Electric Cyan
   ========================================== */
   
:root {
    /* Exact Carbon & Slate Palette */
    --bg-carbon-base: #1e2227;
    --bg-carbon-dark: #121519;
    --bg-carbon-surface: #24282e;
    --bg-card-surface: #1a1e23;
    
    /* Bevel & Emboss Highlights */
    --emboss-light: rgba(255, 255, 255, 0.08);
    --emboss-shadow: rgba(0, 0, 0, 0.6);
    
    /* Text & Accents */
    --text-titanium-light: #d0d7de;
    --text-titanium-muted: #8b949e;
    --accent-cyan-line: #00f0ff;
    --accent-cyan-glow: rgba(0, 240, 255, 0.35);

    /* Matte Carbon Radial Gradient matching the reference image */
    --bg-carbon-gradient: radial-gradient(circle at 50% 40%, #343a42 0%, #121519 100%);
    --header-carbon-gradient: linear-gradient(180deg, #2f353d 0%, #1f2328 100%);
    --cyan-button-gradient: linear-gradient(135deg, #00f0ff 0%, #0052ff 100%);
    
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-carbon-gradient);
    color: var(--text-titanium-light);
    font-family: var(--font-family);
    line-height: 1.6;
    min-width: 320px;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
   
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-carbon-gradient);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0; /* Keeps the navbar sleek */
    position: relative;
}

/* Header Logo Image Integration */
.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 101; /* Keeps logo above the header border */
	perspective: 1000px; /* Enables true 3D spatial depth */
}

.header-logo-img {
    height: 116px; /* Slightly larger height so it breaks out */
    width: auto;
    object-fit: contain;
    display: block;
/* Pushes the bottom of the logo down past the header border */
    margin-bottom: -59px; 
/* Lock scaling anchor to the top edge so it pops forward/downward toward you */
    transform-origin: top left;
/* Smooth hardware-accelerated 3D transition */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.95));
    will-change: transform, filter;
}

.brand-logo:hover .header-logo-img {
	transform: scale(1.02) translateZ(20px) rotateX(4deg);
    filter: drop-shadow(0 10px 6px #000000);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-links a {
    color: var(--text-titanium-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-cyan-line);
}

.nav-links .nav-cta {
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 4px;
    color: var(--accent-cyan-line);
    background: rgba(0, 240, 255, 0.05);
    transition: all 0.25s ease;
}

.nav-links .nav-cta:hover {
    border-color: var(--accent-cyan-line);
    background: var(--accent-cyan-line);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
    padding: 6rem 0 5.5rem 0;
    text-align: center;
    position: relative;
    background-image: 
        radial-gradient(circle at 50% 30%, rgba(0, 82, 255, 0.2) 0%, rgba(18, 21, 25, 0) 70%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
}

.hero-matrix-glow {
    margin: 0 auto 1.5rem auto;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-matrix-glow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, transparent 70%);
    animation: pulseGlow 4s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

.hero-matrix-emblem {
    width: 90px;
    height: 90px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.6));
}

.hero-tagline {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--accent-cyan-line);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: #e2e8f0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-subtext {
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-titanium-muted);
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.85rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.btn-cyan {
    background: var(--cyan-button-gradient);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
    border: none;
}

.btn-cyan:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--text-titanium-light);
    background-color: rgba(26, 30, 35, 0.6);
}

.btn-outline:hover {
    border-color: var(--accent-cyan-line);
    color: var(--accent-cyan-line);
}

/* ==========================================
   SERVICES GRID
   ========================================== */
   
.services-section {
    padding: 5.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tagline {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--accent-cyan-line);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-titanium-light);
    margin-bottom: 0.8rem;
}

.section-subtext {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-titanium-muted);
    font-size: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-card-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 var(--emboss-light), 0 4px 12px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan-line);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--text-titanium-light);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-titanium-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
   
.about-section {
    padding: 5.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--bg-carbon-surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-titanium-light);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.about-text-lead {
    font-size: 1.1rem;
    color: var(--text-titanium-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-text {
    color: var(--text-titanium-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background-color: var(--bg-card-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.highlight-card:hover {
    border-color: var(--accent-cyan-line);
}

.highlight-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-cyan-line);
    line-height: 1;
}

.highlight-card h3 {
    font-size: 1.1rem;
    color: var(--text-titanium-light);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.highlight-card p {
    color: var(--text-titanium-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
   
.contact-section {
    padding: 5.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-wrapper {
    max-width: 750px;
    margin: 0 auto;
    background-color: var(--bg-card-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: 8px;
}

.inquiry-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.full-width {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-titanium-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    background-color: var(--bg-carbon-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-titanium-light);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    width: 100%;
}

.form-group textarea {
    resize: none;
    overflow-y: auto;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan-line);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--bg-carbon-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    flex: 1;
}

.radio-option input[type="radio"] {
    accent-color: var(--accent-cyan-line);
}

.questionnaire-fields {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.questionnaire-fields.hidden {
    display: none;
}

.btn-submit {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-submit:disabled {
    background: #2a2f35;
    color: var(--text-titanium-muted);
    cursor: not-allowed;
    box-shadow: none;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
   
.site-footer {
    background-color: var(--bg-carbon-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2.5rem 0;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-tagline {
    color: var(--text-titanium-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 320px;
    margin-top: 0.8rem;
}

.footer-col h4 {
    color: var(--text-titanium-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-contact a {
    color: var(--text-titanium-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-cyan-line);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-titanium-muted);
    font-size: 0.85rem;
}

/* ==========================================
   CONFIRMATION MODAL
   ========================================== */
   
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 21, 25, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--bg-card-surface);
    border: 1px solid var(--accent-cyan-line);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 90%;
    text-align: center;
}

.modal-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan-line);
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-titanium-light);
    margin-bottom: 0.75rem;
}

.modal-message {
    font-size: 0.95rem;
    color: var(--text-titanium-muted);
    margin-bottom: 1.75rem;
}

/* ==========================================
   RESPONSIVE OVERRIDES
   ========================================== */
   
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-titanium-light);
}

@media (max-width: 850px) {
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex !important; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-carbon-dark);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        padding: 1.5rem 0;
        display: none;
    }
    .nav-links.nav-active { display: flex !important; }
    .hero-content h1 { font-size: 2rem; }
    .inquiry-form, .questionnaire-fields { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}