/* ============================================
   a_animate.css — Enhanced Animations & Effects
   Syrub Studio
   ============================================ */

/* ── SCROLL REVEAL BASE ───────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.reveal-left {
    transform: translateX(-60px);
}
.reveal.reveal-right {
    transform: translateX(60px);
}
.reveal.reveal-scale {
    transform: scale(0.88);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.60s; }

/* ── SECTION TWO – ICON CARDS ────────────── */
.icon-card-wrap {
    position: relative;
}

/* Count-up numbers above icons */
.icon-main-wrap {
    position: relative;
    display: inline-block;
}

/* Ripple ring that pulses outward on hover */
.icon-main::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    pointer-events: none;
    transition: none;
}
.icon-main:hover::after {
    animation: rippleOut 0.6s ease-out forwards;
}
@keyframes rippleOut {
    0%   { opacity: 0.8; transform: translate(-50%,-50%) scale(1); }
    100% { opacity: 0;   transform: translate(-50%,-50%) scale(1.7); }
}

/* Label underline sweep */
.icon-label {
    position: relative;
    display: inline-block;
}
.icon-label::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.4s ease, left 0.4s ease;
}
.col-md-3:hover .icon-label::after {
    width: 100%;
    left: 0;
}

/* Connecting line between icons (desktop) */
@media (min-width: 992px) {
    .icon-connector {
        position: relative;
    }
    .icon-connector::after {
        content: '';
        position: absolute;
        top: 60px;
        right: -30px;
        width: 60px;
        height: 2px;
        background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
        animation: linePulse 2s ease-in-out infinite;
    }
    @keyframes linePulse {
        0%, 100% { opacity: 0.3; }
        50%       { opacity: 1; }
    }
}

/* ── SECTION ONE / THREE / FOUR – IMAGE HOVER ── */

/* Magnetic tilt effect container */
.tilt-image {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Gloss shimmer sweep on image hover */
.img-one, .img-three, .img-four {
    overflow: hidden;
}
.img-one::before,
.img-three::before,
.img-four::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.18) 50%,
        transparent 60%
    );
    z-index: 10;
    pointer-events: none;
    transition: none;
    opacity: 0;
}
.img-one:hover::before,
.img-three:hover::before,
.img-four:hover::before {
    opacity: 1;
    animation: glossSweep 0.8s ease-out forwards;
}
@keyframes glossSweep {
    0%   { top: -100%; left: -100%; }
    100% { top: 100%;  left: 200%; }
}

/* ── BTN MORE – MORPHING BUTTON ────────────── */
.btn-more {
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    transition: color 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease !important;
}
.btn-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}
.btn-more:hover::before {
    transform: scaleX(1);
}
.btn-more:hover {
    color: #fff !important;
    border-color: #000 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18) !important;
}
.btn-more span,
.btn-more {
    position: relative;
    z-index: 1;
}

/* ── SECTION TWO BLACK BG – TEXT COUNTER ──── */
.counter-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    font-family: 'Noto Sans', sans-serif;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}
.col-md-3:hover .counter-number {
    transform: scale(1.12);
}

/* ── CURSOR FOLLOWER ────────────────────── */
#cursor-dot {
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease;
    mix-blend-mode: difference;
}
#cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(0,0,0,0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                width 0.35s ease,
                height 0.35s ease,
                border-color 0.35s ease;
}
#cursor-ring.expand {
    width: 56px;
    height: 56px;
    border-color: rgba(0,0,0,0.25);
}
@media (max-width: 768px) {
    #cursor-dot, #cursor-ring { display: none; }
}

/* ── FLOATING PARTICLES (section two) ─────── */
.particles-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
    z-index: 0;
}
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    animation: floatParticle linear infinite;
}
@keyframes floatParticle {
    0%   { transform: translateY(0) scale(1);   opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-300px) scale(0.4); opacity: 0; }
}

/* ── SECTION ONE/THREE/FOUR – TITLE WORD REVEAL ── */
.word-reveal .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.word-reveal.is-visible .word {
    opacity: 1;
    transform: none;
}
/* stagger each word */
.word-reveal .word:nth-child(1)  { transition-delay: 0.05s; }
.word-reveal .word:nth-child(2)  { transition-delay: 0.10s; }
.word-reveal .word:nth-child(3)  { transition-delay: 0.15s; }
.word-reveal .word:nth-child(4)  { transition-delay: 0.20s; }
.word-reveal .word:nth-child(5)  { transition-delay: 0.25s; }
.word-reveal .word:nth-child(6)  { transition-delay: 0.30s; }
.word-reveal .word:nth-child(7)  { transition-delay: 0.35s; }
.word-reveal .word:nth-child(8)  { transition-delay: 0.40s; }
.word-reveal .word:nth-child(9)  { transition-delay: 0.45s; }
.word-reveal .word:nth-child(10) { transition-delay: 0.50s; }

