/* ==========================================================================
   Premium Visual Experience — 3D, Parallax, Scroll, Storytelling
   ========================================================================== */

/* ── Scroll Progress Bar ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.6), 0 0 20px rgba(0, 240, 255, 0.3);
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Cursor Glow ── */
.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,240,255,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
}

/* ── Global Constellation Canvas ── */
#heroCanvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

/* ── Global Floating Shapes ── */
.floating-shapes {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: -1 !important;
    overflow: hidden !important;
}
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: floatShape 20s ease-in-out infinite;
}
.floating-shape:nth-child(1) {
    width: 80px; height: 80px;
    border: 1px solid rgba(0,240,255,0.15);
    top: 15%; left: 10%;
    animation-duration: 18s;
}
.floating-shape:nth-child(2) {
    width: 40px; height: 40px;
    background: rgba(139,92,246,0.08);
    top: 60%; right: 15%;
    animation-delay: 3s;
    animation-duration: 22s;
}
.floating-shape:nth-child(3) {
    width: 120px; height: 120px;
    border: 1px solid rgba(139,92,246,0.1);
    bottom: 20%; left: 20%;
    animation-delay: 6s;
    animation-duration: 25s;
    border-radius: 30%;
}
.floating-shape:nth-child(4) {
    width: 60px; height: 60px;
    background: rgba(0,240,255,0.05);
    top: 30%; right: 25%;
    animation-delay: 2s;
}
.floating-shape:nth-child(5) {
    width: 30px; height: 30px;
    border: 1px solid rgba(0,240,255,0.12);
    bottom: 35%; right: 8%;
    animation-delay: 8s;
    animation-duration: 16s;
    border-radius: 4px;
}
@keyframes floatShape {
    0%   { opacity: 0; transform: translateY(0) rotate(0deg) scale(0.8); }
    10%  { opacity: 1; }
    50%  { transform: translateY(-40px) rotate(180deg) scale(1.1); }
    90%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(0) rotate(360deg) scale(0.8); }
}

/* ── Typed Cursor ── */
.typed-cursor {
    display: inline-block;
    width: 2px; height: 1.2em;
    background-color: var(--accent-primary);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(0,240,255,0.6);
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ── Text Gradient Animated ── */
.text-gradient-animated {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-primary) 50%, #ffffff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGrad 4s ease infinite;
    filter: drop-shadow(0 2px 10px rgba(187, 204, 215, 0.25));
}
@keyframes textGrad {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Reveal (GSAP initial state) ── */
.reveal-up    { opacity: 0; transform: translateY(60px); }
.reveal-left  { opacity: 0; transform: translateX(-80px); }
.reveal-right { opacity: 0; transform: translateX(80px); }
.reveal-scale { opacity: 0; transform: scale(0.85); }

/* ── Card 3D Tilt ── */
.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* ── Magnetic Button ── */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* ── Counter / Stats ── */
.counter-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    text-shadow: 0 0 20px rgba(0,240,255,0.3);
}
.counter-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}
.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 2rem 0;
}
.stat-item {
    text-align: center;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius-md);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    min-width: 140px;
    transition: var(--transition-normal);
}
.stat-item:hover {
    border-color: rgba(0,240,255,0.3);
    background: rgba(0,240,255,0.03);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ── Journey / Timeline ── */
#journey {
    background: transparent !important;
    position: relative;
    overflow: hidden;
}
#journey::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,240,255,0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(139,92,246,0.03) 0%, transparent 60%);
    pointer-events: none;
}
.timeline {
    position: relative;
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(0,240,255,0.4) 10%, rgba(0,240,255,0.4) 90%, transparent);
    transform: translateX(-50%);
}
.timeline::after {
    content: '';
    position: absolute;
    left: 50%; top: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0,240,255,0.8);
    transform: translateX(-50%);
    animation: timelinePulse 6s ease-in-out infinite;
}
@keyframes timelinePulse {
    0%   { top: 0; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item:nth-child(odd) { flex-direction: row-reverse; text-align: right; }
.timeline-item:nth-child(even) { text-align: left; }
.timeline-content {
    width: 45%;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius-md);
    background: rgba(18, 24, 38, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition-normal);
}
.timeline-content:hover {
    border-color: rgba(0,240,255,0.5);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4), 0 0 25px rgba(0,240,255,0.2), inset 0 0 20px rgba(139,92,246,0.15);
}
.timeline-dot {
    position: absolute;
    top: 1.5rem;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--accent-primary);
    z-index: 2;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0,240,255,0.4);
    transition: var(--transition-fast);
}
.timeline-item:hover .timeline-dot {
    background: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0,240,255,0.6), 0 0 40px rgba(139,92,246,0.4);
    transform: translateX(-50%) scale(1.3);
    border-color: #fff;
}
.timeline-spacer { width: 10%; flex-shrink: 0; }
.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}
.timeline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(0,240,255,0.1);
    border: 1px solid rgba(0,240,255,0.3);
    color: var(--accent-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.timeline-item:nth-child(odd) .timeline-icon { margin-left: auto; }

/* ── Glow Divider ── */
.section-glow-divider {
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.3;
    position: relative;
}
.section-glow-divider::after {
    content: '';
    position: absolute;
    top: -4px; left: 50%;
    transform: translateX(-50%);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0,240,255,0.6);
}

