/* Custom Architectural Variables */
:root {
    --bg-main: #0B0F19;
    --bg-surface: #131A2C;
    --bg-card: #1C263E;
    --accent-primary: #3B82F6;
    --accent-hover: #2563EB;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-secondary: #10B981;
    --text-primary: #F3F4F6;
    --text-muted: #9CA3AF;
    --border-color: #2D3A54;
    --font-family: 'Plus Jakarta Sans', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
}

/* Reset and Global Setup */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

body,
body.has-fixed-header {
    overflow-x: hidden;
    padding-top: var(--header-height);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 10001;
    padding: 0.75rem 1.25rem;
    background: var(--accent-primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
}

.skip-link:focus {
    top: 1rem;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--accent-primary);
}

.icon-inline {
    width: 1.35rem;
    height: 1.35rem;
    vertical-align: -0.2em;
    margin-right: 0.35rem;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reusable Components & Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
    background-color: var(--accent-glow);
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

.sub-title {
    display: block;
    color: var(--accent-primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Header */
.main-header {
    background-color: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 32px;
    width: auto;
    max-width: 180px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links .btn-secondary {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
}

/* Hero */
.hero-section {
    position: relative;
    padding: 6rem 0 5rem;
    text-align: center;
    background: radial-gradient(circle at top, #1E293B 0%, var(--bg-main) 70%);
}

.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        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: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 5;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-secondary);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-section h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* About */
.about-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-surface);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-primary);
    font-weight: 500;
}

/* Services */
.services-section {
    padding: 8rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
}

.service-icon {
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.service-link:hover {
    text-decoration: underline;
}

/* Clients */
.clients-section {
    padding: 5rem 0;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.clients-logos {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem 4rem;
}

.clients-logos img {
    height: 40px;
    width: auto;
    max-width: 200px;
    color: var(--text-muted);
    filter: grayscale(1) opacity(0.65);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.clients-logos li:hover img {
    filter: grayscale(0) opacity(1);
}

/* AI section */
.ai-section {
    padding: 8rem 0;
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.ai-column {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
}

.ai-column-governance {
    border-color: rgba(16, 185, 129, 0.35);
}

.ai-column h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.ai-column-intro {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.ai-list {
    list-style: none;
}

.ai-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.85rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.ai-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.ai-column-governance .ai-list li::before {
    background: var(--accent-secondary);
}

.methodology {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
}

.methodology-title {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #fff;
}

.methodology-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.methodology-steps li {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.methodology-steps strong {
    color: #fff;
    font-size: 1.05rem;
}

.methodology-steps li > span:last-child {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Web section */
.web-section {
    padding: 8rem 0;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.web-benefits {
    list-style: none;
    margin-bottom: 1.5rem;
}

.web-benefits li {
    margin-bottom: 0.85rem;
    color: var(--text-muted);
    padding-left: 0;
}

.case-study-badge {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-primary);
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.case-study-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    margin-bottom: 0.35rem;
}

.case-study-badge p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.web-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.metric-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Expertise */
.expertise-section {
    padding: 8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.split-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.spec-list {
    list-style: none;
}

.spec-list li {
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.spec-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.tech-stack-box {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tech-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 6px;
    font-family: ui-monospace, monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: bold;
    text-align: center;
}

/* Contact */
.contact-section {
    padding: 8rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-address {
    font-style: normal;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-address strong {
    color: var(--text-primary);
}

.contact-email a {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

.social-links {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.social-links a:hover {
    color: var(--accent-primary);
}

.contact-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
}

.secure-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.form-status {
    min-height: 0;
    font-size: 0.95rem;
    border-radius: 6px;
    padding: 0;
}

.form-status:not(:empty) {
    padding: 0.85rem 1rem;
}

.form-status.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--accent-secondary);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239CA3AF'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
.main-footer {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--accent-primary);
}

/* Blog styles live in /blog/blog.css */

/* Responsive */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .methodology-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 0;
        width: min(320px, 100%);
        height: calc(100vh - var(--header-height));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1.5rem;
        background: var(--bg-surface);
        border-left: 1px solid var(--border-color);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-links a {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--border-color);
        white-space: normal;
    }

    .nav-links .btn-secondary {
        margin-top: 1rem;
        text-align: center;
    }

    .services-grid,
    .layout-split,
    .form-row,
    .ai-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .methodology-steps {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 4rem 0 3rem;
    }

    .contact-box {
        padding: 1.5rem;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

    .container {
        padding: 0 1.25rem;
    }
}
