/* ── Homepage: Academic Rankings & Webometrics Theme ── */

.home-page {
    --home-navy: #1e2452;
    --home-navy-soft: #2a3166;
    --home-blue: #1e2452;
    --home-cyan: #b59a57;
    --home-teal: #9a8048;
    --home-gold: #b59a57;
    --home-glass: rgba(255, 255, 255, 0.06);
    --home-border: rgba(255, 255, 255, 0.1);
    overflow-x: hidden;
}

/* ── Hero ── */
.home-hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: 4rem 0 5rem;
    background: linear-gradient(145deg, #141838 0%, #1e2452 40%, #2a3166 70%, #1a1f4d 100%);
    color: #fff;
    overflow: hidden;
}

.home-hero__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(30, 36, 82, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 15%, rgba(181, 154, 87, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 70% 80%, rgba(181, 154, 87, 0.12) 0%, transparent 50%);
    animation: homeMeshShift 14s ease-in-out infinite alternate;
    pointer-events: none;
}

.home-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}

.home-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    animation: homeFloat 8s ease-in-out infinite;
}

.home-hero__orb--1 {
    width: 320px;
    height: 320px;
    background: rgba(30, 36, 82, 0.25);
    top: 10%;
    inset-inline-start: -5%;
    animation-delay: 0s;
}

.home-hero__orb--2 {
    width: 240px;
    height: 240px;
    background: rgba(181, 154, 87, 0.2);
    bottom: 15%;
    inset-inline-end: 5%;
    animation-delay: -3s;
}

.home-hero__orb--3 {
    width: 180px;
    height: 180px;
    background: rgba(201, 162, 39, 0.12);
    top: 40%;
    inset-inline-end: 25%;
    animation-delay: -5s;
}

.home-hero .container {
    position: relative;
    z-index: 2;
}

.home-hero__layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--home-glass);
    border: 1px solid var(--home-border);
    backdrop-filter: blur(12px);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    animation: homeFadeUp 0.8s ease both;
}

.home-hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--home-teal);
    box-shadow: 0 0 12px var(--home-teal);
    animation: homePulse 2s ease infinite;
}

.home-hero__title {
    font-size: clamp(2.1rem, 4.8vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    animation: homeFadeUp 0.8s ease 0.1s both;
}

.home-hero__title-accent {
    background: linear-gradient(135deg, #c5b06e 0%, #b59a57 45%, #9a8048 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.72);
    max-width: 540px;
    line-height: 1.85;
    margin-bottom: 2rem;
    animation: homeFadeUp 0.8s ease 0.2s both;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    animation: homeFadeUp 0.8s ease 0.3s both;
}

.home-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #1e2452, #b59a57);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: 0 8px 32px rgba(30, 36, 82, 0.35);
    transition: transform 0.25s, box-shadow 0.25s;
}

.home-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(30, 36, 82, 0.45);
    color: #fff;
}

.home-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    background: transparent;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    transition: all 0.25s;
}

.home-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.home-hero__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: homeFadeUp 0.8s ease 0.45s both;
}

.home-hero__metric-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.home-hero__metric-value span {
    color: var(--home-cyan);
}

.home-hero__metric-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.35rem;
}

/* Hero visual panel */
.home-hero__visual {
    position: relative;
    min-height: 420px;
    animation: homeFadeUp 1s ease 0.35s both;
}

.home-rank-hub {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin-inline-start: auto;
    margin-inline-end: 0;
}

.home-rank-hub__core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(30, 36, 82, 0.35), rgba(181, 154, 87, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 3;
    box-shadow: 0 0 60px rgba(30, 36, 82, 0.25);
    animation: homePulseGlow 4s ease-in-out infinite;
}

.home-rank-hub__core i {
    font-size: 2rem;
    color: #93c5fd;
    margin-bottom: 0.35rem;
}

.home-rank-hub__core span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.home-rank-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: homeFloatCard 6s ease-in-out infinite;
}

.home-rank-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.home-rank-card__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.home-rank-card__sub {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
}

.home-rank-card--1 { top: 8%; inset-inline-start: 0; animation-delay: 0s; }
.home-rank-card--2 { top: 5%; inset-inline-end: 0; animation-delay: -1.5s; }
.home-rank-card--3 { bottom: 28%; inset-inline-start: -5%; animation-delay: -3s; }
.home-rank-card--4 { bottom: 8%; inset-inline-end: -2%; animation-delay: -4.5s; }