/* ── SWIPER – PROGRESS BAR ───────────────── */
.swiper-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.9);
    width: 0%;
    z-index: 10;
    border-radius: 0 2px 2px 0;
    transition: width linear;
}

/* ── HEADER SCROLL SHRINK ────────────────── */
.octf-mainbar-container.scrolled {
    height: 70px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ── SECTION TRANSITION OVERLAY ───────────── */
.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.08) 50%, transparent 100%);
    margin: 0 auto;
}

/* ── SMOOTH PAGE LOAD ────────────────────── */
body.page-loading {
    overflow: hidden;
}
#page-loader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-ring {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(0,0,0,0.08);
    border-top-color: #000;
    border-radius: 50%;
    animation: spinRing 0.8s linear infinite;
}
@keyframes spinRing {
    to { transform: rotate(360deg); }
}

/* ── IMAGE LAZY FADE-IN ──────────────────── */
img.lazy {
    opacity: 0;
    transition: opacity 0.7s ease;
}
img.lazy.loaded {
    opacity: 1;
}

/* ── SECTION TWO – HEADLINE ANIMATED UNDERLINE ── */
.animated-underline {
    position: relative;
    display: inline;
}
.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.animated-underline.is-visible::after {
    width: 100%;
}

/* ── MAGNETIC BUTTON ─────────────────────── */
.btn-more.magnetic {
    transition: transform 0.2s ease !important;
}

/* ============================================
   MOBILE STYLES (max-width: 766px)
   Fix: all noto/icon/btn classes are desktop-only
   in a_style.css — redefine here for mobile
   ============================================ */

