/* =========================================================
   Visual identity (teal → blue) + interactive effects
   ========================================================= */
:root {
  --grad: linear-gradient(120deg, var(--primary), var(--secondary));
  --grad-shift: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%);
  --glow: 0 14px 34px rgba(19, 168, 158, .32);
}

/* ---------- gradient accents ---------- */
.btn-primary { background: var(--s-accent, var(--grad-shift)); background-size: 200% 100%; border-color: transparent; position: relative; overflow: hidden; isolation: isolate; box-shadow: var(--glow); }
.btn-primary:hover { background: var(--s-accent, var(--grad-shift)); background-size: 200% 100%; background-position: 100% 0; border-color: transparent; box-shadow: 0 18px 40px rgba(29, 111, 220, .35); }
.btn-primary::before { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); transition: left .75s ease; z-index: -1; }
.btn-primary:hover::before { left: 130%; }
.btn { transition: transform .3s var(--ease), box-shadow .3s, background-position .6s ease, color .3s, border-color .3s; }
.btn-outline:hover { box-shadow: var(--glow); }
.hdr-cta { background: var(--cta-bg, var(--grad-shift)); background-size: 200% 100%; }
.ab-badge, .card-icon, .ic-icon, .ib-minimal .ib-icon, .tag, .post-date, .checks i, .sl-dots button.on, .ib-num, .open .acc-btn > i:last-child, .dl-card:hover .dl-icon { background: var(--s-accent, var(--grad)); }
.ab-badge { box-shadow: var(--glow); }
.ic-icon { box-shadow: var(--glow); }
.menu > li > a::after, .f-title::after { background: var(--grad); }
.dl-card { border-top: 0; overflow: hidden; }
.dl-card::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--s-accent, var(--grad)); }
.sub { background: rgba(19, 168, 158, .1); padding: 5px 16px; border-radius: 30px; }
.sec-pageHeader .sub, .sec-cta .sub, .slide-content .sub { background: rgba(255,255,255,.1); }
.sec-counters .sub { background: rgba(255,255,255,.15); }

/* animated underline under section titles */
.sec-head .sec-title::after { content: ""; display: block; width: 0; height: 4px; border-radius: 4px; background: var(--s-accent, var(--grad)); margin: 16px auto 0; transition: width 1s .35s var(--ease); }
.al-start .sec-head .sec-title::after, .sec-head.al-start .sec-title::after { margin-inline: 0; }
.al-end .sec-head .sec-title::after { margin-inline-start: auto; margin-inline-end: 0; }
.sec-head.in .sec-title::after, .no-anim .sec-head .sec-title::after { width: 72px; }

/* ---------- reveal variations & stagger ---------- */
.grid > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3) { transition-delay: .16s; }
.grid > .reveal:nth-child(4) { transition-delay: .24s; }
.grid > .reveal:nth-child(5) { transition-delay: .32s; }
.grid > .reveal:nth-child(6) { transition-delay: .4s; }
.grid > .reveal:nth-child(7) { transition-delay: .48s; }
.grid > .reveal:nth-child(8) { transition-delay: .56s; }
.counter.reveal { transform: scale(.8); }
.counter.reveal.in { transform: none; }
.ab-media.reveal { opacity: 1; transform: none; }
.ab-media .ab-img1, .dl-row .dl-media, .faq-img { clip-path: inset(0 0 0 100%); transition: clip-path 1.3s var(--ease); }
[dir="ltr"] .ab-media .ab-img1, [dir="ltr"] .dl-row .dl-media, [dir="ltr"] .faq-img { clip-path: inset(0 100% 0 0); }
.ab-media.in .ab-img1, .dl-row.in .dl-media, .faq-img.in, .no-anim .ab-media .ab-img1, .no-anim .dl-row .dl-media, .no-anim .faq-img { clip-path: inset(0 0 0 0); }
.ab-media .ab-img2 { opacity: 0; transform: translateY(40px) scale(.9); transition: all 1s .5s var(--ease); }
.ab-media.in .ab-img2, .no-anim .ab-media .ab-img2 { opacity: 1; transform: none; }

