/* ================================================================
   FP BRAND — GLOBAL DESIGN SYSTEM
   Afak Almustakbal Al-Duwalia for Steel Industries
   ----------------------------------------------------------------
   Teal   : #3DBFB0   Navy  : #0D1B2A
   Works for both LTR (English) and RTL (Arabic) layouts
   RTL-specific rules are prefixed with html[dir="rtl"]
================================================================ */

/* ── 1. CSS VARIABLES ──────────────────────────────────────────── */
:root {
    --fp-teal        : #3DBFB0;
    --fp-teal-dark   : #2DA89A;
    --fp-teal-light  : rgba(61, 191, 176, .10);
    --fp-navy        : #0D1B2A;
    --fp-navy-light  : #162435;
    --fp-white       : #FFFFFF;
    --fp-gray-bg     : #F8FAFC;
    --fp-gray-text   : #94A3B8;
    --fp-gray-border : #E2E8F0;
    --fp-text        : #1E293B;
    --fp-muted       : #64748B;
}

/* ── 2. ARABIC FONT ────────────────────────────────────────────── */
html[dir="rtl"] body,
html[dir="rtl"] p,
html[dir="rtl"] a,
html[dir="rtl"] span:not([class*="fa"]),
html[dir="rtl"] div,
html[dir="rtl"] li,
html[dir="rtl"] ul,
html[dir="rtl"] nav,
html[dir="rtl"] input,
html[dir="rtl"] button,
html[dir="rtl"] label,
html[dir="rtl"] textarea,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* ── 3. RTL — FONTAWESOME FIX ──────────────────────────────────── */
/* FA Private-Use-Area glyphs must render LTR even in RTL documents */
html[dir="rtl"] .fa,
html[dir="rtl"] .fas,
html[dir="rtl"] .far,
html[dir="rtl"] .fal,
html[dir="rtl"] .fad {
    font-family: "Font Awesome 5 Free" !important;
    direction: ltr !important;
    display: inline-block !important;
    unicode-bidi: bidi-override !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html[dir="rtl"] .fab {
    font-family: "Font Awesome 5 Brands" !important;
    direction: ltr !important;
    display: inline-block !important;
    unicode-bidi: bidi-override !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── 4. HEADER — TOP BAR ───────────────────────────────────────── */
.fp-topbar {
    background: var(--fp-navy);
    padding: 8px 0;
    font-size: 13px;
}
.fp-topbar-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}
.fp-topbar-contact a {
    color: var(--fp-gray-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color .25s;
}
.fp-topbar-contact a:hover { color: var(--fp-teal); }
.fp-topbar-contact i { color: var(--fp-teal); font-size: 12px; }
.fp-topbar-social { display: flex; align-items: center; gap: 14px; }
.fp-topbar-social a {
    color: var(--fp-gray-text);
    font-size: 13px;
    text-decoration: none;
    transition: color .25s;
}
.fp-topbar-social a:hover { color: var(--fp-teal); }

/* ── 5. HEADER — MAIN NAVBAR ───────────────────────────────────── */
.fp-navbar {
    background: var(--fp-white);
    box-shadow: 0 1px 0 var(--fp-gray-border);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow .3s;
}
.fp-navbar.fp-scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, .10);
}
.fp-navbar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
}
.fp-navbar-logo img { height: 52px; width: auto; }

/* ── 6. HEADER — NAV LINKS ─────────────────────────────────────── */
.fp-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    flex-grow: 1;
    justify-content: center;
}
.fp-nav-list > li > a {
    color: var(--fp-text);
    font-weight: 500;
    font-size: 14.5px;
    padding: 8px 13px;
    border-radius: 7px;
    text-decoration: none;
    letter-spacing: .3px;
    transition: all .22s;
    display: block;
    white-space: nowrap;
}
html[dir="rtl"] .fp-nav-list > li > a { font-weight: 600; }
.fp-nav-list > li > a:hover,
.fp-nav-list > li.fp-active > a {
    color: var(--fp-teal);
    background: var(--fp-teal-light);
}

