/* =========================================
   Kodilex Landing Page
   ========================================= */

/* --- Hero --- */
.kx-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f1923 0%, #1a2e44 50%, #0d3b5e 100%);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.kx-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 40%, rgba(0, 168, 255, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0, 212, 150, 0.08) 0%, transparent 60%);
}

.kx-hero-content {
    position: relative;
    z-index: 2;
}

.kx-badge {
    display: inline-block;
    background: rgba(0, 168, 255, 0.15);
    border: 1px solid rgba(0, 168, 255, 0.35);
    color: #00a8ff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.kx-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.kx-hero-title span {
    background: linear-gradient(90deg, #00a8ff, #00d496);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kx-hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.kx-btn-primary {
    background: linear-gradient(90deg, #00a8ff, #0078d4);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 168, 255, 0.4);
    color: #fff;
}

.kx-btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.kx-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Hero visual */
.kx-hero-visual {
    position: relative;
    z-index: 2;
}

.kx-code-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(10px);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
}

.kx-code-card .kx-line-comment  { color: #6a9955; }
.kx-code-card .kx-line-keyword  { color: #569cd6; }
.kx-code-card .kx-line-func     { color: #dcdcaa; }
.kx-code-card .kx-line-string   { color: #ce9178; }
.kx-code-card .kx-line-text     { color: #d4d4d4; }
.kx-code-card .kx-line-accent   { color: #00d496; }

.kx-floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.kx-floating-badge.top-left  { top: -18px; left: -20px; z-index:10; }
.kx-floating-badge.bot-right { bottom: -18px; right: -20px; }
.kx-floating-badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.kx-floating-badge .dot.green  { background: #00d496; box-shadow: 0 0 6px #00d496; }
.kx-floating-badge .dot.blue   { background: #00a8ff; box-shadow: 0 0 6px #00a8ff; }

/* --- Stats bar --- */
.kx-stats {
    background: #fff;
    padding: 48px 0;
    border-bottom: 1px solid #eef0f3;
}

.kx-stat-item {
    text-align: center;
    padding: 0 24px;
}

.kx-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0d3b5e;
    line-height: 1;
    margin-bottom: 6px;
}

.kx-stat-number span {
    color: #00a8ff;
}

.kx-stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kx-stat-divider {
    width: 1px;
    height: 50px;
    background: #e9ecef;
    margin: 0 auto;
}

/* --- Services --- */
.kx-services {
    padding: 96px 0;
    background: #f8fafc;
}

.kx-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #00a8ff;
    margin-bottom: 12px;
}

.kx-section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #0f1923;
    line-height: 1.2;
    margin-bottom: 16px;
}

.kx-section-sub {
    font-size: 1rem;
    color: #6c757d;
    max-width: 560px;
    line-height: 1.7;
}

.kx-service-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    height: 100%;
    border: 1px solid #eef0f3;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.kx-service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00a8ff, #00d496);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.kx-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.kx-service-card:hover::after {
    transform: scaleX(1);
}

.kx-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.kx-icon-blue   { background: rgba(0, 168, 255, 0.1); color: #00a8ff; }
.kx-icon-green  { background: rgba(0, 212, 150, 0.1); color: #00d496; }
.kx-icon-purple { background: rgba(108, 92, 231, 0.1); color: #6c5ce7; }
.kx-icon-orange { background: rgba(253, 150, 68, 0.1); color: #fd9644; }
.kx-icon-red    { background: rgba(255, 71, 87, 0.1);  color: #ff4757; }
.kx-icon-teal   { background: rgba(0, 184, 212, 0.1);  color: #00b8d4; }

.kx-service-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f1923;
    margin-bottom: 10px;
}

.kx-service-card p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.65;
    margin: 0;
}

/* --- About / CTA --- */
.kx-about {
    padding: 96px 0;
    background: #fff;
}

.kx-about-img-wrap {
    position: relative;
}

.kx-about-img-wrap img {
    border-radius: 20px;
    width: 100%;
    object-fit: cover;
}

.kx-about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, #0078d4, #00a8ff);
    color: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 120, 212, 0.35);
}

.kx-about-badge .big { font-size: 2rem; font-weight: 800; line-height: 1; }
.kx-about-badge .small { font-size: 0.75rem; opacity: 0.85; margin-top: 4px; }

.kx-check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.kx-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: #3d4f5c;
}

.kx-check-list li i {
    color: #00d496;
    margin-top: 3px;
    flex-shrink: 0;
}

/* --- Mobile App Download --- */
.kx-download {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a1520 0%, #0f1f2e 100%);
}

.kx-download-header {
    max-width: 680px;
    margin-bottom: 64px;
}

.kx-download-card {
    background: rgba(0, 168, 255, 0.05);
    border: 1px solid rgba(0, 168, 255, 0.18);
    border-radius: 20px;
    padding: 48px 40px;
}

.kx-download-icon {
    font-size: 5rem;
    color: #3ddc84;
    display: block;
    margin-bottom: 20px;
}

.kx-download-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.kx-download-steps-title {
    color: #fff;
    margin-bottom: 32px;
    font-size: 1.2rem;
}

.kx-download-step {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.kx-download-step h6 {
    color: #fff;
    margin-bottom: 4px;
    font-weight: 600;
}

.kx-download-step p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    margin: 0;
}

.kx-step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a8ff, #0078d4);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- CTA Banner --- */
.kx-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f1923 0%, #0d3b5e 100%);
    position: relative;
    overflow: hidden;
}

.kx-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(0, 168, 255, 0.12) 0%, transparent 70%);
}

.kx-cta-content { position: relative; z-index: 2; }

.kx-cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.kx-cta p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .kx-hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .kx-hero-visual {
        margin-top: 48px;
    }

    .kx-about-badge {
        right: 0;
        bottom: -10px;
    }

    .kx-stat-divider { display: none; }
}

@media (max-width: 576px) {
    .kx-floating-badge { display: none; }
    .kx-btn-primary, .kx-btn-outline { width: 100%; justify-content: center; }
}

/* --- Header Nav --- */
.kx-header-nav {
    background: rgba(15, 25, 35, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 0;
    overflow: visible;
    position: relative;
    z-index: 200;
}

/* Container must be positioned so logo can be absolute within it */
.kx-header-container {
    position: relative;
    overflow: visible;
}

/* Logo sits outside flex flow — doesn't affect navbar height */
.kx-header-brand {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    text-decoration: none;
}

.kx-header-logo {
    display: block;
    height: 90px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Reserves horizontal space in the flex row where logo visually sits */
.kx-logo-spacer {
    width: 180px;
    flex-shrink: 0;
}

.kx-header-link {
    color: rgba(255, 255, 255, 0.72) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.kx-header-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07);
}

.kx-btn-header {
    background: linear-gradient(90deg, #00a8ff, #0078d4);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kx-btn-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 168, 255, 0.4);
    color: #fff;
}

.kx-header-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    font-size: 0.9rem;
}

.kx-header-toggler:focus {
    box-shadow: none;
}

/* Language switcher inside Kodilex dark header */
.kx-header-nav .lang-switch {
    display: flex;
    gap: 4px;
}

.kx-header-nav .lang-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kx-header-nav .lang-btn:hover,
.kx-header-nav .lang-btn.active {
    background: rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.4);
    color: #00a8ff;
}

@media (max-width: 991px) {
    .kx-header-nav .navbar-collapse {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 10px;
        padding: 12px 0 4px;
    }

    .kx-header-link {
        padding: 10px 8px !important;
    }

    .kx-btn-header {
        margin-top: 8px;
        width: fit-content;
    }

    .kx-header-nav .lang-switch {
        margin-top: 8px;
    }
}
