:root {
    --brand-primary: #103b66;
    --brand-primary-dark: #091d5a;
    --brand-primary-light: #1c548a;
    --brand-accent: #009fe3;
    --brand-accent-hover: #0084c7;
    --brand-accent-light: #eaf4fb;
    --brand-success: #28a745;
    --brand-dark: #0e1b2a;
    --brand-light: #f4f7fb;
    --brand-gray: #64748b;
    --brand-border: #e2e8f0;
    --brand-white: #ffffff;
    --card-shadow: 0 10px 25px -5px rgba(16, 59, 102, 0.08), 0 8px 10px -6px rgba(16, 59, 102, 0.04);
    --card-shadow-hover: 0 20px 30px -10px rgba(0, 159, 227, 0.2), 0 10px 15px -5px rgba(16, 59, 102, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--brand-dark);
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Suppress default focus outline on headings focused by Blazor FocusOnNavigate */
h1:focus,
h1:focus-visible,
h2:focus,
h2:focus-visible,
h3:focus,
h3:focus-visible,
h4:focus,
h4:focus-visible,
h5:focus,
h5:focus-visible,
h6:focus,
h6:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

/* Navbar */
.ek-navbar {
    background-color: #ffffff;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 12px rgba(16, 59, 102, 0.05);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.ek-navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    transition: color 0.2s ease;
}

.ek-navbar-brand:hover {
    color: var(--brand-accent);
}

.ek-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.ek-navbar-brand:hover .ek-logo-img {
    transform: scale(1.02);
}

.ek-nav-link {
    color: #475569 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.ek-nav-link:hover {
    color: var(--brand-primary) !important;
    background-color: var(--brand-accent-light);
}

.ek-nav-link.active {
    color: var(--brand-primary) !important;
    background-color: var(--brand-accent-light);
    font-weight: 600;
}

.ek-lang-btn {
    background: #f8fafc;
    border: 1px solid var(--brand-border);
    color: var(--brand-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.ek-lang-btn:hover {
    background: var(--brand-accent-light);
    border-color: var(--brand-accent);
    color: var(--brand-primary);
}

.ek-lang-menu {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    min-width: 170px;
}

.ek-lang-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-dark);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

.ek-lang-item:hover, .ek-lang-item.active {
    background-color: var(--brand-accent-light);
    color: var(--brand-primary);
    font-weight: 600;
}

/* Hero Section */
.ek-hero {
    background: linear-gradient(135deg, #091d5a 0%, #103b66 60%, #0d284f 100%);
    color: #ffffff;
    padding: 4.5rem 0 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.ek-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 159, 227, 0.15) 0%, rgba(0, 159, 227, 0) 70%);
    pointer-events: none;
}

.ek-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 159, 227, 0.18);
    border: 1px solid rgba(0, 159, 227, 0.4);
    color: #aae0ff;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.ek-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.ek-hero-slogan {
    color: #009fe3;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.ek-hero-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 580px;
}

.ek-btn-primary {
    background-color: var(--brand-accent);
    border: 2px solid var(--brand-accent);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ek-btn-primary:hover {
    background-color: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 159, 227, 0.35);
}

.ek-btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ek-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