/* ── 7. HEADER — LANGUAGE DROPDOWN ────────────────────────────── */
.fp-lang-wrap { position: relative; }
.fp-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--fp-text);
    font-weight: 500;
    font-size: 14px;
    padding: 7px 13px;
    border-radius: 7px;
    border: 1.5px solid var(--fp-gray-border);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all .22s;
}
html[dir="rtl"] .fp-lang-btn { font-weight: 600; }
.fp-lang-btn i.globe { color: var(--fp-teal); }
.fp-lang-btn:hover { border-color: var(--fp-teal); color: var(--fp-teal); }
.fp-lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--fp-white);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
    min-width: 140px;
    padding: 6px 0;
    z-index: 200;
    border: 1px solid var(--fp-gray-border);
    animation: fpDropIn .16s ease;
}
@keyframes fpDropIn {
    from { opacity:0; transform:translateY(-5px); }
    to   { opacity:1; transform:translateY(0); }
}
/* Invisible bridge covers the gap so mouse movement never closes it accidentally */
.fp-lang-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}
html[dir="rtl"] .fp-lang-dropdown { right: auto; left: 0; }
/* Controlled by JS via .open class only — no CSS :hover trigger */
.fp-lang-wrap.open .fp-lang-dropdown { display: block; }
/* Active button style when open */
.fp-lang-wrap.open .fp-lang-btn {
    border-color: var(--fp-teal);
    color: var(--fp-teal);
}
.fp-lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    color: var(--fp-text);
    font-size: 13.5px;
    text-decoration: none;
    transition: all .18s;
}
.fp-lang-dropdown a:hover { background: var(--fp-teal-light); color: var(--fp-teal); }
.fp-lang-dropdown a.fp-lang-active { color: var(--fp-teal); font-weight: 700; }

/* ── 8. HEADER — SEARCH BOX ────────────────────────────────────── */
.fp-search-box {
    display: flex;
    align-items: center;
    background: var(--fp-gray-bg);
    border: 1.5px solid var(--fp-gray-border);
    border-radius: 28px;
    padding: 4px 5px 4px 14px;
    transition: border-color .25s;
}
html[dir="rtl"] .fp-search-box { padding: 4px 14px 4px 5px; }
.fp-search-box:focus-within { border-color: var(--fp-teal); }
.fp-search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13.5px;
    width: 160px;
    color: var(--fp-text);
}
html[dir="rtl"] .fp-search-box input {
    text-align: right;
    font-family: 'Cairo', sans-serif;
}
.fp-search-box input::placeholder { color: #94A3B8; }
.fp-search-box button {
    background: var(--fp-teal);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background .25s;
    flex-shrink: 0;
}
.fp-search-box button:hover { background: var(--fp-teal-dark); }

/* ── 9. HEADER — HAMBURGER ─────────────────────────────────────── */
.fp-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 9px 10px;
    border-radius: 7px;
    border: 1.5px solid var(--fp-gray-border);
    background: transparent;
    transition: border-color .25s;
}
.fp-hamburger:hover { border-color: var(--fp-teal); }
.fp-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--fp-text);
    border-radius: 2px;
    transition: background .25s;
}
.fp-hamburger:hover span { background: var(--fp-teal); }

@media (max-width: 1199px) {
    .fp-hamburger      { display: flex; }
    .fp-nav-desktop    { display: none !important; }
    .fp-search-desktop { display: none !important; }
}
@media (max-width: 767px) {
    .fp-topbar-contact a { font-size: 12px; }
}

/* ── 10. MOBILE OVERLAY ────────────────────────────────────────── */
.fp-mob-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, .65);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    backdrop-filter: blur(3px);
}
.fp-mob-overlay.fp-open { opacity: 1; visibility: visible; }

/* LTR: panel slides from the LEFT */
.fp-mob-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background: var(--fp-white);
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* RTL: panel slides from the RIGHT */
html[dir="rtl"] .fp-mob-panel {
    left: auto;
    right: 0;
    transform: translateX(100%);
}
.fp-mob-overlay.fp-open .fp-mob-panel { transform: translateX(0); }

