/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
    --color-primary: #002a5d;
    /* Primary Blue */
    --color-primary-hover: #001f44;
    --color-accent: #c9a227;
    /* Gold accent */
    --color-accent-hover: #b08d20;

    --color-bg-main: #f7f9fc;
    /* Off-White */
    --color-bg-alt: #fdfffe;
    /* Main White */
    --color-text-main: #1a1a1a;
    --color-text-muted: #555555;
    --color-border: #e0e5ea;

    --font-main: 'Cairo', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --shadow-soft: 0 4px 15px rgba(0, 42, 93, 0.05);
    --shadow-card: 0 10px 30px rgba(0, 42, 93, 0.08);
    --shadow-accent: 0 10px 25px rgba(201, 162, 39, 0.2);
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
}

body {
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-bg-main);
}



a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

.footer-map-link {
    color: inherit !important;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    transition: var(--transition-normal);
}

.footer-map-link:hover {
    color: var(--color-accent) !important;
    transform: translateX(-5px);
}

.footer-map-link .external-icon {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-right: 5px;
    transition: var(--transition-normal);
}

.footer-map-link:hover .external-icon {
    opacity: 1;
    transform: scale(1.2);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 0.5em;
    line-height: 1.3;
    color: var(--color-primary);
}

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-30 {
    margin-top: 30px;
}

.mr-10 {
    margin-right: 10px;
}

.w-100 {
    width: 100%;
}

/* =========================================
   LAYOUT & CONTAINERS
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
    position: relative;
    background-color: var(--color-bg-main);
    border-bottom: 1px dashed var(--color-accent);
}

.bg-white {
    background-color: var(--color-bg-alt);
    border-bottom: none;
}

.bg-primary, .achievements, #licences {
    border-bottom: none !important;
}

.bg-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-alt);
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary p {
    color: var(--color-bg-alt);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-outline-accent {
    background-color: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-outline-accent:hover {
    background-color: var(--color-accent);
    color: #fff;
}

/* =========================================
   TYPOGRAPHY & HEADINGS
   ========================================= */
.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background-color: rgba(201, 162, 39, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    width: fit-content;
    align-self: flex-start;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--color-primary);
}

.section-title span {
    color: var(--color-accent);
}

.section-header.center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* =========================================
   HEADER & NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: rgba(253, 255, 254, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-soft);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-wrap: nowrap;
}

.logo-img {
    height: 55px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0px;
}

.company-name-main {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.company-name-sub {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.2;
    white-space: nowrap;
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-main);
    position: relative;
    padding: 5px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-accent);
    transition: var(--transition-normal);
    border-radius: 3px;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-primary);
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--color-bg-alt);
    z-index: 2000;
    padding: 80px 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-normal);
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 30px;
    left: 30px;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-list a {
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--color-text-main);
    transition: var(--transition-fast);
}

.mobile-nav-list a:hover {
    background-color: rgba(0, 42, 93, 0.05);
    color: var(--color-primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* background: url('../images/hero-bg.jpg') center/cover no-repeat; /* Optional image bg */
    background: url('../../assets/bgimage.jpg') center/cover no-repeat;
    /* Optional image bg */
}

/* Soft elegant overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(247, 249, 252, 0.85) 0%, rgba(253, 255, 254, 0.65) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    text-align: right;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 5px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* =========================================
   ABOUT US SECTION
   ========================================= */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1400px; /* Wider container for this section */
}

.about-text {
    flex: 1; /* Base flex */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.about-features {
    margin-top: 20px;
}

.about-features li {
    font-size: 1.15rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.about-features i {
    width: 32px;
    height: 32px;
    background: rgba(0, 42, 93, 0.05);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.about-image {
    flex: 1.8; /* Significantly larger video column */
    position: relative;
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: #000; /* Dark background in case of aspect ratio mismatch */
}

.about-video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9; /* Common video aspect ratio */
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 42, 93, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-play-btn {
    width: 80px;
    height: 80px;
    background-color: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 0 0 15px rgba(201, 162, 39, 0.2);
    transition: var(--transition-normal);
}

.video-overlay:hover .video-play-btn {
    transform: scale(1.1);
    box-shadow: 0 0 0 20px rgba(201, 162, 39, 0.3);
}

.video-volume-btn {
    position: absolute;
    top: 20px; /* Moved from bottom to top */
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(0, 42, 93, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-normal);
    opacity: 0;
    visibility: hidden;
}

.video-wrapper:hover .video-volume-btn {
    opacity: 1;
    visibility: visible;
}

.video-volume-btn:hover {
    background: var(--color-accent);
    transform: scale(1.1);
}

.experience-badge {
 position: absolute;
    top: -80px;
    left: -28px;
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
    padding: 25px 35px;
    border-radius: 0 0 15px 0; /* Adjusted radius for top-left position */
    text-align: center;
    box-shadow: var(--shadow-card);
    border-bottom: 4px solid var(--color-accent);
    box-shadow: 5px 14px 19px 3px #20202069;
    z-index: 5;
}

.experience-badge .number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
}

.experience-badge .text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* Certifications in About */
.certifications-row {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.cert {
    width: 80px;
    height: 80px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ccc;
    border: 1px solid var(--color-border);
}

/* =========================================
   SERVICES GRID (INFO CONTENT)
   ========================================= */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    flex: 1 1 300px;
    max-width: 380px;
    background-color: var(--color-bg-alt);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
    text-align: center;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-card);
}

.service-card .service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: rgba(201, 162, 39, 0.1);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background-color: var(--color-accent);
    color: #fff;
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   SERVICES INTERACTIVE SECTION
   ========================================= */
.services-container {
    display: flex;
    gap: 40px;
}

.services-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-item {
    background-color: var(--color-bg-alt);
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: inherit;
}

.service-item:hover,
.service-item.active {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card);
    transform: translateX(-10px);
}