.ek-hero-image-wrapper {
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.ek-hero-image-wrapper:hover {
    transform: translateY(-4px);
}

.ek-hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Counters Section */
.ek-counters-section {
    background-color: #ffffff;
    margin-top: -2.5rem;
    position: relative;
    z-index: 10;
    margin-bottom: 3.5rem;
}

.ek-counter-card {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.ek-counter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.ek-counter-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(0, 159, 227, 0.4);
}

.ek-counter-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--brand-accent-light);
    color: var(--brand-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.ek-counter-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.ek-counter-label {
    color: var(--brand-gray);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Section Header */
.ek-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ek-section-tag {
    color: var(--brand-accent);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.ek-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.ek-section-subtitle {
    color: var(--brand-gray);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Feature Cards */
.ek-feature-card {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.ek-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(0, 159, 227, 0.4);
}

.ek-feature-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.ek-feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 0.85rem;
}

.ek-feature-desc {
    color: var(--brand-gray);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.98rem;
}

/* Product Cards */
.ek-product-card {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ek-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(0, 159, 227, 0.4);
}

.ek-product-image-box {
    background-color: var(--brand-primary-dark);
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ek-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ek-product-card:hover .ek-product-img {
    transform: scale(1.05);
}

.ek-product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--brand-accent);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.ek-product-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ek-product-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 0.75rem;
}

.ek-product-desc {
    color: var(--brand-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.ek-product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ek-btn-sm-primary {
    background-color: var(--brand-accent);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    border: 1px solid var(--brand-accent);
}

.ek-btn-sm-primary:hover {
    background-color: var(--brand-accent-hover);
    color: #ffffff;
}

.ek-btn-sm-outline {
    background-color: #ffffff;
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.ek-btn-sm-outline:hover {
    background-color: var(--brand-primary);
    color: #ffffff;
}

/* Project Cards */
.ek-project-card {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ek-project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(0, 159, 227, 0.4);
}

.ek-project-image-box {
    background-color: var(--brand-primary-dark);
    height: 180px;
    overflow: hidden;
    position: relative;
}

.ek-project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ek-project-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ek-project-client {
    color: var(--brand-accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.ek-project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 0.75rem;
}

.ek-project-desc {
    color: var(--brand-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.ek-tech-pill {
    background-color: var(--brand-light);
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--brand-border);
    display: inline-block;
    margin-right: 4px;
    margin-bottom: 4px;
}

/* Testimonials */
.ek-testimonials-section {
    background-color: var(--brand-light);
    padding: 4.5rem 0;
}

.ek-testimonial-card {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.ek-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.ek-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.ek-testimonial-quote {
    color: var(--brand-dark);
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.ek-client-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ek-client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-accent);
}

.ek-client-name {
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.ek-client-role {
    color: var(--brand-gray);
    font-size: 0.82rem;
    margin: 0;
}

/* Contact Page Form */
.ek-contact-info-card {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 2.5rem 2rem;
    box-shadow: var(--card-shadow);
    height: 100%;
}

.ek-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 1.75rem;
}

.ek-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 159, 227, 0.2);
    color: var(--brand-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ek-contact-form-card {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

.ek-form-label {
    font-weight: 600;
    color: var(--brand-primary);
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
}

.ek-form-control {
    border: 1.5px solid var(--brand-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s;
    width: 100%;
}

.ek-form-control:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.15);
    outline: none;
}

/* Footer */
.ek-footer {
    background-color: var(--brand-primary-dark);
    color: #ffffff;
    padding: 4rem 0 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ek-footer-logo-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ek-footer-logo {
    height: 38px;
    width: auto;
    background: #ffffff;
    padding: 3px 5px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.ek-footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ek-footer-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.ek-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--brand-accent);
}

[dir="rtl"] .ek-footer-heading::after {
    left: auto;
    right: 0;
}

.ek-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ek-footer-links li {
    margin-bottom: 0.65rem;
}

.ek-footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ek-footer-links a:hover {
    color: var(--brand-accent);
    transform: translateX(3px);
}

[dir="rtl"] .ek-footer-links a:hover {
    transform: translateX(-3px);
}

.ek-footer-contact-item {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ek-footer-contact-item i {
    color: var(--brand-accent);
    margin-top: 3px;
}

.ek-footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Admin Dashboard Specific */
.ek-admin-sidebar {
    background-color: var(--brand-primary);
    color: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
}

.ek-admin-nav-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ek-admin-nav-item:hover, .ek-admin-nav-item.active {
    background-color: var(--brand-accent);
    color: #ffffff;
    font-weight: 600;
}

.ek-admin-card {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}
