/* ----------------------------------------------------------------
	AKLOR — Creative Layer
	Unique scroll experiences & page-specific treatments
-----------------------------------------------------------------*/

:root {
    --aklor-creative-font: 'Syne', 'Poppins', sans-serif;
}

/* ===== SCROLL PROGRESS ===== */
.aklor-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--aklor-red), #ff6b6b);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ===== VARIED REVEAL ANIMATIONS ===== */
.aklor-reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.aklor-reveal-left.aklor-visible {
    opacity: 1;
    transform: translateX(0);
}

.aklor-reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.aklor-reveal-right.aklor-visible {
    opacity: 1;
    transform: translateX(0);
}

.aklor-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.aklor-reveal-scale.aklor-visible {
    opacity: 1;
    transform: scale(1);
}

.aklor-reveal-blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
    transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s ease;
}
.aklor-reveal-blur.aklor-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.aklor-reveal-stagger > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.aklor-reveal-stagger.aklor-visible > *:nth-child(1) { transition-delay: 0.1s; }
.aklor-reveal-stagger.aklor-visible > *:nth-child(2) { transition-delay: 0.2s; }
.aklor-reveal-stagger.aklor-visible > *:nth-child(3) { transition-delay: 0.3s; }
.aklor-reveal-stagger.aklor-visible > *:nth-child(4) { transition-delay: 0.4s; }
.aklor-reveal-stagger.aklor-visible > *:nth-child(5) { transition-delay: 0.5s; }
.aklor-reveal-stagger.aklor-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PARALLAX SECTIONS ===== */
.aklor-parallax-wrap {
    position: relative;
    overflow: hidden;
}
.aklor-parallax-wrap > .container {
    position: relative;
    z-index: 1;
}
.aklor-parallax-bg {
    position: absolute;
    top: -20%;
    left: -20%;
    right: -20%;
    bottom: -20%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    pointer-events: none;
}

/* ===== BENTO GRID (Homepage Services) ===== */
.aklor-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.aklor-bento .aklor-service {
    margin: 0;
}
.aklor-bento .aklor-bento-tall {
    grid-row: 1 / -1;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.aklor-bento .aklor-bento-wide {
    grid-column: 2;
    grid-row: 2;
}
.aklor-bento > a:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}
@media (max-width: 768px) {
    .aklor-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .aklor-bento .aklor-bento-tall,
    .aklor-bento .aklor-bento-wide,
    .aklor-bento > a:nth-child(2) {
        grid-column: 1;
        grid-row: auto;
    }
}

/* ===== MARQUEE / SCROLLING TEXT ===== */
.aklor-marquee-wrap {
    overflow: hidden;
    padding: 1.5rem 0;
    background: var(--aklor-grey-dark);
    color: #fff;
    white-space: nowrap;
}
.aklor-marquee {
    display: inline-flex;
    animation: aklor-marquee 30s linear infinite;
}
.aklor-marquee span {
    padding: 0 3rem;
    font-family: var(--aklor-creative-font);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}
