﻿/* ===== Codeiks Brand Colors (from Logo) ===== */
:root {
    --codeiks-dark-blue: #1e3a8a;      /* Dark blue from logo text and main chevron */
    --codeiks-dark-blue-light: #1e40af; /* Lighter variant */
    --codeiks-teal: #14b8a6;            /* Teal/light green from small chevron */
    --codeiks-teal-light: #06b6d4;     /* Lighter teal variant */
    --codeiks-dark-blue-rgb: 30, 58, 138;
    --codeiks-teal-rgb: 20, 184, 166;
}

/* Hero Section SEO */
.seo-hero {
    position: relative;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #f9fafb 0%, #eef2f7 100%);
    overflow: hidden;
}

.seo-hero__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.seo-hero__content {
    flex: 1 1 500px;
    max-width: 600px;
    z-index: 2;
}

.seo-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a202c;
}

.seo-hero__lead {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.seo-hero__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

    .seo-hero__bullets li {
        margin-bottom: .5rem;
        font-size: 1rem;
        color: #2d3748;
        padding-left: 1.5rem;
        position: relative;
    }

        .seo-hero__bullets li::before {
            content: "✔";
            position: absolute;
            left: 0;
            top: 0;
            color: var(--codeiks-teal); /* Teal from logo */
            font-weight: bold;
        }

.seo-hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.seo-hero__trust {
    margin-top: 1rem;
}

.seo-hero__trust-badge {
    display: inline-block;
    font-size: .95rem;
    color: var(--codeiks-dark-blue);
    font-weight: 600;
}

.seo-hero__visual {
    flex: 1 1 500px;
    text-align: center;
    z-index: 1;
}

.seo-hero__img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.seo-hero__shape {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, rgba(59,130,246,0.15), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Accessibility helpers */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ===== Modern Hero Section (No Images) ===== */
.modern-hero {
    position: relative;
    padding: 5rem 0 6rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg,
        #0d2e3c 0%,
        #163d50 25%,
        #0d4a3a 55%,
        #0fc9a0 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.modern-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.modern-hero__gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(13, 46, 60, 0.92) 0%,
        rgba(13, 74, 58, 0.85) 50%,
        rgba(15, 201, 160, 0.75) 100%);
}

.modern-hero__pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 50%);
    background-size: 100% 100%;
    animation: patternMove 20s ease-in-out infinite;
}

@keyframes patternMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.1); }
}

.modern-hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.modern-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(15, 201, 160, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 201, 160, 0.5);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
    color: #0fc9a0;
}

.modern-hero__badge i {
    font-size: 1rem;
}

.modern-hero__title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    letter-spacing: -1px;
}

.modern-hero__lead {
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.modern-hero__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.modern-hero__feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(15, 201, 160, 0.25);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: left;
}

.modern-hero__feature-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modern-hero__feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 201, 160, 0.25);
    border: 1px solid rgba(15, 201, 160, 0.4);
    border-radius: 14px;
    font-size: 1.5rem;
    color: #0fc9a0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.modern-hero__feature-card:hover .modern-hero__feature-icon {
    background: rgba(15, 201, 160, 0.4);
    border-color: #0fc9a0;
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.modern-hero__feature-content {
    flex: 1;
}

.modern-hero__feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.modern-hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.modern-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.modern-hero__btn--primary {
    background: #0fc9a0;
    color: #0d2e3c;
    box-shadow: 0 8px 24px rgba(15, 201, 160, 0.35);
}

.modern-hero__btn--primary:hover {
    background: #fff;
    color: #0d2e3c;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 201, 160, 0.45);
}

.modern-hero__btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.modern-hero__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5);
}

.modern-hero__btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.modern-hero__btn:hover i {
    transform: translateX(4px);
}

.modern-hero__shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.modern-hero__shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(15, 201, 160, 0.1);
    border: 1px solid rgba(15, 201, 160, 0.15);
    animation: float 6s ease-in-out infinite;
}

.modern-hero__shape--1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.modern-hero__shape--2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 15%;
    animation-delay: 2s;
}

.modern-hero__shape--3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RTL Support */
.rtl .modern-hero__feature-card {
    text-align: right;
    flex-direction: row-reverse;
}