/* ---------- decorative blobs ---------- */
.sec:not(.sec-hero):not(.lay-overlap):not(.sec-spacer):not(.sec-html) { overflow: hidden; }
.sec:not(.sec-hero):not(.lay-overlap):not(.has-bgimg):not(.sec-spacer):not(.sec-html):not(.sec-partners)::before,
.sec:not(.sec-hero):not(.lay-overlap):not(.has-bgimg):not(.sec-spacer):not(.sec-html):not(.sec-partners)::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; z-index: 0; pointer-events: none; filter: blur(10px);
  animation: blob 16s ease-in-out infinite alternate;
}
.sec:not(.sec-hero):not(.lay-overlap):not(.has-bgimg):not(.sec-spacer):not(.sec-html):not(.sec-partners)::before { top: -160px; inset-inline-end: -140px; background: radial-gradient(circle, rgba(19, 168, 158, .13), transparent 68%); }
.sec:not(.sec-hero):not(.lay-overlap):not(.has-bgimg):not(.sec-spacer):not(.sec-html):not(.sec-partners)::after { bottom: -180px; inset-inline-start: -160px; background: radial-gradient(circle, rgba(29, 111, 220, .11), transparent 68%); animation-delay: -8s; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.12); } 100% { transform: translate(30px, -20px) scale(.95); } }

/* ---------- hero ---------- */
.slide::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at 15% 25%, rgba(19, 168, 158, .35), transparent 42%), radial-gradient(circle at 85% 85%, rgba(29, 111, 220, .3), transparent 45%); animation: glow 10s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .6; } to { opacity: 1; } }
.slide-overlay { -webkit-mask-image: linear-gradient(to left, #000 35%, rgba(0,0,0,.45) 100%); mask-image: linear-gradient(to left, #000 35%, rgba(0,0,0,.45) 100%); }
[dir="ltr"] .slide-overlay { -webkit-mask-image: linear-gradient(to right, #000 35%, rgba(0,0,0,.45) 100%); mask-image: linear-gradient(to right, #000 35%, rgba(0,0,0,.45) 100%); }
.slide-content .slide-title { text-shadow: 0 6px 30px rgba(0,0,0,.25); }
.hero-deco { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: none; }
.fx-hero .hero-deco { display: block; }
.hero-deco span { position: absolute; display: block; translate: calc(var(--px, 0) * var(--d, 20px)) calc(var(--py, 0) * var(--d, 20px)); transition: translate .4s ease-out; }
.hero-deco .d1 { width: 140px; height: 140px; border: 2px solid rgba(255,255,255,.18); border-radius: 50%; top: 16%; inset-inline-end: 9%; --d: 30px; animation: floatY 7s ease-in-out infinite; }
.hero-deco .d2 { color: var(--primary); font-size: 34px; top: 26%; inset-inline-end: 30%; --d: 50px; animation: spinSlow 14s linear infinite; }
.hero-deco .d3 { width: 18px; height: 18px; border-radius: 50%; background: var(--grad); top: 64%; inset-inline-end: 18%; --d: 60px; animation: floatY 5s ease-in-out infinite; box-shadow: 0 0 0 10px rgba(19,168,158,.15); }
.hero-deco .d4 { width: 110px; height: 110px; top: 70%; inset-inline-end: 38%; --d: 25px; background-image: radial-gradient(rgba(255,255,255,.35) 2px, transparent 2.5px); background-size: 18px 18px; animation: floatY 9s ease-in-out infinite reverse; }
.hero-deco .d5 { color: rgba(255,255,255,.55); font-size: 26px; top: 14%; inset-inline-start: 46%; --d: 40px; animation: pulseBeat 1.6s ease-in-out infinite; }
.hero-deco .d6 { width: 60px; height: 60px; border: 2px dashed rgba(19,168,158,.6); border-radius: 50%; top: 48%; inset-inline-end: 4%; --d: 70px; animation: spinSlow 18s linear infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes pulseBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.2); } }
@media (max-width: 767px) { .hero-deco .d4, .hero-deco .d2, .hero-deco .d6 { display: none; } }

/* waves */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 4; line-height: 0; color: var(--body-bg, #fff); pointer-events: none; display: none; }
.fx-waves .wave { display: block; }
.wave svg { width: 100%; height: 70px; display: block; }
.wave .w2 { opacity: .45; }
.sec-pageHeader .wave svg { height: 50px; }
.fx-waves .sec-pageHeader { padding-bottom: calc(var(--pb, 100px) + 30px); }

/* ---------- interactive cards (tilt + glare) ---------- */
.card, .member, .ib-cards .ib-item, .dl-card, .info-card, .quote, .post { position: relative; will-change: transform; }
.fx-tilt .card::after, .fx-tilt .member::after, .fx-tilt .ib-cards .ib-item::after, .fx-tilt .info-card::after, .fx-tilt .post::after, .fx-tilt .quote::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; z-index: 3;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.38), transparent 55%);
}
.fx-tilt .card:hover::after, .fx-tilt .member:hover::after, .fx-tilt .ib-cards .ib-item:hover::after, .fx-tilt .info-card:hover::after, .fx-tilt .post:hover::after, .fx-tilt .quote:hover::after { opacity: 1; }
.ib-cards .ib-item { overflow: hidden; border-bottom: 0; }
.ib-cards .ib-item::before { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 4px; background: var(--item-c, var(--grad)); transform: scaleX(0); transition: transform .5s var(--ease); }
.ib-cards .ib-item:hover::before { transform: scaleX(1); }
.ib-cards .ib-item:hover .ib-icon { background: var(--item-c, var(--grad)); box-shadow: var(--glow); }
.ib-item:hover .ib-icon i, .dl-card:hover .dl-icon i, .info-card:hover .ic-icon i, .counter:hover .c-icon i { animation: iconPop .6s var(--ease); }
@keyframes iconPop { 0% { transform: scale(1); } 40% { transform: scale(1.3) rotate(-10deg); } 100% { transform: scale(1) rotate(0); } }
.info-card { overflow: hidden; }
.info-card::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .4s; z-index: 0; }
.info-card > * { position: relative; z-index: 1; }
.info-card:hover::before { opacity: 1; }
.info-card:hover h3, .info-card:hover p { color: #fff; }
.info-card:hover .ic-icon { background: #fff; color: var(--primary); }
.quote::before { content: ""; position: absolute; top: 0; inset-inline: 30px; height: 4px; border-radius: 0 0 4px 4px; background: var(--grad); transform: scaleX(.3); transition: transform .5s var(--ease); }
.quote:hover::before { transform: scaleX(1); }
.m-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,37,69,.75), transparent 55%); opacity: 0; transition: opacity .4s; }
.member:hover .m-img::after { opacity: 1; }
.m-social { z-index: 2; }
.g-over { background: linear-gradient(160deg, rgba(19, 168, 158, .85), rgba(29, 111, 220, .85)); }
.g-over i { transform: scale(.4); transition: transform .45s var(--ease); }
.g-item:hover .g-over i { transform: none; }
.logo img { transition: transform .6s var(--ease); }
.logo:hover img { transform: rotate(-12deg) scale(1.06); }