.aklor-marquee span::after {
    content: ' ★ ';
    color: var(--aklor-red);
    margin-left: 1rem;
}
@keyframes aklor-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== CREATIVE HEADLINES ===== */
.aklor-creative-h1 {
    font-family: var(--aklor-creative-font) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
}
.aklor-creative-h2 {
    font-family: var(--aklor-creative-font) !important;
    font-weight: 700 !important;
}
.aklor-text-gradient {
    background: linear-gradient(135deg, var(--aklor-red) 0%, #ff6b6b 50%, var(--aklor-red) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aklor-gradient-shift 4s ease infinite;
}
@keyframes aklor-gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* ===== HOMEPAGE: Hero gradient mesh ===== */
.aklor-hero-mesh {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(197,60,48,0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(197,60,48,0.2) 0%, transparent 40%),
        radial-gradient(ellipse 40% 30% at 20% 60%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* ===== HOMEPAGE: Sticky section with scroll-triggered content ===== */
.aklor-sticky-scroll {
    position: relative;
    min-height: 300vh;
}
.aklor-sticky-panel {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

/* ===== METRICS: Animated counter placeholder ===== */
.aklor-metric-value.aklor-count {
    display: inline-block;
    min-width: 2ch;
}

/* ===== TESTIMONIALS: Creative card stack ===== */
.aklor-testimonial-stack {
    perspective: 1000px;
}
.aklor-testimonial-stack .aklor-testimonial:nth-child(1) { transform: translateX(0) rotate(-1deg); }
.aklor-testimonial-stack .aklor-testimonial:nth-child(2) { transform: translateX(20px) rotate(1deg); }
.aklor-testimonial-stack .aklor-testimonial:nth-child(3) { transform: translateX(-15px) rotate(-0.5deg); }
.aklor-testimonial-stack .aklor-testimonial:nth-child(4) { transform: translateX(10px) rotate(0.5deg); }
.aklor-testimonial-stack .aklor-testimonial:hover {
    transform: translateX(0) rotate(0) scale(1.02) !important;
    z-index: 2;
}

/* ===== SERVICES PAGE: Horizontal scroll strip ===== */
.aklor-horizontal-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}
.aklor-horizontal-scroll:active { cursor: grabbing; }
.aklor-horizontal-scroll::-webkit-scrollbar { display: none; }
.aklor-horizontal-card {
    flex: 0 0 340px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

/* ===== ABOUT PAGE: Vertical timeline ===== */
.aklor-timeline {
    position: relative;
    padding-left: 2rem;
}
.aklor-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--aklor-red), transparent);
    border-radius: 3px;
}
.aklor-timeline-item {
    position: relative;
    padding-bottom: 3rem;
}
.aklor-timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    background: var(--aklor-red);
    border-radius: 50%;
    transform: translateX(-5.5px);
    box-shadow: 0 0 0 4px rgba(197,60,48,0.2);
}
.aklor-timeline-year {
    font-family: var(--aklor-creative-font);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--aklor-red);
    margin-bottom: 0.25rem;
}
.aklor-timeline-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.aklor-timeline-desc {
    color: var(--aklor-grey);
    font-size: 0.95rem;
}

/* ===== AI CONSULTING: Dark tech section ===== */
.aklor-dark-tech {
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
    color: #fff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.aklor-dark-tech::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(197,60,48,0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(197,60,48,0.05) 0%, transparent 40%);
    pointer-events: none;
}
.aklor-dark-tech .aklor-label { color: #ff6b6b; }
.aklor-dark-tech h2, .aklor-dark-tech h3 { color: #fff !important; }
.aklor-dark-tech p { color: rgba(255,255,255,0.8) !important; }
.aklor-grid-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* ===== SAAS PAGE: Wave section ===== */
.aklor-wave-section {
    position: relative;
    overflow: hidden;
}
.aklor-wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23f8f9fa' fill-opacity='1' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,165.3C960,171,1056,149,1152,138.7C1248,128,1344,128,1392,128L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: 50% 100%;
    animation: aklor-wave 15s ease-in-out infinite;
}
@keyframes aklor-wave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-25%); }
}

/* ===== WEB AGENCY: Bold typography block ===== */
.aklor-type-block {
    font-family: var(--aklor-creative-font);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: #212529;
    overflow: hidden;
}
.aklor-type-block .aklor-type-outline {
    -webkit-text-stroke: 2px var(--aklor-red);
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ===== CONTACT: Split creative ===== */
.aklor-contact-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    min-height: 70vh;
}
.aklor-contact-visual {
    background: linear-gradient(135deg, var(--aklor-grey-dark) 0%, #212529 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
}
.aklor-contact-visual::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(197,60,48,0.2);
    border-radius: 50%;
    animation: aklor-pulse-ring 3s ease-out infinite;
}
.aklor-contact-visual::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(197,60,48,0.15);
    border-radius: 50%;
    animation: aklor-pulse-ring 3s ease-out infinite 0.5s;
}
@keyframes aklor-pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}
.aklor-contact-form-side {
    padding: 3rem 4rem;
    background: #fff;
}
@media (max-width: 992px) {
    .aklor-contact-split { grid-template-columns: 1fr; }
}

/* ===== FLOATING LABELS ===== */
.aklor-float-label {
    position: absolute;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--aklor-red);
    opacity: 0.6;
    pointer-events: none;
}
.aklor-float-label-tl { top: 1.5rem; left: 2rem; }
.aklor-float-label-tr { top: 1.5rem; right: 2rem; }
.aklor-float-label-bl { bottom: 1.5rem; left: 2rem; }
.aklor-float-label-br { bottom: 1.5rem; right: 2rem; }

/* ===== CTA: Magnetic button effect area ===== */
.aklor-cta-creative {
    position: relative;
    overflow: hidden;
}
.aklor-cta-creative .aklor-cta-bg {
    animation: aklor-cta-glow 6s ease-in-out infinite;
}
@keyframes aklor-cta-glow {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.9; filter: brightness(1.1); }
}
