/* ========= CSS Variables ========= */
:root {
    --primary-blue: #29448F;
    --primary-orange: #F4A02A;
    --dark-text: #2C3E50;
    --light-text: #7F8C8D;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --border-color: #E2E8F0;

    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;

    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(41, 68, 143, 0.05);
    --shadow-md: 0 10px 20px rgba(41, 68, 143, 0.08);
    --shadow-lg: 0 20px 40px rgba(41, 68, 143, 0.12);
}

/* ========= Reset & Global Setup ========= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light {
    background-color: var(--bg-light);
}

/* ========= Buttons ========= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(41, 68, 143, 0.3);
}

.btn-primary:hover {
    background-color: #1f3470;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 68, 143, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========= Header ========= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    position: relative;
    width: 30px;
    height: 35px;
}

.blue-part,
.orange-part {
    position: absolute;
    border-radius: 4px;
}

.blue-part {
    width: 14px;
    height: 35px;
    background-color: var(--primary-blue);
    transform: skewX(-20deg);
    left: 0;
}

.orange-part {
    width: 14px;
    height: 25px;
    background-color: var(--primary-orange);
    transform: skewX(20deg);
    right: 0;
    bottom: 0;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    line-height: 1;
}

.logo-text h1 span {
    color: var(--light-text);
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--dark-text);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-text);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* ========= Hero Section ========= */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(41, 68, 143, 0.1);
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--primary-orange);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--primary-orange);
    background: rgba(244, 160, 42, 0.1);
    padding: 12px;
    border-radius: 50%;
}

.floating-card h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.floating-card p {
    font-size: 0.8rem;
    color: var(--light-text);
}

.c1 {
    top: -20px;
    right: -20px;
}

.c2 {
    bottom: -20px;
    left: -20px;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ========= Sections Common ========= */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-orange);
    border-radius: 2px;
}

.section-header.text-center {
    text-align: center;
}

.section-header.text-center h2::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--light-text);
}

/* ========= About Section ========= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 24px;
    font-size: 1.05rem;
    color: var(--light-text);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 500;
}

.feature-list i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: var(--bg-light);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    background: white;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
}

/* ========= Services Section ========= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-blue);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .icon-box {
    color: var(--white);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(41, 68, 143, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card p {
    color: var(--light-text);
    transition: var(--transition);
}

/* ========= Compliance Section ========= */
.compliance {
    padding: 80px 0;
    background-image: linear-gradient(to right, #ffffff, #f8faff);
}

.compliance-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(41, 68, 143, 0.2);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.compliance-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-blue);
}

.compliance-content {
    max-width: 600px;
}

.compliance-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary-blue);
}

.compliance-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.compliance-content ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.compliance-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.compliance-content ul li i {
    color: var(--primary-orange);
    margin-top: 5px;
    font-size: 1.2rem;
}

.compliance-badge {
    text-align: center;
    background: var(--primary-blue);
    color: white;
    padding: 40px;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    transform: rotate(-15deg);
}

.compliance-badge i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--primary-orange);
}

.compliance-badge span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ========= Footer ========= */
.footer {
    background-color: #1a2538;
    color: #e2e8f0;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.brand-col p {
    color: #94a3b8;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-links a:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-orange);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: #cbd5e1;
}

.footer-col ul a:hover {
    color: var(--primary-orange);
    padding-right: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #cbd5e1;
}

.contact-info i {
    color: var(--primary-orange);
}

.footer-bottom {
    background-color: #111827;
    text-align: center;
    padding: 20px 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* ========= Responsive ========= */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid,
    .compliance-box {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .compliance-content {
        margin-bottom: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .header-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}