/* ── Noise Overlay ── */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .cursor-glow, .floating-shapes, .noise-overlay { display: none !important; }
    .counter-number { font-size: 2.2rem; }
    .stats-row { gap: 1rem; }
    .stat-item { min-width: 100px; padding: 1rem 1.2rem; }
    .timeline::before, .timeline::after { left: 20px; }
    .timeline-item, .timeline-item:nth-child(odd) {
        flex-direction: row !important;
        text-align: left !important;
    }
    .timeline-content { width: calc(100% - 60px); margin-left: 50px; }
    .timeline-spacer { display: none; }
    .timeline-dot { left: 20px; }
    .timeline-item:nth-child(odd) .timeline-icon { margin-left: 0; }
    .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1 !important; transform: none !important;
    }

    /* Stacking Cards Mobile Adjustments */
    .card-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .card-right-actions {
        width: 100%;
    }
    .btn-live-project {
        width: 100%;
        justify-content: center;
    }
    .card-left-info {
        gap: 1rem;
    }
}
@media (max-width: 576px) {
    .timeline-content { padding: 1rem 1.2rem; }
    .counter-number { font-size: 1.8rem; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    .scroll-progress, .text-gradient-animated { animation: none; }
    .floating-shape { animation: none !important; opacity: 0.3; }
    .typed-cursor { animation: none; opacity: 1; }
    .timeline::after { animation: none; opacity: 0.5; }
    .cursor-glow { display: none !important; }
}

/* ────────────────────────────────────────────────────────────────────────
   10. MARQUEE SECTION
   ──────────────────────────────────────────────────────────────────────── */
.marquee-section {
    background-color: #0C0C0C;
    padding: 6rem 0 2.5rem 0; /* pt-24 sm:pt-32 md:pt-40 pb-10 */
    overflow: hidden;
    width: 100%;
    position: relative;
    z-index: 5;
}
.marquee-container {
    display: flex;
    flex-direction: column;
    gap: 12px; /* gap-3 */
    width: 100%;
}
.marquee-row {
    display: flex;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}
.marquee-track {
    display: flex;
    gap: 12px;
    will-change: transform;
}
.marquee-tile {
    width: 420px;
    height: 270px;
    flex-shrink: 0;
    border-radius: 16px; /* rounded-2xl */
    object-cover: cover;
    background: #111;
}
@media (max-width: 768px) {
    .marquee-tile {
        width: 280px;
        height: 180px;
    }
}

/* ────────────────────────────────────────────────────────────────────────
   11. ABOUT DECORATIVE ASSETS
   ──────────────────────────────────────────────────────────────────────── */
.about-decor {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    font-size: clamp(4rem, 8vw, 8rem);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    transform: translate3d(0, 0, 0);
}
.decor-top-left { top: 4%; left: 4%; }
.decor-bottom-left { bottom: 8%; left: 10%; }
.decor-top-right { top: 4%; right: 4%; }
.decor-bottom-right { bottom: 8%; right: 10%; }

/* ────────────────────────────────────────────────────────────────────────
   12. SERVICES SECTION (WHITE BACKGROUND CONTRAST)
   ──────────────────────────────────────────────────────────────────────── */
.services-section {
    background-color: transparent !important;
    border-radius: 40px 40px 0 0;
    padding: 5rem 1.5rem;
    position: relative;
    z-index: 5;
    border-top: none !important;
}
@media (min-width: 640px) {
    .services-section { border-radius: 50px 50px 0 0; }
}
@media (min-width: 768px) {
    .services-section { border-radius: 60px 60px 0 0; padding: 7rem 4rem; }
}
.services-heading {
    color: #FFFFFF !important;
}
.divider-dark-custom .divider-custom-line {
    background-color: rgba(255, 255, 255, 0.1) !important;
}
.services-list {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.service-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(30px);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.05);
    transform: translateY(-5px);
    z-index: 10;
}
.service-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.service-num {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 6rem);
    color: rgba(255, 255, 255, 0.05);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    line-height: 1;
    width: 20%;
    flex-shrink: 0;
    transition: color 0.3s ease, -webkit-text-stroke 0.3s ease;
}
.service-item:hover .service-num {
    color: transparent;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
}
.service-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}
.service-item:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}
.service-info {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.service-title {
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: clamp(1.1rem, 2vw, 1.8rem);
    color: #FFFFFF !important;
    margin: 0;
}
.service-desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(0.85rem, 1.3vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 680px;
}
@media (max-width: 576px) {
    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .service-num {
        width: 100%;
        -webkit-text-stroke: 0;
        color: rgba(255, 255, 255, 0.2);
    }
    .service-info {
        width: 100%;
    }
}

/* ────────────────────────────────────────────────────────────────────────
   13. STICKY STACKING PORTFOLIO SECTION
   ──────────────────────────────────────────────────────────────────────── */
.portfolio-stack-section {
    background-color: transparent !important;
    border-radius: 40px 40px 0 0;
    margin-top: -2.5rem; /* -mt-10 sm:-mt-12 md:-mt-14 */
    position: relative;
    z-index: 10;
    padding: 5rem 1rem;
}
@media (min-width: 640px) {
    .portfolio-stack-section { border-radius: 50px 50px 0 0; margin-top: -3rem; }
}
@media (min-width: 768px) {
    .portfolio-stack-section { border-radius: 60px 60px 0 0; margin-top: -3.5rem; padding: 7rem 2rem; }
}

.projects-stack-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Spacer on fallback/mobile */
}