.fp-mob-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--fp-gray-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.fp-mob-close {
    background: none;
    border: 1.5px solid var(--fp-gray-border);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--fp-text);
    font-size: 16px;
    transition: all .2s;
}
.fp-mob-close:hover { color: var(--fp-teal); border-color: var(--fp-teal); }
.fp-mob-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.fp-mob-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    color: var(--fp-text);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid var(--fp-gray-border);
    transition: all .2s;
}
html[dir="rtl"] .fp-mob-nav a { font-weight: 600; }
.fp-mob-nav a:hover {
    color: var(--fp-teal);
    background: var(--fp-teal-light);
    padding-left: 28px;
}
html[dir="rtl"] .fp-mob-nav a:hover { padding-left: 22px; padding-right: 28px; }
.fp-mob-nav .fp-mob-sublang {
    padding: 10px 22px 10px 42px;
    font-size: 14px;
    background: var(--fp-gray-bg);
    color: #64748B;
}
html[dir="rtl"] .fp-mob-nav .fp-mob-sublang { padding: 10px 42px 10px 22px; }
.fp-mob-nav .fp-mob-sublang:hover { color: var(--fp-teal); padding-left: 50px; }
html[dir="rtl"] .fp-mob-nav .fp-mob-sublang:hover { padding-left: 22px; padding-right: 50px; }
.fp-mob-nav .fp-lang-active-mob { color: var(--fp-teal); font-weight: 700; }
.fp-mob-foot {
    padding: 16px 22px;
    border-top: 1px solid var(--fp-gray-border);
    flex-shrink: 0;
}

/* ── 11. FOOTER ────────────────────────────────────────────────── */
.fp-footer {
    background: var(--fp-navy);
    padding-top: 72px;
    padding-bottom: 0;
}
.fp-footer-desc {
    color: var(--fp-gray-text);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 18px;
    max-width: 300px;
}
html[dir="rtl"] .fp-footer-desc { line-height: 1.95; }

.fp-footer-heading {
    color: var(--fp-teal);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}
.fp-footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--fp-teal);
    border-radius: 2px;
}
html[dir="rtl"] .fp-footer-heading::after { left: auto; right: 0; }

.fp-footer-nav-list { list-style: none; padding: 0; margin: 0; }
.fp-footer-nav-list li { margin-bottom: 10px; }
.fp-footer-nav-list a {
    color: var(--fp-gray-text);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .22s;
}
.fp-footer-nav-list a::before { content: '›'; color: var(--fp-teal); font-size: 20px; line-height: .9; }
html[dir="rtl"] .fp-footer-nav-list a::before { content: '‹'; }
.fp-footer-nav-list a:hover { color: var(--fp-teal); padding-left: 4px; }
html[dir="rtl"] .fp-footer-nav-list a:hover { padding-left: 0; padding-right: 4px; }

.fp-contact-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.fp-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(61, 191, 176, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fp-contact-icon i { color: var(--fp-teal); font-size: 14px; }
.fp-contact-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: #475569;
    display: block;
    margin-bottom: 3px;
}
.fp-contact-val {
    color: var(--fp-gray-text);
    font-size: 13.5px;
    text-decoration: none;
    transition: color .22s;
    display: block;
    direction: ltr;
    text-align: left;
}
html[dir="rtl"] .fp-contact-val { text-align: right; }
.fp-contact-val:hover { color: var(--fp-teal); }

.fp-footer-divider { height: 1px; background: rgba(255, 255, 255, .07); margin-top: 56px; }
.fp-footer-bottom { background: rgba(0, 0, 0, .22); padding: 20px 0; }
.fp-copyright { color: #475569; font-size: 13px; margin: 0; }
.fp-copyright span { color: var(--fp-teal); }
html[dir="rtl"] .fp-copyright { font-weight: 500; }

/* SOCIAL ICONS */
.fp-social-row { display: flex; align-items: center; gap: 8px; }
.fp-social-row a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .09);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fp-gray-text);
    font-size: 13px;
    text-decoration: none;
    transition: all .28s;
}
.fp-social-row a:hover {
    background: var(--fp-teal);
    border-color: var(--fp-teal);
    color: #fff;
    transform: translateY(-2px);
}