.home-rank-card--1 .home-rank-card__icon { background: rgba(30, 36, 82, 0.3); color: #93c5fd; }
.home-rank-card--2 .home-rank-card__icon { background: rgba(181, 154, 87, 0.3); color: #67e8f9; }
.home-rank-card--3 .home-rank-card__icon { background: rgba(181, 154, 87, 0.3); color: #5eead4; }
.home-rank-card--4 .home-rank-card__icon { background: rgba(201, 162, 39, 0.25); color: #fcd34d; }

.home-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.72rem;
    animation: homeFadeUp 1s ease 0.8s both;
}

.home-hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: homeScrollLine 2s ease infinite;
}

/* ── Ranking systems strip ── */
.home-rankings-strip {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 1.75rem 0;
}

.home-rankings-strip__label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-muted);
    margin-bottom: 1.25rem;
}

.home-rankings-strip__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.home-ranking-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary-light);
    transition: all 0.3s;
}

.home-ranking-pill i {
    color: var(--home-blue);
    font-size: 1rem;
}

.home-ranking-pill:hover {
    border-color: var(--home-blue);
    box-shadow: 0 4px 16px rgba(30, 36, 82, 0.12);
    transform: translateY(-2px);
}

/* ── Stats ── */
.home-stats {
    margin-top: -2.5rem;
    position: relative;
    z-index: 5;
    padding-bottom: 1rem;
}

.home-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 20px 60px rgba(7, 17, 31, 0.12);
    border: 1px solid var(--color-border);
}

.home-stat-card {
    text-align: center;
    padding: 0.5rem;
    position: relative;
}

.home-stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20%;
    inset-inline-end: 0;
    height: 60%;
    width: 1px;
    background: var(--color-border);
}

.home-stat-card__number {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--home-blue), var(--home-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.home-stat-card__label {
    font-size: 0.82rem;
    color: var(--color-muted);
    margin-top: 0.4rem;
    font-weight: 500;
}

/* ── Section common ── */
.home-section {
    padding: 5.5rem 0;
}

.home-section--alt {
    background: linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
}

.home-section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.home-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--home-blue);
    margin-bottom: 0.75rem;
}

.home-section__eyebrow::before,
.home-section__eyebrow::after {
    content: '';
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--home-cyan));
    border-radius: 2px;
}

.home-section__eyebrow::after {
    background: linear-gradient(90deg, var(--home-cyan), transparent);
}

.home-section__title {
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--color-primary);
    margin-bottom: 0.85rem;
}

.home-section__desc {
    color: var(--color-muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

/* ── Expertise cards ── */
.home-expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.home-expertise-card {
    position: relative;
    padding: 2rem 1.75rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.home-expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--home-blue), var(--home-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

html[dir="rtl"] .home-expertise-card::before {
    transform-origin: right;
}

.home-expertise-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(7, 17, 31, 0.1);
    border-color: rgba(30, 36, 82, 0.2);
}

.home-expertise-card:hover::before {
    transform: scaleX(1);
}

.home-expertise-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(30, 36, 82, 0.1), rgba(181, 154, 87, 0.1));
    color: var(--home-blue);
    transition: transform 0.35s;
}

.home-expertise-card:hover .home-expertise-card__icon {
    transform: scale(1.08) rotate(-3deg);
}

.home-expertise-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.home-expertise-card__text {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.75;
    margin: 0;
}

/* ── Process ── */
.home-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.home-process::before {
    content: '';
    position: absolute;
    top: 28px;
    inset-inline: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--home-blue), var(--home-cyan), var(--home-teal));
    opacity: 0.25;
}

.home-process__step {
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.home-process__num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--home-blue), var(--home-cyan));
    box-shadow: 0 8px 24px rgba(30, 36, 82, 0.3);
    position: relative;
    z-index: 1;
    transition: transform 0.35s;
}

.home-process__step:hover .home-process__num {
    transform: scale(1.1);
}

.home-process__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--color-primary);
}

.home-process__text {
    font-size: 0.82rem;
    color: var(--color-muted);
    line-height: 1.65;
}

/* ── Service cards (enhanced) ── */
.home-service-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s, box-shadow 0.35s;
}

.home-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 56px rgba(7, 17, 31, 0.12);
}

.home-service-card__media {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #eef0f7 0%, #f5f0e4 50%, #f7f5ef 100%);
}