.rtl .modern-hero__btn:hover i {
    transform: translateX(-4px);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .modern-hero {
        padding: 4rem 0 5rem;
        min-height: auto;
    }

    .modern-hero__title {
        font-size: 2.5rem;
    }

    .modern-hero__lead {
        font-size: 1.15rem;
    }

    .modern-hero__features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modern-hero__feature-card {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .modern-hero {
        padding: 3rem 0 4rem;
    }

    .modern-hero__title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .modern-hero__lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .modern-hero__badge {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .modern-hero__feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .modern-hero__feature-title {
        font-size: 1rem;
    }

    .modern-hero__btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .modern-hero__cta {
        flex-direction: column;
    }

    .modern-hero__shape--1,
    .modern-hero__shape--2,
    .modern-hero__shape--3 {
        display: none;
    }
}

/* ===== System Modules Section ===== */
.system-modules {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.system-modules__header {
    margin-bottom: 3.5rem;
}

.system-modules__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.system-modules__subtitle {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.system-modules__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.system-module-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(2, 6, 23, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.system-module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--codeiks-dark-blue) 0%, var(--codeiks-dark-blue-light) 50%, var(--codeiks-teal) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.system-module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.12);
    border-color: #d1d5db;
}

.system-module-card:hover::before {
    transform: scaleX(1);
}

.system-module-card__icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--codeiks-dark-blue) 0%, var(--codeiks-teal) 100%);
    color: #fff;
    font-size: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(var(--codeiks-dark-blue-rgb), 0.3);
    transition: all 0.3s ease;
}

.system-module-card:hover .system-module-card__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 28px rgba(var(--codeiks-teal-rgb), 0.4);
}

.system-module-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.system-module-card__desc {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.system-module-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.system-module-card__features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
}

.system-module-card__features i {
    color: var(--codeiks-teal);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* RTL Support */
.rtl .system-module-card__features {
    text-align: right;
    direction: rtl;
}

.rtl .system-module-card__features li {
    flex-direction: row-reverse;
    text-align: right;
    justify-content: flex-end;
}

.rtl .system-module-card__features i {
    order: 2;
    margin-left: 0.75rem;
    margin-right: 0;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .system-modules {
        padding: 4rem 0;
    }

    .system-modules__title {
        font-size: 2rem;
    }

    .system-modules__subtitle {
        font-size: 1.05rem;
    }

    .system-modules__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .system-module-card {
        padding: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .system-modules {
        padding: 3rem 0;
    }

    .system-modules__title {
        font-size: 1.75rem;
    }

    .system-modules__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .system-module-card {
        padding: 1.5rem;
    }

    .system-module-card__icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .system-module-card__title {
        font-size: 1.25rem;
    }
}

/* ===== Modern Services Section (No Images) ===== */
.modern-services {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.modern-services__header {
    margin-bottom: 3.5rem;
}

.modern-services__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--codeiks-dark-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.modern-services__subtitle {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.modern-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.modern-service-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(2, 6, 23, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.modern-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--codeiks-dark-blue) 0%, var(--codeiks-teal) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.modern-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(var(--codeiks-dark-blue-rgb), 0.15);
    border-color: var(--codeiks-teal);
}

.modern-service-card:hover::before {
    transform: scaleX(1);
}

.modern-service-card__icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--codeiks-dark-blue) 0%, var(--codeiks-teal) 100%);
    color: #fff;
    font-size: 2.5rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(var(--codeiks-dark-blue-rgb), 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.modern-service-card__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.modern-service-card:hover .modern-service-card__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(var(--codeiks-teal-rgb), 0.4);
}

.modern-service-card:hover .modern-service-card__icon::after {
    width: 100px;
    height: 100px;
}

.modern-service-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--codeiks-dark-blue);
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.modern-service-card:hover .modern-service-card__title {
    color: var(--codeiks-teal);
}

.modern-service-card__desc {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* RTL Support */
.rtl .modern-service-card {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .modern-services {
        padding: 4rem 0;
    }

    .modern-services__title {
        font-size: 2rem;
    }

    .modern-services__subtitle {
        font-size: 1.05rem;
    }

    .modern-services__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .modern-service-card {
        padding: 2rem 1.5rem;
    }

    .modern-service-card__icon {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
    }
}

@media (max-width: 575.98px) {
    .modern-services {
        padding: 3rem 0;
    }

    .modern-services__title {
        font-size: 1.75rem;
    }

    .modern-services__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .modern-service-card {
        padding: 1.75rem 1.25rem;
        border-radius: 20px;
    }

    .modern-service-card__icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }

    .modern-service-card__title {
        font-size: 1.2rem;
    }

    .modern-service-card__desc {
        font-size: 0.95rem;
    }
}