/* ── 12. SCROLL TO TOP ─────────────────────────────────────────── */
#fp-scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--fp-teal);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s;
    z-index: 998;
    box-shadow: 0 4px 18px rgba(61, 191, 176, .40);
}
html[dir="rtl"] #fp-scroll-top { right: auto; left: 28px; }
#fp-scroll-top.fp-visible { opacity: 1; visibility: visible; transform: translateY(0); }
#fp-scroll-top:hover { background: var(--fp-teal-dark); transform: translateY(-3px); }
html[dir="rtl"] #fp-scroll-top:hover { transform: translateY(-3px); }

/* ── 13. PRELOADER ─────────────────────────────────────────────── */
.preloader-area-wrap .bounce1,
.preloader-area-wrap .bounce2,
.preloader-area-wrap .bounce3 {
    background-color: var(--fp-teal) !important;
}

/* ================================================================
   PAGE DESIGN SYSTEM — shared across all pages
================================================================ */

/* ── 14. SECTION UTILITIES ─────────────────────────────────────── */
.ip-section    { padding: 90px 0; }
.ip-section-sm { padding: 60px 0; }
.ip-bg-white   { background: var(--fp-white); }
.ip-bg-gray    { background: var(--fp-gray-bg); }
.ip-bg-navy    { background: var(--fp-navy); }

/* ── 15. SECTION HEADER PATTERN ────────────────────────────────── */
.ip-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--fp-teal);
    background: var(--fp-teal-light);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.ip-tag-light { background: rgba(61, 191, 176, .18); }

.ip-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--fp-navy);
    line-height: 1.25;
    margin-bottom: 0;
}
.ip-title span        { color: var(--fp-teal); }
.ip-title-white       { color: var(--fp-white); }
.ip-title-white span  { color: var(--fp-teal); }

.ip-subtitle {
    font-size: 15px;
    color: var(--fp-muted);
    margin-top: 12px;
    line-height: 1.75;
}

.ip-divider {
    width: 48px;
    height: 3px;
    background: var(--fp-teal);
    border-radius: 2px;
    margin: 16px auto 0;
}
.ip-divider-start { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .ip-divider-start { margin-left: auto; margin-right: 0; }

/* ── 16. BUTTONS / LINKS ───────────────────────────────────────── */
.ip-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 28px;
    background: var(--fp-teal);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: 9px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 4px 18px rgba(61, 191, 176, .35);
}
.ip-btn:hover {
    background: var(--fp-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(61, 191, 176, .40);
    color: #fff !important;
}
.ip-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--fp-teal);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: gap .22s, color .22s;
}
.ip-link:hover { gap: 11px; color: var(--fp-teal-dark); }

/* ── 17. HERO ──────────────────────────────────────────────────── */
.ip-hero .carousel-item img {
    width: 100%;
    max-height: 620px;
    min-height: 300px;
    object-fit: cover;
    display: block;
}
.ip-hero .carousel-control-prev,
.ip-hero .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .35);
    opacity: .9;
    transition: all .25s;
}
.ip-hero .carousel-control-prev { left: 20px; }
.ip-hero .carousel-control-next { right: 20px; }
.ip-hero .carousel-control-prev:hover,
.ip-hero .carousel-control-next:hover {
    background: var(--fp-teal);
    border-color: var(--fp-teal);
    opacity: 1;
}
.ip-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to top, rgba(13, 27, 42, .55), transparent);
    pointer-events: none;
}