.service-item .title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.service-item.active .title {
    color: var(--color-primary);
}

.service-item .icon {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.services-display {
    flex: 1.5;
    background-color: var(--color-bg-alt);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    padding: 40px;
    border: 1px solid var(--color-border);
}

.finance-entities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.bank-card {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.bank-card:hover {
    border-color: var(--color-primary);
    background-color: rgba(0, 42, 93, 0.02);
}

.bank-card.active {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: #fff;
}

.bank-card.active i {
    color: #fff !important;
}

/* =========================================
   LICENSES SECTION
   ========================================= */
#licences {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--color-accent);
}

.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.license-card {
    background-color: var(--color-bg-alt);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-normal);
}

.license-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.license-icon {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 25px;
    transition: var(--transition-normal);
}

.license-card:hover .license-icon {
    transform: scale(1.1);
    color: var(--color-accent);
}

.license-info h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    text-wrap: nowrap;
    margin-bottom: 25px;
    font-weight: 700;
}

.license-info .btn {
    width: 100%;
    font-weight: bold;
    border-radius: 8px;
    margin-bottom: 10px;
}

#licences .section-title {
    span {
        color: #fff;
    }
}

/* License Viewer */
.license-viewer {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.license-viewer.active {
    display: flex;
}

.license-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 26, 58, 0.72);
    backdrop-filter: blur(4px);
}

.license-viewer-dialog {
    position: relative;
    width: min(960px, 95vw);
    max-height: 90vh;
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    border-top: 4px solid var(--color-accent);
    animation: fadeIn 0.25s ease;
    z-index: 1;
}

.license-viewer-dialog h3 {
    margin: 0 0 14px;
    color: var(--color-primary);
    font-size: 1.2rem;
    text-align: right;
    padding-left: 40px;
}

.license-viewer-image-wrap {
    background: #f7f9fc;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: auto;
    max-height: calc(90vh - 110px);
}

.license-viewer-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* work times styling */

.work-times {
    display: flex;
    gap: 20px;
}

.license-viewer-footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.license-nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.license-nav-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: #fff;
}

.license-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

#license-page-indicator {
    min-width: 68px;
    text-align: center;
    font-weight: 700;
    color: var(--color-primary);
}

.license-viewer-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.license-viewer-close:hover {
    background: var(--color-primary);
    color: #fff;
}

/* =========================================
   ACHIEVEMENTS SECTION
   ========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--color-bg-alt);
    border-radius: 15px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.stat-card i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.stat-card .counter {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.stat-card p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

/* =========================================
   FORM SYSTEM (MULTI-STEP)
   ========================================= */
.form-container {
    max-width: 100%;
    /* margin: 0 auto; */
    background: var(--color-bg-alt);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dynamic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

input[type="file"]::file-selector-button {
    background: var(--color-accent);
    /* color: var(--color-text-main); */
    color: white;
    font-weight: bold;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
    background: var(--color-accent-hover);
    font-weight: bold;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--color-text-main);
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 42, 93, 0.1);
}

.form-group input.is-valid {
    border-color: #2ecc71 !important;
    background-color: rgba(46, 204, 113, 0.05);
}

.form-group input.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.form-group input.is-invalid {
    border-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.05);
}

.form-group input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* =========================================
   FORM ANIMATIONS (Loading & Success)
   ========================================= */
.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(0, 42, 93, 0.1);
    border-left-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.success-animation {
    margin: 0 auto;
    width: 90px;
}

