﻿/* === Global Styles === */
html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1e293b;
    scroll-behavior: smooth;
}

/* === Inline SVG Icons === */
.icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.icon-inline {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

a, .btn-link {
    color: #3b82f6;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.6);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-outline-light:hover {
    background: #fff;
    color: #1e293b;
    border-color: #fff;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

h1:focus {
    outline: none;
}

/* === Nav Scroll & Home Logo === */
.site-nav {
    transition: padding 0.4s ease, background 0.3s;
}

.site-nav .nav-logo {
    transition: height 0.4s ease;
}

.site-nav.nav-home .nav-logo {
    height: 72px;
}

.site-nav.nav-home {
    padding: 1.25rem 0;
}

.site-nav.nav-home.nav-scrolled .nav-logo {
    height: 36px;
}

.site-nav.nav-home.nav-scrolled {
    padding: 0.75rem 0;
}

/* === Hero Section === */
.hero {
    background: #0f172a;
    color: #fff;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(30, 58, 95, 0.75) 50%, rgba(49, 46, 129, 0.78) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero .lead {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 600px;
}

.hero-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    opacity: 0.25;
    filter: brightness(2);
}

.hero-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

/* === Section Styles === */
.section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: #f8fafc;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: #0f172a;
    color: #e2e8f0;
    position: relative;
    z-index: 1;
}

/* === Animated Wave Background === */
.main-content {
    position: relative;
    overflow: hidden;
}

.wave-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.wave {
    position: absolute;
    top: -50%;
    left: 0;
    width: 40%;
    height: 200%;
    fill: none;
    stroke-width: 0.8;
    stroke-linecap: round;
    transform: rotate(90deg);
    transform-origin: center center;
}

.wave-1 {
    stroke: rgba(59, 130, 246, 0.08);
    animation: waveFloat 25s ease-in-out infinite;
    left: -5%;
}

.wave-2 {
    stroke: rgba(49, 46, 129, 0.06);
    animation: waveFloat 30s ease-in-out infinite reverse;
    left: 3%;
}

.wave-3 {
    stroke: rgba(59, 130, 246, 0.04);
    animation: waveFloat 35s ease-in-out infinite;
    left: 10%;
}

@keyframes waveFloat {
    0%, 100% { transform: rotate(90deg) translateX(0) translateY(0); }
    25% { transform: rotate(90deg) translateX(3%) translateY(-8px); }
    50% { transform: rotate(90deg) translateX(-2%) translateY(6px); }
    75% { transform: rotate(90deg) translateX(4%) translateY(-5px); }
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-dark .section-title {
    color: #f1f5f9;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    line-height: 1.7;
}

.section-dark .section-subtitle {
    color: #94a3b8;
}

/* === Service Cards === */
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.service-icon-blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.service-icon-purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.service-icon-green { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.service-icon-cyan { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.service-icon-orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.service-icon-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.service-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.service-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* === Feature / Value Props === */
.value-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.value-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.value-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #0f172a;
}

.value-item p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.6;
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #312e81 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* === Page Header === */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    line-height: 1.7;
}

/* === Case Study Meta === */
.case-meta-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
}

.case-meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

.case-meta-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

/* === Case Tags === */
.case-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.35rem;
    margin-top: 0.75rem;
}

.btn-outline-primary {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background: #3b82f6;
    color: #fff;
}

/* === Contact Form === */
.contact-form .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.contact-form .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form label {
    font-weight: 500;
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

/* === Stat cards === */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* === Misc === */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4N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IGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}