/* ── 18. ABOUT ─────────────────────────────────────────────────── */
.ip-about-img {
    width: 100%;
    display: block;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .13);
}
.ip-about-frame { position: relative; padding: 12px; }
.ip-about-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--fp-teal);
    border-radius: 22px;
    opacity: .22;
}
.ip-about-accent {
    position: absolute;
    bottom: -12px;
    left: -12px;
    width: 80px;
    height: 80px;
    background: var(--fp-teal);
    border-radius: 12px;
    opacity: .15;
}
html[dir="rtl"] .ip-about-accent { left: auto; right: -12px; }

/* ── 19. PERFORMANCE INDICATORS ───────────────────────────────── */
.ip-stat-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    padding: 30px 22px;
    text-align: center;
    transition: all .3s;
    height: 100%;
}
.ip-stat-card:hover {
    background: rgba(61, 191, 176, .1);
    border-color: rgba(61, 191, 176, .3);
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .2);
}
.ip-stat-icon {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.ip-stat-icon img {
    max-height: 54px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(.65);
    transition: filter .3s;
}
.ip-stat-card:hover .ip-stat-icon img {
    filter: invert(72%) sepia(40%) saturate(500%) hue-rotate(130deg) brightness(1.1);
}
.ip-stat-num {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--fp-teal);
    line-height: 1.1;
    letter-spacing: -1px;
}
.ip-stat-lbl {
    font-size: 13px;
    color: #94A3B8;
    margin-top: 8px;
    line-height: 1.45;
}

/* ── 20. PROJECTS ──────────────────────────────────────────────── */
.ip-proj .swiper-pagination-bullet-active { background: var(--fp-teal) !important; }
.ip-proj-card { display: block; text-decoration: none; }
.ip-proj-box {
    background: var(--fp-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
    transition: transform .3s, box-shadow .3s;
}
.ip-proj-card:hover .ip-proj-box {
    transform: translateY(-7px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .13);
}
.ip-proj-media { height: 265px; overflow: hidden; position: relative; }
.ip-proj-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s;
}
.ip-proj-card:hover .ip-proj-media img { transform: scale(1.07); }
.ip-proj-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, .52);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}
.ip-proj-card:hover .ip-proj-overlay { opacity: 1; }
.ip-proj-overlay-btn {
    background: var(--fp-teal);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}
.ip-proj-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(13, 27, 42, .82), transparent);
}
.ip-proj-caption h5 { color: #fff; font-size: 13px; font-weight: 600; margin: 0; }
.ip-proj-body { padding: 14px 16px; font-size: 13px; color: var(--fp-muted); line-height: 1.6; text-align: center; }

/* ── 21. CERTIFICATES ──────────────────────────────────────────── */
.ip-cert-link {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
    transition: transform .3s, box-shadow .3s;
}
.ip-cert-link:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 14px 36px rgba(61, 191, 176, .22);
}
.ip-cert-link img { width: 100%; height: 230px; object-fit: cover; display: block; }

/* ── 22. COMPETITIVE FEATURES ──────────────────────────────────── */
.ip-cf-btn {
    width: 100%;
    text-align: left;
    background: var(--fp-white);
    border: 1.5px solid var(--fp-gray-border);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--fp-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .22s;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
}
html[dir="rtl"] .ip-cf-btn {
    text-align: right;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
}
.ip-cf-btn::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fp-gray-border);
    flex-shrink: 0;
    transition: all .22s;
}
.ip-cf-btn:hover { border-color: var(--fp-teal); color: var(--fp-teal); background: var(--fp-teal-light); }
.ip-cf-btn.active { border-color: var(--fp-teal); color: var(--fp-teal); background: var(--fp-teal-light); font-weight: 700; }
html[dir="rtl"] .ip-cf-btn.active { font-weight: 800; }
.ip-cf-btn.active::after { background: var(--fp-teal); width: 10px; height: 10px; }