.checkmark {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px rgba(76, 175, 80, 0.05);
    }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--color-primary);
    color: var(--color-bg-alt);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 70px;
    background: white;
    padding: 5px;
    border-radius: 8px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-text .main {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.footer-logo-text .sub {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

/* Footer Titles */
.footer-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    /* RTL Support */
    width: 40px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 3px;
}

/* Footer Lists */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-wrap: nowrap;
    transition: var(--transition-fast);
}

.footer-links li a i {
    font-size: 0.8rem;
    color: var(--color-accent);
}

.footer-links li a:hover {
    color: var(--color-accent);
    transform: translateX(-5px);
    /* Slide left slightly in RTL */
}

/* Contact Info List */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact li i {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-top: 4px;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: #fff;
}

/* =========================================
   ANIMATIONS & UTILS
   ========================================= */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   OFFERS SECTION (Carousel Slider)
   ========================================= */
.offers-swiper-container {
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.offersSwiper {
    width: 100%;
    padding: 20px 10px 60px 10px;
}

.offersSwiper .swiper-slide {
    width: 600px;
    height: auto;
    display: flex;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (min-width: 1400px) {
    .offersSwiper .swiper-slide {
        width: 700px;
    }
}

@media screen and (max-width: 768px) {
    .offersSwiper .swiper-slide {
        width: 320px;
    }
}

.offer-card-v2 {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    background: var(--color-bg-alt);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

.offer-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.offer-card-v2 .offer-image {
    flex: 0 0 52%;
    max-width: 52%;
    min-width: 280px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f4f7fb, #edf2f6);
}

.offer-card-v2 .offer-image img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.offer-card-v2 .offer-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 24px 20px;
    background: #fff;
    text-align: right;
}

.offer-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

.offer-card-v2 h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.offer-card-v2 p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 18px;
    height: auto;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: initial;
}

@media screen and (max-width: 992px) {
    .offer-card-v2 {
        flex-direction: column;
    }

    .offer-card-v2 .offer-image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        min-width: 0;
        min-height: 260px;
    }

    .offer-card-v2 .offer-image img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
    }
}

@media screen and (max-width: 768px) {
    .offer-card-v2 .offer-image {
        min-height: 200px;
    }

    .offer-card-v2 .offer-content {
        padding: 18px 16px 16px;
    }
}

.swiper-pagination-bullet-active {
    background: var(--color-primary) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-accent) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.5rem !important;
    font-weight: bold;
}

/* Requirements Highlight */
.requirements-highlight {
    grid-column: 1 / -1;
    /* Take full width in the form grid */
    background: rgba(201, 162, 39, 0.04);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: 12px;
    padding: 25px;
    margin: 15px 0 25px 0;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

@media screen and (max-width: 576px) {
    .requirements-highlight {
        padding: 15px;
    }
}

.requirements-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background-color: var(--color-accent);
}

.requirements-highlight h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.requirements-highlight h3 i {
    color: var(--color-accent);
    font-size: 1.4rem;
}

.file-size-badge {
    font-size: 0.75rem;
    background: rgba(201, 162, 39, 0.1);
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid rgba(201, 162, 39, 0.2);
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media screen and (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }

    .services-container {
        flex-direction: column;
    }

    .nav-links,
    .nav-extra .btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .company-name-main {
        font-size: 1.1rem;
    }

    .company-name-sub {
        font-size: 0.85rem;
    }

    .logo-img {
        height: 70px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .logo-text {
        display: none;
    }

    .logo-img {
        height: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .form-container {
        padding: 30px 20px;
    }

    .form-grid,
    .dynamic-grid {
        grid-template-columns: 1fr;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about-text, .about-image {
        flex: 1 !important;
        width: 100%;
    }
}

.hero-title {
    font-size: 3.5rem;
}

@media screen and (max-width: 576px) {
    .section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .experience-badge .number {
        font-size: 2.5rem;
    }
}

/* PDF Modal Styles */
.pdf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.pdf-modal-container {
    width: 95%;
    max-width: 1000px;
    height: 85vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-in;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: var(--color-primary, #1a3a5c);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.pdf-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    transition: opacity 0.2s;
    line-height: 1;
}

.pdf-modal-close:hover {
    opacity: 0.7;
}

.pdf-modal-body {
    flex: 1;
    background-color: #f5f5f5;
}

#pdf-iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Keep existing license card styles */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.icon-gold {
    color: var(--color-accent, #c9a227);
}

/* Or directly */
.icon-gold {
    color: #c9a227;
}

/* =========================================
   WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Tooltip text */
.whatsapp-float::after {
    content: "تواصل معنا عبر واتساب";
    position: absolute;
    right: 80px;
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
        font-size: 30px;
    }
    .whatsapp-float::after {
        display: none;
    }
}