.project-stack-card-wrapper {
    position: relative;
    width: 100%;
}

/* Stacking Cards Desktop effect */
@media (min-width: 768px) {
    .projects-stack-container {
        gap: 0; /* Handled by sticky spacing */
        padding-bottom: 100px;
    }
    .project-stack-card-wrapper {
        position: sticky;
        /* top offset will be set dynamically via JS */
        min-height: 80vh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 20px;
    }
}

.project-stack-card {
    width: 100%;
    background-color: rgba(14, 18, 28, 0.88) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 2px solid rgba(215, 226, 234, 0.2);
    border-radius: 30px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    cursor: pointer;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform 0.1s ease-out;
    transform-origin: center top;
    will-change: transform;
}
@media (min-width: 640px) {
    .project-stack-card {
        border-radius: 40px;
        padding: 2.5rem;
    }
}
@media (min-width: 992px) {
    .project-stack-card {
        border-radius: 50px;
        padding: 3rem;
    }
}

.project-stack-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 30px 60px rgba(187, 204, 215, 0.15);
}

/* Card Top Row */
.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    border-bottom: 1px solid rgba(215, 226, 234, 0.15);
    padding-bottom: 1.5rem;
}

.card-left-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.card-num {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--accent-primary);
    line-height: 1;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-category {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-primary);
    letter-spacing: 2px;
    opacity: 0.7;
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: #FFFFFF !important;
    margin: 0;
    text-transform: uppercase;
}

.btn-live-project {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #D7E2EA;
    border-radius: 9999px;
    color: #D7E2EA;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    letter-spacing: 2px;
    padding: 0.6rem 1.5rem;
    text-decoration: none !important;
    background: transparent;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.btn-live-project:hover {
    background-color: rgba(215, 226, 234, 0.1);
    color: #FFFFFF;
}

/* Card Bottom Row (Image Grid) */
.card-bottom-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.card-col-left {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-col-right {
    width: 60%;
    display: flex;
}

.card-img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
@media (min-width: 640px) {
    .card-img { border-radius: 30px; }
}
@media (min-width: 992px) {
    .card-img { border-radius: 40px; }
}

.img-h-sm {
    height: clamp(100px, 14vw, 200px);
}
.img-h-lg {
    height: clamp(140px, 20vw, 300px);
    flex-grow: 1;
}
.img-tall {
    height: 100%;
    flex-grow: 1;
}

/* ────────────────────────────────────────────────────────────────────────
   14. PREMIUM CONTACT BUTTON GRADIENT STYLING
   ──────────────────────────────────────────────────────────────────────── */
.btn-premium-gradient {
    background: linear-gradient(123deg, #18011F 7%, #B600A8 37%, #7621B0 72%, #BE4C00 100%) !important;
    border: none !important;
    box-shadow: 0px 4px 4px rgba(181, 1, 167, 0.25), 0 0 15px rgba(181, 1, 167, 0.4), 4px 4px 12px #7721B1 inset !important;
    outline: 2px solid white !important;
    outline-offset: -3px !important;
    color: white !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.btn-premium-gradient:hover {
    transform: scale(1.03) !important;
    box-shadow: 0px 6px 12px rgba(181, 1, 167, 0.35), 0 0 25px rgba(181, 1, 167, 0.6), 4px 4px 12px #7721B1 inset !important;
}

/* ────────────────────────────────────────────────────────────────────────
   15. ANIMATED TEXT CHARACTER-BY-CHARACTER REVEAL
   ──────────────────────────────────────────────────────────────────────── */
.char-scroll-reveal {
    font-weight: 500;
    color: #D7E2EA;
}
.char-scroll-reveal .char-wrap {
    display: inline-block;
    position: relative;
    white-space: pre-wrap;
}
.char-scroll-reveal .char-placeholder {
    opacity: 0.25;
}
.char-scroll-reveal .char-anim {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.25;
    color: #D7E2EA;
    transition: opacity 0.1s linear;
}

/* Fix for SplitText text-gradient-animated visibility */
.masthead-heading div, .masthead-heading span {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-primary) 50%, #ffffff 100%) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: textGrad 4s ease infinite !important;
    display: inline-block !important;
}
.masthead-heading {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