.ip-cf-imgbox {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 56px rgba(0, 0, 0, .13);
    position: relative;
    min-height: 350px;
    background: #d4e0e8;
}
.ip-cf-imgbox img {
    width: 100%;
    min-height: 350px;
    max-height: 430px;
    object-fit: cover;
    display: block;
}
.ip-cf-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fp-teal);
    font-size: 15px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
    transition: all .25s;
}
.ip-cf-nav:hover { background: var(--fp-teal); color: #fff; transform: translateY(-50%) scale(1.1); }
.ip-cf-prev { left: 14px; }
.ip-cf-next { right: 14px; }

/* ── 23. CLIENT TESTIMONIALS ───────────────────────────────────── */
.ip-client-card {
    background: var(--fp-white);
    border-radius: 18px;
    padding: 28px 22px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
    border: 1px solid var(--fp-gray-border);
    cursor: pointer;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    height: 100%;
}
.ip-client-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 52px rgba(61, 191, 176, .16);
    border-color: rgba(61, 191, 176, .35);
}
.ip-client-quote {
    font-size: 3rem;
    line-height: .8;
    color: var(--fp-teal);
    opacity: .2;
    margin-bottom: 10px;
    font-family: Georgia, serif;
}
.ip-client-logo-wrap {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.ip-client-logo-wrap img { max-height: 78px; width: auto; object-fit: contain; }
.ip-client-name { font-size: 14px; font-weight: 700; color: var(--fp-teal); margin-bottom: 8px; }
.ip-client-hint { font-size: 12px; color: var(--fp-muted); }

/* ── 24. BRAND LOGOS ───────────────────────────────────────────── */
.ip-brand-tile { padding: 22px 16px; text-align: center; border-radius: 12px; transition: all .25s; }
.ip-brand-tile:hover { background: var(--fp-white); box-shadow: 0 6px 20px rgba(0, 0, 0, .07); }
.ip-brand-tile img {
    max-height: 68px;
    width: auto;
    object-fit: contain;
    filter: grayscale(.45);
    transition: filter .3s;
}
.ip-brand-tile:hover img { filter: grayscale(0); }
.ip-brand-tile-name { font-size: 12px; color: var(--fp-muted); margin-top: 10px; }

/* ── 25. NEWS CARDS ────────────────────────────────────────────── */
.ip-news-card {
    background: var(--fp-white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
    border: 1px solid var(--fp-gray-border);
    cursor: pointer;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ip-news-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 52px rgba(61, 191, 176, .16);
    border-color: rgba(61, 191, 176, .35);
}
.ip-news-thumb { height: 195px; overflow: hidden; flex-shrink: 0; }
.ip-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ip-news-card:hover .ip-news-thumb img { transform: scale(1.07); }
.ip-news-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.ip-news-date { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--fp-muted); margin-bottom: 10px; }
.ip-news-date i { color: var(--fp-teal); }
.ip-news-title { font-size: 14.5px; font-weight: 700; color: var(--fp-navy); line-height: 1.5; margin-bottom: 10px; }
.ip-news-excerpt { font-size: 13px; color: var(--fp-muted); line-height: 1.65; flex: 1; }
.ip-news-cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 12px; color: var(--fp-teal); font-weight: 700; }

/* ── 26. CONTACT SECTION ───────────────────────────────────────── */
.ip-form-box {
    background: var(--fp-white);
    border-radius: 20px;
    padding: 42px 38px;
    box-shadow: 0 24px 72px rgba(0, 0, 0, .18);
}
.ip-input {
    width: 100%;
    border: 1.5px solid var(--fp-gray-border);
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 14px;
    color: var(--fp-text);
    background: var(--fp-white);
    outline: none;
    font-family: inherit;
    transition: border-color .25s, box-shadow .25s;
}
html[dir="rtl"] .ip-input { text-align: right; font-family: 'Cairo', sans-serif; }
.ip-input:focus {
    border-color: var(--fp-teal);
    box-shadow: 0 0 0 3px rgba(61, 191, 176, .13);
}
.ip-input::placeholder { color: #94A3B8; }

.ip-info-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 26px 22px;
    margin-bottom: 16px;
}
.ip-info-heading {
    color: var(--fp-teal);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ip-info-heading i { font-size: 13px; }
.ip-info-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 5px 0;
    color: #94A3B8;
    font-size: 13.5px;
    text-decoration: none;
    transition: color .22s;
}
.ip-info-row i { color: var(--fp-teal); font-size: 12px; margin-top: 2px; flex-shrink: 0; }
a.ip-info-row:hover { color: var(--fp-teal); }

