/* Homepage effects: transform/opacity only, disabled for reduced motion. */

.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    z-index: 1200;
    transform: scaleX(0);
    transform-origin: right;
    background: linear-gradient(90deg, #f6e27a, var(--accent), #f6e27a);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
    pointer-events: none;
}

/* Hero */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}
.hero-particles i {
    position: absolute;
    bottom: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 226, 122, 0.95), rgba(212, 175, 55, 0) 70%);
    opacity: 0;
    animation: fxRise linear infinite;
    will-change: transform, opacity;
}

.swiper-slide-active .slide-content h1 {
    background: linear-gradient(100deg, var(--accent) 0%, var(--accent) 38%, #fff6cf 50%, var(--accent) 62%, var(--accent) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
    animation: fxShine 5s ease-in-out 1.2s infinite;
}

.slide-kicker { position: relative; overflow: hidden; }
.slide-kicker::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(120%);
    animation: fxSweep 4.5s ease-in-out 2s infinite;
}

/* Ayah band */
.ayah-band {
    position: relative;
    overflow: hidden;
    padding: 34px 5%;
    text-align: center;
    background: linear-gradient(135deg, #0f2027, #1b3a42);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
.ayah-band::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23f6e27a' stroke-width='1'%3E%3Cpath d='M32 4l7 21h21l-17 12 7 21-18-13-18 13 7-21L4 25h21z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 64px 64px;
    animation: fxDrift 50s linear infinite;
}
.ayah-band p {
    position: relative;
    margin: 0;
    font-family: 'Amiri', serif;
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    line-height: 1.8;
    background: linear-gradient(100deg, #d4af37 0%, #d4af37 40%, #fff6cf 50%, #d4af37 60%, #d4af37 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fxShine 6s ease-in-out infinite;
}
.ayah-band small {
    position: relative;
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 700;
}

/* Soft pattern behind light sections */
#about, #news { overflow: hidden; }
#about::before,
#news::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.045;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%230f2027' stroke-width='1.2'%3E%3Crect x='25' y='25' width='40' height='40'/%3E%3Crect x='25' y='25' width='40' height='40' transform='rotate(45 45 45)'/%3E%3Ccircle cx='45' cy='45' r='8'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 90px 90px;
}
#about > *, #news > * { position: relative; z-index: 1; }

/* Section heading line grows in */
.section-header h2::before {
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.9s cubic-bezier(.2, 1, .3, 1) 0.2s;
}
.section-header.aos-animate h2::before,
.section-header:not([data-aos]) h2::before { transform: translateX(-50%) scaleX(1); }

/* Cursor spotlight on cards */
.fx-spot { position: relative; isolation: isolate; }
.fx-spot::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 55, 0.22), transparent 65%);
    pointer-events: none;
}
.fx-spot:hover::after { opacity: 1; }

/* Stage cards: tilt + spinning ring */
.cards-grid { perspective: 900px; }
.card.fx-tilt {
    transform-style: preserve-3d;
    transition: transform 0.25s ease, border-color 0.4s, box-shadow 0.4s;
}
.card.fx-tilt:hover {
    transform: translateY(-10px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.stage-num { position: relative; }
.stage-num::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 70%, #f6e27a 85%, transparent 100%);
    -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%);
    mask: radial-gradient(circle, transparent 60%, #000 61%);
    opacity: 0;
    transition: opacity 0.4s;
}
.card:hover .stage-num::before { opacity: 1; animation: fxSpin 1.6s linear infinite; }

.feature-box i,
.event-card i { transition: transform 0.4s cubic-bezier(.2, 1.5, .4, 1); }
.feature-box:hover i,
.event-card:hover i { transform: scale(1.18) rotate(-6deg); }

/* News cover zoom */
.news-card { overflow: hidden; }
.news-cover { transition: transform 0.7s ease; }
.news-card:hover .news-cover { transform: scale(1.06); }

/* Stats */
.stat-item { position: relative; }
.stat-item::after {
    content: '';
    position: absolute;
    right: 50%;
    bottom: 6px;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
    transform: translateX(50%) scaleX(0);
    transition: transform 0.5s ease;
}
.stat-item:hover::after { transform: translateX(50%) scaleX(1); }

/* CTA */
.cta-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #0f2027, #203a43, #2c5364, #203a43, #0f2027);
    background-size: 300% 300%;
    animation: fxGradient 14s ease infinite;
}
.cta-band::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 700px;
    height: 700px;
    margin-left: -350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 65%);
    animation: fxPulse 6s ease-in-out infinite;
    pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band .btn-solid { overflow: hidden; }
.cta-band .btn-solid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    right: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: fxBtnSweep 3.5s ease-in-out infinite;
}
.reg-cd-unit { transition: transform 0.3s ease; }
.reg-cd-unit.tick { animation: fxTick 0.45s ease; }

/* Back to top */
.to-top {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 1100;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 32, 39, 0.9);
    color: var(--accent);
    font-size: 1.1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 3; }
.to-top .track { stroke: rgba(212, 175, 55, 0.2); }
.to-top .ring { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 151; stroke-dashoffset: 151; }

@keyframes fxRise {
    0% { transform: translateY(0) scale(0.6); opacity: 0; }
    15% { opacity: 0.9; }
    100% { transform: translateY(-105vh) scale(1.1); opacity: 0; }
}
@keyframes fxShine {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0 0; }
}
@keyframes fxSweep { 0%, 65% { transform: translateX(120%); } 100% { transform: translateX(-120%); } }
@keyframes fxDrift { to { background-position: 640px 320px; } }
@keyframes fxSpin { to { transform: rotate(360deg); } }
@keyframes fxGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes fxPulse { 50% { transform: scale(1.15); opacity: 0.7; } }
@keyframes fxBtnSweep { 0%, 55% { right: -60%; } 100% { right: 130%; } }
@keyframes fxTick { 40% { transform: translateY(-4px) scale(1.06); } }

@media (max-width: 640px) {
    .to-top { left: 14px; bottom: 14px; width: 46px; height: 46px; }
    .ayah-band { padding: 26px 5%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-particles, .scroll-progress { display: none; }
    .section-header h2::before { transform: translateX(-50%) scaleX(1); }
}