/* ---------- counters ---------- */
.sec-counters { background-size: 200% 200%; animation: gradShift 12s ease infinite; }
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.sec-counters .c-icon { width: 78px; height: 78px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); backdrop-filter: blur(4px); font-size: 2rem; }

/* ---------- partners marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-track { display: flex; gap: 60px; width: max-content; animation: marquee 32s linear infinite; align-items: center; }
[dir="rtl"] .mq-track { animation-name: marqueeRtl; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marqueeRtl { to { transform: translateX(50%); } }
.mq-track .logo-item { flex: 0 0 auto; }

/* ---------- parallax backgrounds ---------- */
.has-bgimg .sec-bg { inset: -12% 0; will-change: transform; }

/* ---------- header glass ---------- */
.main-header.fixed { background: rgba(255,255,255,.86); background: color-mix(in srgb, var(--h-bg, #fff) 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); }

/* ---------- scroll progress & back to top ring ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 3000; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: var(--sp, 0%); background: var(--grad); box-shadow: 0 0 10px rgba(19,168,158,.6); }
.to-top { background: conic-gradient(var(--primary) calc(var(--p, 0) * 1%), rgba(11, 37, 69, .12) 0); }
.to-top::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff; transition: background .3s; }
.to-top i { position: relative; z-index: 1; color: var(--primary); transition: color .3s; }
.to-top:hover { background: conic-gradient(var(--primary) calc(var(--p, 0) * 1%), rgba(11, 37, 69, .12) 0); }
.to-top:hover::before { background: var(--grad); }
.to-top:hover i { color: #fff; }

/* ---------- ripple ---------- */
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.55); animation: ripple .65s ease-out; pointer-events: none; z-index: 0; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--primary); }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 2px solid rgba(19, 168, 158, .55); transition: opacity .3s, width .25s, height .25s, margin .25s, background .25s, border-color .25s; }
.cursor-ring.hover { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: rgba(19, 168, 158, .12); border-color: transparent; }
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }

/* ---------- preloader ---------- */
.pl-logo { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.pl-logo img { width: 56px; animation: pulseBeat 1.4s ease-in-out infinite; }
.pl-logo span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--primary); border-right-color: var(--secondary); animation: spin .9s linear infinite; }

@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }
.no-anim .sec::before, .no-anim .sec::after, .no-anim .mq-track, .no-anim .sec-counters, .no-anim .hero-deco span { animation: none !important; }