/* ── 27. MODALS ────────────────────────────────────────────────── */
.ip-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .2);
}
.ip-modal .modal-header {
    padding: 20px 24px 14px;
    border-bottom: 1px solid var(--fp-gray-border);
}
.ip-modal .modal-title { font-weight: 800; color: var(--fp-navy); font-size: 16px; }
.ip-modal .modal-body { padding: 24px; }

/* ── 28. RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 991px) {
    .ip-section { padding: 70px 0; }
    .ip-about-frame { margin-top: 40px; }
}
@media (max-width: 767px) {
    .ip-section    { padding: 56px 0; }
    .ip-section-sm { padding: 44px 0; }
    .ip-form-box   { padding: 28px 22px; }
    .ip-stat-num   { font-size: 2rem; }
    .fp-footer-desc { max-width: 100%; }
}
@media (max-width: 575px) {
    .ip-title { font-size: 1.6rem; }
}

/* ── 29. PROJECT DETAIL PAGE ───────────────────────────────────── */
.ip-project-hero {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: var(--fp-navy);
}
.ip-project-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .75;
    transition: transform 6s ease;
}
.ip-project-hero:hover img { transform: scale(1.04); }
.ip-project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,27,42,.90) 35%, rgba(13,27,42,.15));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 24px 56px;
    text-align: center;
}
.ip-project-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.ip-project-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.75);
    font-size: 13px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.25);
    padding: 8px 18px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    transition: all .25s;
}
.ip-project-hero-back:hover {
    color: #fff;
    border-color: var(--fp-teal);
    background: rgba(61,191,176,.18);
}

/* Gallery thumbnails */
.ip-gallery-thumb {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.09);
    transition: transform .3s, box-shadow .3s;
    aspect-ratio: 4/3;
}
.ip-gallery-thumb:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(61,191,176,.22);
}
.ip-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.ip-gallery-thumb:hover img { transform: scale(1.06); }

/* Main image card (featured) */
.ip-project-featured {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.14);
}
.ip-project-featured img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Description card */
.ip-project-desc {
    background: var(--fp-white);
    border-radius: 20px;
    padding: 36px 34px;
    box-shadow: 0 8px 32px rgba(0,0,0,.07);
    border: 1px solid var(--fp-gray-border);
    height: 100%;
}

@media (max-width: 767px) {
    .ip-project-hero { height: 340px; }
    .ip-project-desc { padding: 24px 20px; }
}

/* ================================================================
   30. VIDEO HERO
================================================================ */
.ip-video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 580px;
    max-height: 960px;
    overflow: hidden;
    background: var(--fp-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Poster image — shown while video loads */
.ip-video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: opacity 1s ease;
}
.ip-video-poster.fp-hidden { opacity: 0; pointer-events: none; }

/* The video itself */
.ip-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.ip-video-bg.fp-ready { opacity: 1; }

/* Dark gradient overlay */
.ip-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(13, 27, 42, .72) 0%,
        rgba(13, 27, 42, .45) 55%,
        rgba(13, 27, 42, .68) 100%
    );
    z-index: 2;
}

/* Smooth fade to the next section */
.ip-video-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to top, #F8FAFC 0%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

/* Centered content block */
.ip-video-content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 0 24px;
    max-width: 820px;
    width: 100%;
}

/* Pill label above title */
.ip-video-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--fp-teal);
    border: 1px solid rgba(61, 191, 176, .38);
    padding: 7px 20px;
    border-radius: 30px;
    margin-bottom: 24px;
    backdrop-filter: blur(6px);
    background: rgba(61, 191, 176, .08);
}
.ip-video-pill i { font-size: 10px; }

