/*
Theme Name: RootByte
Theme URI: https://rootbyte.com
Author: RootByte
Version: 1.0.0
Text Domain: rootbyte
*/


html, body, h1, h2, h3, h4, h5, h6, p, span, a, div, li, strong, small, label, button, input, textarea {
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

*, *::before, *::after {
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

body {
    margin: 0;
    background: #0A0A0A;
    color: #FFFFFF;
    font-family: 'Readex Pro', sans-serif;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
}

#rb-mobile-menu[hidden] {
    display: none !important;
}

.rb-stat-value {
    font-variant-numeric: tabular-nums;
}

summary::-webkit-details-marker {
    display: none;
}

.wp-caption,
.wp-caption img,
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   ===== POLISH LAYER (DESIGN-PATTERNS.MD) =====
   ========================================================================== */

:root {
    --p-accent: #FFC400;
    --p-bg: #0A0A0A;
    --p-surface: #141414;
    --p-text: #FFFFFF;
    --p-muted: #B3B3B3;
    --p-line: color-mix(in srgb, var(--p-accent) 14%, transparent);
    --p-glow: color-mix(in srgb, var(--p-accent) 45%, transparent);
    --p-glow-soft: color-mix(in srgb, var(--p-accent) 18%, transparent);
    --p-ease: cubic-bezier(.2, .8, .2, 1);
    --p-ease-reveal: cubic-bezier(.77, 0, .18, 1);
    --p-radius: 16px;
}

/* Typography Calibration — Balanced Architectural Scales (No exaggerated shouting text) */
h1, .hero-headline {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

h2, .section-heading {
    font-size: clamp(1.35rem, 2.3vw, 1.75rem) !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

h3, .card-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

p.section-desc, .section-lead {
    font-size: 0.925rem !important;
    color: #A3A3A3 !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
}

/* 2.1 & 2.2 Consistent Radius, Depth, & Glass Cards */
.card,
.project-card,
.article-card,
.process-card,
.workshop-card,
.stat-card,
.feature-card {
    border-radius: var(--p-radius) !important;
    border: 1px solid var(--p-line) !important;
    background-color: var(--p-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

/* 2.3 Card Hover & Motion */
.card,
.project-card,
.article-card,
.process-card,
.workshop-card,
.feature-card {
    transition: transform .5s var(--p-ease), border-color .4s var(--p-ease), box-shadow .5s var(--p-ease) !important;
}

.card:hover,
.project-card:hover,
.article-card:hover,
.process-card:hover,
.workshop-card:hover,
.feature-card:hover {
    transform: translateY(-6px) !important;
    border-color: color-mix(in srgb, var(--p-accent) 55%, transparent) !important;
    box-shadow: 0 34px 60px -30px var(--p-glow) !important;
}

.card img,
.project-card img,
.article-card img {
    transition: transform .9s var(--p-ease) !important;
}

.card:hover img,
.project-card:hover img,
.article-card:hover img {
    transform: scale(1.06) !important;
}

.card-icon-box {
    transition: all .4s var(--p-ease) !important;
}

.card:hover .card-icon-box,
.process-card:hover .card-icon-box,
.workshop-card:hover .card-icon-box {
    background-color: var(--p-accent) !important;
    color: #0A0A0A !important;
    border-color: var(--p-accent) !important;
    transform: rotate(-8deg);
}

[dir="rtl"] .card:hover .card-icon-box,
[dir="rtl"] .process-card:hover .card-icon-box,
[dir="rtl"] .workshop-card:hover .card-icon-box {
    transform: rotate(8deg);
}

/* 2.4 Cursor Spotlight on cards */
.card-spotlight {
    position: relative;
    overflow: hidden;
}

.card-spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s var(--p-ease);
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--p-glow-soft), transparent 62%);
    z-index: 1;
}

.card-spotlight:hover::before {
    opacity: 1;
}

.card-spotlight > * {
    position: relative;
    z-index: 2;
}

/* 2.5 Image Card Container */
.shine-wrap {
    position: relative;
    overflow: hidden;
}

.shine {
    display: none !important;
}

/* 2.6 Refined Buttons */
.btn-primary,
.btn-secondary,
.btn-whatsapp {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
    transition: transform .25s var(--p-ease), box-shadow .25s var(--p-ease), background-color .25s var(--p-ease), border-color .25s var(--p-ease), color .25s var(--p-ease) !important;
}

.btn-primary {
    background-color: var(--p-accent) !important;
    color: #0A0A0A !important;
    font-weight: 700 !important;
    border: 1px solid var(--p-accent) !important;
    box-shadow: 0 10px 36px -10px var(--p-glow) !important;
}

.btn-primary:hover {
    transform: translateY(-3px) !important;
    background-color: #FFD000 !important;
    border-color: #FFD000 !important;
    box-shadow: 0 16px 44px -8px var(--p-glow) !important;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98) !important;
}

.btn-secondary {
    background-color: #141414 !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    border: 1px solid var(--p-line) !important;
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.5);
}

.btn-secondary:hover {
    transform: translateY(-3px) !important;
    background-color: #1A1A1A !important;
    border-color: color-mix(in srgb, var(--p-accent) 55%, transparent) !important;
    color: var(--p-accent) !important;
    box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.6) !important;
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98) !important;
}

