/* ============================================ */
/* INSTAGRAM REELS — PEEK CAROUSEL              */
/* ============================================ */
.reels-section {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e1eaf9 100%);
    position: relative;
    overflow: hidden;
}

.reels-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(225, 48, 108, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.reels-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(131, 58, 180, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-weight: 700;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-header p {
    color: #6c757d;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Carousel wrapper --- */
.reels-carousel-outer {
    position: relative;
    z-index: 1;
}

/* --- Viewport (clips peeking slides) --- */
.reels-viewport {
    overflow: hidden;
    width: 100%;
    padding: 50px 0;
    touch-action: pan-y;
}

/* --- Track --- */
.reels-track {
    display: flex;
    gap: 28px;
    transition: transform 0.75s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

/* --- Slides --- */
.reel-slide {
    flex: 0 0 auto;
    width: clamp(190px, 26vw, 320px);
    position: relative;
    cursor: pointer;
    /* Default = far slides */
    opacity: 0.15;
    transform: scale(0.72);
    filter: blur(4px) saturate(0.4);
    transition:
        opacity 0.75s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.75s cubic-bezier(0.23, 1, 0.32, 1),
        filter 0.75s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, opacity, filter;
}

/* Neighbours */
.reel-slide.dist-1 {
    opacity: 0.42;
    transform: scale(0.86);
    filter: blur(1.5px) saturate(0.7);
}

/* Active (centered) */
.reel-slide.active {
    opacity: 1;
    transform: scale(1);
    filter: none;
    cursor: default;
    z-index: 3;
}

/* Disable interaction on non-active slides */
.reel-slide:not(.active) iframe {
    pointer-events: none;
}

.reel-slide:not(.active) .reel-fullscreen-btn {
    opacity: 0;
    pointer-events: none;
}

/* --- Reel Card --- */
.reel-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.10), 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.5s ease;
}

.reel-slide.active .reel-card {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.20), 0 6px 24px rgba(0, 0, 0, 0.08);
}

.reel-iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #f0f0f0;
    overflow: hidden;
}

.reel-iframe-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- Fullscreen button --- */
.reel-fullscreen-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: #333;
    font-size: 1.15rem;
}

.reel-fullscreen-btn:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #e1306c;
}

/* --- Nav Buttons --- */
.reel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    color: #333;
    font-size: 1.35rem;
    line-height: 1;
}

.reel-nav:hover:not(:disabled) {
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 36px rgba(225, 48, 108, 0.4);
    border-color: transparent;
}

.reel-nav:active:not(:disabled) {
    transform: translateY(-50%) scale(0.96);
}

.reel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.reel-nav.prev {
    left: 22px;
}

.reel-nav.next {
    right: 22px;
}

/* --- Dots --- */
.reels-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 0.75rem;
}

.reel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.reel-dot:hover {
    background: #94a3b8;
}

.reel-dot.active {
    width: 34px;
    background: linear-gradient(45deg, #833ab4, #fd1d1d);
}

/* ============================================ */
/* FULLSCREEN OVERLAY                           */
/* ============================================ */
.fullscreen-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fullscreen-overlay.active {
    display: flex;
    opacity: 1;
}

.fullscreen-overlay .fullscreen-iframe-container {
    position: relative;
    width: auto;
    height: 92vh;
    max-width: 95vw;
    aspect-ratio: 9 / 16;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.fullscreen-overlay.active .fullscreen-iframe-container {
    transform: scale(1);
}

.fullscreen-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.fullscreen-close-btn {
    position: fixed;
    top: 24px;
    right: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.fullscreen-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */
@media (max-width: 991.98px) {
    .reel-slide {
        width: clamp(190px, 32vw, 300px);
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .reels-section {
        padding: 3rem 0 2rem;
    }

    .reels-viewport {
        padding: 40px 0;
    }

    .reels-track {
        gap: 20px;
    }

    .reel-slide {
        width: clamp(180px, 58vw, 280px);
    }

    .reel-nav {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .reel-nav.prev {
        left: 10px;
    }

    .reel-nav.next {
        right: 10px;
    }

    .reel-card {
        border-radius: 18px;
    }

    .reel-fullscreen-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        bottom: 10px;
        right: 10px;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .fullscreen-overlay .fullscreen-iframe-container {
        height: 80vh;
        border-radius: 16px;
    }

    .fullscreen-close-btn {
        top: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .reels-track {
        gap: 16px;
    }

    .reel-slide {
        width: clamp(170px, 62vw, 250px);
    }

    .reel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ============================================================
   FOOTER — Safacom Theme
   ============================================================ */
.safacom-footer {
    background: #8270fc;
    color: #b8b3d1;
    padding: 50px 0 0;
    position: relative;
    overflow: hidden;
}

/* Top gradient line */
.safacom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(130, 112, 252, 0.8),
            rgba(0, 153, 255, 0.8),
            transparent);
}

/* Soft purple glow blob */
.safacom-footer::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(130, 112, 252, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.safacom-footer .container {
    position: relative;
    z-index: 1;
}

/* Brand */
.safacom-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 18px;
}

.safacom-footer .footer-brand img {
    height: 40px;
    width: auto;
    border-radius: 10px;
}

.safacom-footer .footer-brand-text {
    font-family: 'Saacom';
    font-weight: 900;
    color: #fff;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
}

/* Headings */
.safacom-footer h5 {
    color: #fff;
    font-size: 1.0rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 22px;
    font-weight: 700;
    font-family: 'Saacom3';
}

/* Paragraphs */
.safacom-footer p {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Link lists */
.safacom-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.safacom-footer .footer-links li {
    margin-bottom: 12px;
}

.safacom-footer .footer-links a {
    color: #fdfdfd;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.safacom-footer .footer-links a:hover {
    color: #a99dff;
    padding-left: 6px;
}

/* Social icons */
.safacom-footer .social-row {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.safacom-footer .social-row a {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #ffffff;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.safacom-footer .social-row a:hover {
    background: linear-gradient(135deg, #8270fc, #0099ff);
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(130, 112, 252, 0.4);
}

/* Contact lines with icons */
.safacom-footer .contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f8f8fa;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.safacom-footer .contact-line i {
    color: #f5f5f5;
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.safacom-footer .contact-line:hover {
    color: #ffffff;
}

.safacom-footer .contact-line:hover i {
    color: #0099ff;
}

/* Address block */
.safacom-footer address {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 14px;
    font-style: normal;
}

/* Bottom bar */
.safacom-footer .footer-bottom {
    margin-top: 20px;
    padding: 10px 40px 10px 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.84rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.safacom-footer .footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.safacom-footer .footer-bottom a:hover {
    color: #0a2a3f;
}

/* Responsive */
@media (max-width: 767.98px) {
    .safacom-footer {
        padding: 25px 20px 5px;
    }

    .safacom-footer h5 {
        margin-bottom: 16px;
    }

    .safacom-footer .footer-bottom {
        padding: 25px 0px 5px;
        margin-top: 30px;
        flex-direction: column;
        text-align: center;
    }
}

.hide-floating {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.whatsapp-float,
.float_demo {
    transition: opacity 0.3s, transform 0.3s;
}