.home-service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-service-card:hover .home-service-card__media img {
    transform: scale(1.06);
}

.home-service-card__media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--home-blue);
    opacity: 0.35;
}

.home-service-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-service-card__tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--home-cyan);
    margin-bottom: 0.5rem;
}

.home-service-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.home-service-card__text {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.home-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--home-blue);
    text-decoration: none;
    transition: gap 0.25s;
}

.home-service-card__link:hover {
    gap: 0.65rem;
    color: var(--home-cyan);
}

/* ── News & Events ── */
.home-news-card,
.home-event-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.home-news-card:hover,
.home-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(7, 17, 31, 0.08);
}

.home-news-card__img {
    height: 180px;
    overflow: hidden;
}

.home-news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.home-news-card:hover .home-news-card__img img {
    transform: scale(1.05);
}

.home-news-card__body,
.home-event-card__body {
    padding: 1.35rem;
}

.home-news-card__date,
.home-event-card__date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--home-blue);
    margin-bottom: 0.65rem;
}

.home-event-card {
    border-inline-start: 4px solid var(--home-cyan);
}

.home-event-card__location {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.home-event-card__location i {
    color: var(--home-teal);
    margin-inline-end: 0.25rem;
}

/* ── Homepage partners marquee ── */
.home-partners-marquee {
    overflow: hidden;
    min-height: 92px;
    opacity: 0;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    transition: opacity 0.35s ease;
}

.home-partners-marquee.is-ready {
    opacity: 1;
}

.home-partners-marquee.is-static .home-partners-track {
    animation: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    gap: 1rem;
}

.home-partners-track {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: max-content;
}

.home-partners-marquee.is-animated .home-partners-track {
    animation: homeMarquee 35s linear infinite;
}

.home-partners-marquee.is-animated:hover .home-partners-track {
    animation-play-state: paused;
}

.home-partner-logo {
    flex: 0 0 auto;
    width: 170px;
    height: 92px;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.home-partner-logo:hover {
    border-color: var(--home-blue);
    box-shadow: 0 8px 24px rgba(30, 36, 82, 0.12);
    transform: translateY(-2px);
}

.home-partner-logo img {
    display: block;
    max-width: 130px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s, opacity 0.3s;
}

.home-partner-logo:hover img {
    filter: none;
    opacity: 1;
}

.home-partner-logo__fallback {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-muted);
    text-align: center;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── CTA ── */
.home-cta {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.home-cta__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #141838 0%, #1e2452 50%, #2a3166 100%);
}

.home-cta__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(30, 36, 82, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(181, 154, 87, 0.15) 0%, transparent 50%);
}

.home-cta .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.home-cta__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.home-cta__desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.home-cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Keyframes ── */
@keyframes homeMeshShift {
    0% { opacity: 0.85; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

@keyframes homeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

@keyframes homeFloatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes homeFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes homePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

@keyframes homePulseGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(30, 36, 82, 0.2); }
    50% { box-shadow: 0 0 70px rgba(181, 154, 87, 0.35); }
}

@keyframes homeScrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes homeMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

html[dir="rtl"] .home-partners-marquee.is-animated .home-partners-track {
    animation-name: homeMarqueeRtl;
}

@keyframes homeMarqueeRtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .home-hero__layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-hero__subtitle {
        margin-inline: auto;
    }

    .home-hero__actions,
    .home-hero__metrics {
        justify-content: center;
    }

    .home-hero__visual {
        min-height: 360px;
        margin-top: 1rem;
    }

    .home-rank-hub {
        margin-inline: auto;
    }

    .home-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-stat-card:nth-child(2)::after {
        display: none;
    }

    .home-expertise-grid {
        grid-template-columns: 1fr;
    }

    .home-process {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .home-process::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .home-hero {
        min-height: auto;
        padding: 3rem 0 4rem;
    }

    .home-hero__scroll {
        display: none;
    }

    .home-stats__grid {
        grid-template-columns: 1fr 1fr;
        padding: 1.25rem;
    }

    .home-stat-card::after {
        display: none !important;
    }

    .home-process {
        grid-template-columns: 1fr;
    }

    .home-section {
        padding: 3.5rem 0;
    }

    .home-partners-marquee.is-static .home-partners-track {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__mesh,
    .home-hero__orb,
    .home-rank-card,
    .home-rank-hub__core,
    .home-partners-track,
    .home-hero__scroll-line,
    .reveal {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