.btn-whatsapp {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #34D399 !important;
    font-weight: 600 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.btn-whatsapp:hover {
    transform: translateY(-3px) !important;
    background-color: #10B981 !important;
    color: #000000 !important;
    border-color: #10B981 !important;
    box-shadow: 0 14px 36px -10px rgba(16, 185, 129, 0.4) !important;
}

.btn-primary:hover i,
.btn-secondary:hover i {
    transition: transform .25s var(--p-ease);
}

[dir="rtl"] .btn-primary:hover .fa-arrow-left,
[dir="rtl"] .btn-secondary:hover .fa-arrow-left {
    transform: translateX(-4px);
}

[dir="ltr"] .btn-primary:hover .fa-arrow-right,
[dir="ltr"] .btn-secondary:hover .fa-arrow-right {
    transform: translateX(4px);
}

:focus-visible {
    outline: 2px solid var(--p-accent) !important;
    outline-offset: 3px !important;
}

/* 2.7 Scroll Reveal */
.rv {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .8s var(--p-ease), transform .8s var(--p-ease);
}

.rv.in {
    opacity: 1 !important;
    transform: none !important;
}

.no-js .rv {
    opacity: 1 !important;
    transform: none !important;
}

/* 2.8 Hero Entrance */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-elem-enter {
    animation: heroFadeUp .9s var(--p-ease) calc(var(--i, 0) * 110ms + 350ms) both;
}

@keyframes rev {
    from {
        clip-path: inset(100% 0 0 0 round var(--p-radius));
    }
    to {
        clip-path: inset(0 0 0 0 round var(--p-radius));
    }
}

.hero-img-rev {
    animation: rev 1.5s var(--p-ease-reveal) .5s both;
}

@keyframes ambientZoom {
    from {
        transform: scale(1.02);
    }
    to {
        transform: scale(1.06);
    }
}

.hero-ambient-zoom {
    animation: ambientZoom 22s var(--p-ease) infinite alternate;
}

/* 2.9 Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--p-accent);
    z-index: 99999;
    transform-origin: left;
    transform: scaleX(0);
    pointer-events: none;
    transition: transform 0.08s linear;
}

[dir="rtl"] #scroll-progress {
    transform-origin: right;
}

/* 2.10 Header on Scroll */
#site-header {
    transition: padding .4s var(--p-ease), background-color .4s var(--p-ease), backdrop-filter .4s var(--p-ease), border-color .4s var(--p-ease) !important;
}


/* Ambient Micro-Dot Architectural Pattern (Zero Square Grids) */
.ambient-dots-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.2px, transparent 1.2px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 35%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 35%, transparent 85%);
    pointer-events: none;
    z-index: 1;
}

/* High-End Glass Panel */
.glass-panel {
    background: rgba(18, 18, 18, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.75), inset 0 1px 0 0 rgba(255, 255, 255, 0.06) !important;
}

/* Image Crossfade Helper */
.hero-img-transition {
    transition: opacity 0.35s ease, transform 0.6s var(--p-ease);
}

/* =========================================================================
   TRADITIONAL HERO SLIDER WITH DIRECTIONAL GRADIENT OVERLAY
========================================================================= */
.hero-classic-slider {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0A0A0A;
}

@media (min-width: 1024px) {
    .hero-classic-slider {
        height: calc(100vh - 76px);
        min-height: 640px;
    }
}

.hero-slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.9s ease;
    z-index: 1;
}

.hero-slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 7s ease-out;
    transform: scale(1.02);
}

.hero-slide-item.active .hero-slide-bg-img {
    transform: scale(1.08);
}

/* Directional Gradient Overlay: deep dark at text side, fading softly over image */
.hero-directional-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

/* RTL: Text is on the right, dark on right fading to light on left */
[dir="rtl"] .hero-directional-overlay {
    background: linear-gradient(
        270deg,
        #0A0A0A 0%,
        rgba(10, 10, 10, 0.96) 28%,
        rgba(10, 10, 10, 0.85) 45%,
        rgba(10, 10, 10, 0.50) 65%,
        rgba(10, 10, 10, 0.15) 100%
    );
}

/* LTR: Text is on the left, dark on left fading to light on right */
[dir="ltr"] .hero-directional-overlay,
body:not([dir="rtl"]) .hero-directional-overlay {
    background: linear-gradient(
        90deg,
        #0A0A0A 0%,
        rgba(10, 10, 10, 0.96) 28%,
        rgba(10, 10, 10, 0.85) 45%,
        rgba(10, 10, 10, 0.50) 65%,
        rgba(10, 10, 10, 0.15) 100%
    );
}

@media (max-width: 1023px) {
    [dir="rtl"] .hero-directional-overlay,
    [dir="ltr"] .hero-directional-overlay,
    body:not([dir="rtl"]) .hero-directional-overlay {
        background: linear-gradient(
            180deg,
            #0A0A0A 0%,
            rgba(10, 10, 10, 0.94) 40%,
            rgba(10, 10, 10, 0.78) 70%,
            rgba(10, 10, 10, 0.35) 100%
        );
    }
}

.btn-pill-primary {
    background-color: #FFC400;
    color: #0A0A0A;
    font-weight: 700;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s var(--p-ease);
    border: 1px solid #FFC400;
    box-shadow: 0 12px 34px -6px rgba(255, 196, 0, 0.45);
    text-decoration: none;
    cursor: pointer;
}
.btn-pill-primary:hover {
    background-color: #FFD000;
    border-color: #FFD000;
    transform: translateY(-2px);
    box-shadow: 0 16px 44px -4px rgba(255, 196, 0, 0.65);
}

.btn-pill-secondary {
    background-color: rgba(255, 255, 255, 0.04);
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s var(--p-ease);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    cursor: pointer;
}
.btn-pill-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.15rem 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s var(--p-ease);
}
.hero-stat-card:hover {
    border-color: rgba(255, 196, 0, 0.35);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

/* 4. Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation: none !important;
        transition: none !important;
    }
    .rv {
        opacity: 1 !important;
        transform: none !important;
    }
    html {
        scroll-behavior: auto !important;
    }
}