/* Main headline */
.ip-video-title {
    font-size: clamp(2rem, 5.5vw, 4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.18;
    margin-bottom: 20px;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .35);
    letter-spacing: -.5px;
}
.ip-video-title span { color: var(--fp-teal); }
html[dir="rtl"] .ip-video-title { letter-spacing: 0; }

/* Sub-text */
.ip-video-subtitle {
    font-size: clamp(14px, 1.8vw, 17px);
    color: rgba(255, 255, 255, .72);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
html[dir="rtl"] .ip-video-subtitle { line-height: 1.95; }

/* CTA buttons */
.ip-video-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.ip-video-btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 34px;
    background: var(--fp-teal);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 28px rgba(61, 191, 176, .5);
    transition: all .28s;
}
.ip-video-btn-solid:hover {
    background: var(--fp-teal-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(61, 191, 176, .55);
    color: #fff !important;
}
.ip-video-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 32px;
    background: rgba(255, 255, 255, .10);
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 50px;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, .32);
    backdrop-filter: blur(8px);
    transition: all .28s;
}
.ip-video-btn-outline:hover {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .65);
    transform: translateY(-3px);
    color: #fff !important;
}

/* Mute/unmute toggle */
.ip-video-mute-btn {
    position: absolute;
    bottom: 100px;
    right: 28px;
    z-index: 5;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 15px;
    transition: all .25s;
    outline: none;
}
html[dir="rtl"] .ip-video-mute-btn { right: auto; left: 28px; }
.ip-video-mute-btn:hover {
    background: var(--fp-teal);
    border-color: var(--fp-teal);
    transform: scale(1.1);
}

/* Animated scroll indicator */
.ip-video-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .45);
    font-size: 10.5px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: color .25s;
}
.ip-video-scroll:hover { color: var(--fp-teal); }
.ip-video-scroll-mouse {
    width: 22px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, .35);
    border-radius: 11px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
}
.ip-video-scroll-mouse::after {
    content: '';
    width: 3px;
    height: 7px;
    background: rgba(255, 255, 255, .65);
    border-radius: 2px;
    animation: fp-scroll-anim 2s ease-in-out infinite;
}
@keyframes fp-scroll-anim {
    0%        { transform: translateY(0);   opacity: 1; }
    60%, 100% { transform: translateY(11px); opacity: 0; }
}

/* Stats strip below hero */
.ip-video-stats {
    display: flex;
    align-items: stretch;
    background: var(--fp-white);
    box-shadow: 0 8px 36px rgba(0, 0, 0, .10);
    border-radius: 16px;
    overflow: hidden;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}
.ip-video-stat-item {
    flex: 1;
    text-align: center;
    padding: 24px 16px;
    border-right: 1px solid var(--fp-gray-border);
}
html[dir="rtl"] .ip-video-stat-item { border-right: none; border-left: 1px solid var(--fp-gray-border); }
.ip-video-stat-item:last-child { border-right: none; border-left: none; }
.ip-video-stat-num {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--fp-teal);
    line-height: 1;
    margin-bottom: 5px;
}
.ip-video-stat-lbl {
    font-size: 12px;
    color: var(--fp-muted);
    line-height: 1.35;
}

@media (max-width: 991px) {
    .ip-video-hero { height: 90vh; }
    .ip-video-stats { margin-top: 0; border-radius: 0; }
}
@media (max-width: 767px) {
    .ip-video-hero { height: 85vh; min-height: 480px; }
    .ip-video-mute-btn { bottom: 84px; right: 16px; }
    html[dir="rtl"] .ip-video-mute-btn { right: auto; left: 16px; }
    .ip-video-stats { flex-wrap: wrap; border-radius: 12px; margin: 16px; }
    .ip-video-stat-item { flex: 1 1 50%; border-bottom: 1px solid var(--fp-gray-border); }
    .ip-video-stat-item:nth-child(even) { border-right: none; border-left: none; }
}