@media (max-width: 766px) {

    /* ── TYPOGRAPHY ─────────────────────────── */
    .noto-12  { font-family: 'Noto Sans', sans-serif; font-size: 12px !important; line-height: 1.4 !important; font-weight: 200; letter-spacing: 0px; }
    .noto-16  { font-family: 'Noto Sans', sans-serif; font-size: 14px !important; line-height: 1.4 !important; font-weight: 200; }
    .noto-20  { font-family: 'Noto Sans', sans-serif; font-size: 16px !important; line-height: 1.4 !important; font-weight: 200; }
    .noto-22  { font-family: 'Noto Sans', sans-serif; font-size: 15px !important; line-height: 1.4 !important; font-weight: 200; }
    .noto-26  { font-family: 'Noto Sans', sans-serif; font-size: 18px !important; line-height: 1.4 !important; font-weight: 200; }
    .noto-30  { font-family: 'Noto Sans', sans-serif; font-size: 20px !important; line-height: 1.4 !important; font-weight: 200; }

    .notob-18  { font-family: 'Noto Sans', sans-serif; font-size: 16px !important; line-height: 1.4 !important; font-weight: 400; }
    .notob-20  { font-family: 'Noto Sans', sans-serif; font-size: 16px !important; line-height: 1.4 !important; font-weight: 400; }
    .notob-24  { font-family: 'Noto Sans', sans-serif; font-size: 16px !important; line-height: 1.5 !important; font-weight: 400; letter-spacing: -0.3px; }
    .notob-26  { font-family: 'Noto Sans', sans-serif; font-size: 17px !important; line-height: 1.5 !important; font-weight: 400; }
    .notob-28  { font-family: 'Noto Sans', sans-serif; font-size: 18px !important; line-height: 1.4 !important; font-weight: 400; }
    .notob-30  { font-family: 'Noto Sans', sans-serif; font-size: 19px !important; line-height: 1.4 !important; font-weight: 400; }

    .notobb-30 { font-family: 'Noto Sans', sans-serif; font-size: 28px !important; line-height: 1.25 !important; font-weight: 700; letter-spacing: -0.5px; }
    .notobb-50 { font-family: 'Noto Sans', sans-serif; font-size: 34px !important; line-height: 1.2 !important;  font-weight: 700; }
    .notobb-54 { font-family: 'Noto Sans', sans-serif; font-size: 32px !important; line-height: 1.2 !important;  font-weight: 700; letter-spacing: -0.5px; }
    .notobb-60 { font-family: 'Noto Sans', sans-serif; font-size: 36px !important; line-height: 1.2 !important;  font-weight: 700; }
    .notob-100 { font-family: 'Noto Sans', sans-serif; font-size: 50px !important; line-height: 1.2 !important;  font-weight: 400; }

    /* ── ICON CIRCLES ───────────────────────── */
    .icon-main {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: auto;
        border: 2px solid #fff;
        width: 90px;
        height: 90px;
        background: #000;
        color: #fff;
        margin-bottom: 16px;
        border-radius: 50%;
        position: relative;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    /* Tap feedback on mobile instead of hover */
    .icon-main:active {
        transform: scale(0.92);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }
    .ot-flaticon-search:before,
    .dripicons-gear:before,
    .mdi-lightbulb-on-outline:before {
        font-size: 36px;
    }
    .ic-light, .ic-pen-ruler, .ic-gear {
        width: 36px;
        height: 36px;
    }
    /* Icon stagger – simpler on mobile */
    .icon-connector {
        margin-bottom: 30px;
    }

    /* ── BTN MORE ───────────────────────────── */
    .btn-more,
    .btn-more:hover {
        color: #000;
        background: #fff;
        border: 2px solid #000;
        border-radius: 49px;
        width: 110px;
        height: 42px;
        font-family: 'Noto Sans', sans-serif;
        font-size: 18px !important;
        line-height: 1.3 !important;
        font-weight: 400;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease !important;
    }
    /* Tap feedback */
    .btn-more:active {
        background: #000 !important;
        color: #fff !important;
        transform: scale(0.95) !important;
    }
    /* Disable magnetic on mobile */
    .btn-more.magnetic { transform: none !important; }

    /* ── SECTION SPACING ────────────────────── */
    section {
        padding-top: 40px !important;
        padding-bottom: 16px !important;
    }
    .our-portfolio-1 {
        margin-bottom: 10px;
    }
    /* Tighter padding inside black section */
    .bg-black.rd-20 {
        border-radius: 14px !important;
        margin: 0 4px;
    }

    /* ── REVEAL ANIMATIONS – lighter on mobile ── */
    .reveal {
        transform: translateY(28px);   /* less dramatic */
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.reveal-left,
    .reveal.reveal-right {
        transform: translateY(28px);  /* no horizontal on mobile (avoids overflow) */
    }

    /* ── IMAGE BLOCKS ───────────────────────── */
    .img-one, .img-three, .img-four {
        border-radius: 14px;
        width: 100%;
        display: block;
    }
    .features-image {
        border-radius: 14px;
        margin-bottom: 20px;
    }
    /* Disable tilt on mobile */
    .tilt-image {
        transform: none !important;
        transition: none !important;
    }
    /* Gloss sweep stays – touch friendly */

    /* ── SWIPER ─────────────────────────────── */
    .mySwiperSlide {
        border-radius: 14px !important;
    }
    .swiper-button-next,
    .swiper-button-prev {
        width: 36px !important;
        height: 36px !important;
    }
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px !important;
    }

    /* ── WORD REVEAL – simpler ─────────────── */
    .word-reveal .word {
        display: inline;   /* don't break layout on small screens */
        opacity: 1 !important;
        transform: none !important;
    }

    /* ── PARTICLES – fewer, subtler ─────────── */
    .particle:nth-child(n+10) {
        display: none;   /* max 9 particles on mobile */
    }

    /* ── PADDING HELPERS ────────────────────── */
    .pd-l-r-40 { padding-left: 8px; padding-right: 8px; }
    .pd-l-r-70 { padding-left: 8px; padding-right: 8px; }
    .pr-160 { padding-right: 16px !important; }
    .pl-160 { padding-left:  16px !important; }

    /* ── PAGE LOADER ────────────────────────── */
    .loader-ring {
        width: 36px;
        height: 36px;
    }

    /* ── FOOTER ICONS ───────────────────────── */
    .ic-footer-flex {
        flex-direction: column !important;
        align-items: center;
    }
    .ic-email-top { width: 38px; }
    .ic-work       { width: 70px; }
    .ic-info       { width: 70px; }

    /* ── SPACERS ────────────────────────────── */
    .spacer-60 { height: 24px !important; }
    .spacer-30 { height: 16px !important; }

    /* ── HEADER/NAV ─────────────────────────── */
    .octf-mainbar-container.scrolled {
        /* desktop shrink — no-op on mobile since header_mobile is used */
        height: auto !important;
        box-shadow: none;
    }

    /* ── ICON LABEL UNDERLINE – skip animation ─ */
    .icon-label::after {
        display: none;
    }
    .icon-label {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    /* ── SECTION TWO h3 TEXT ────────────────── */
    .bg-black .notob-26 {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    /* ── BTN-WORK (nav buttons) ─────────────── */
    .btn-work {
        font-size: 14px !important;
        width: 80px;
        height: 34px;
    }

    /* ── ANIMATED UNDERLINE (reduce) ─────────── */
    .animated-underline::after {
        height: 1px;
        bottom: -2px;
    }

    /* ── VISIBLE / HIDDEN helpers ────────────── */
    .visible-xs { display: block !important; }
    .hidden-xs  { display: none  !important; }
}

/* ── TABLET (768–991px) tweaks ──────────────── */
@media (min-width: 767px) and (max-width: 991px) {
    .notobb-54 { font-size: 38px !important; }
    .notob-24  { font-size: 18px !important; }
    .icon-main { width: 100px; height: 100px; }
    .pd-l-r-70 { padding-left: 20px; padding-right: 20px; }
    .pd-l-r-40 { padding-left: 16px; padding-right: 16px; }
    section { padding-top: 60px !important; }
}
