/* =========================================
   COMPONENTS
   ========================================= */

/* --- Header Logo Icon --- */
.header-logo-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e5ff 0%, #1a1a2e 100%);
    padding: 5px;
    transition: all 0.3s ease;
}

.navbar-brand:hover .header-logo-icon {
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.6));
    transform: scale(1.05);
}

.brand-text {
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- Brand Colors (replacing inline styles) --- */
.brand-accent {
    color: #00e5ff;
}

.brand-white {
    color: #ffffff;
}

/* --- Navbar Toggler for Dark Theme --- */
.navbar-toggler-icon {
    filter: invert(1);
}

/* --- Bootstrap Color Overrides (Blue → Cyan) --- */
.text-primary {
    color: #00e5ff !important;
}

.bg-primary {
    background-color: #00e5ff !important;
}

.btn-primary {
    background-color: #00e5ff !important;
    border-color: #00e5ff !important;
    color: #000 !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: transparent !important;
    border-color: #00e5ff !important;
    color: #00e5ff !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.btn-outline-primary {
    border-color: #00e5ff !important;
    color: #00e5ff !important;
}

.btn-outline-primary:hover {
    background-color: #00e5ff !important;
    color: #000 !important;
}

.border-primary {
    border-color: #00e5ff !important;
}

/* Icons in service cards */
.service-card-v2 .service-card__icon i,
.tech-category__icon i,
.reason-card i,
.process-step__icon i,
.value-card i,
.founder-info-card i {
    color: #00e5ff !important;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    box-shadow: var(--shadow-button-hover);
}

.btn-outline-light {
    border: 2px solid #FFF;
    color: #FFF;
}

.btn-outline-light:hover {
    background-color: #FFF;
    color: #000;
}


/* --- Badges --- */
.sabha-badge {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: var(--space-6);
}

/* --- Text Accent Colors (Solid for Accessibility) --- */
.text-accent-cyan {
    color: var(--color-primary) !important;
}

.text-gradient-cyan {
    color: var(--color-primary) !important;
}

.text-gradient-gold {
    color: var(--color-primary) !important;
}

/* --- Cards --- */
.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: var(--border-subtle, 1px solid rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: var(--shadow-card-hover);
    border: var(--border-glow-hover, 1px solid rgba(0, 212, 255, 0.25));
}

.tech-card {
    position: relative;
    background: #0a0a0a;
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    transition: width 0.3s ease;
}

.tech-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    transition: width 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    background: #111111;
}

.tech-card:hover::before,
.tech-card:hover::after {
    width: 100%;
}

.service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: var(--border-subtle, 1px solid rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-card);
}

.service-card:hover {
    transform: translateY(-5px);
    background: var(--bg-elevated, #0d0d12);
    box-shadow: var(--shadow-card-hover);
    border: var(--border-glow-hover);
}

.service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 12px;
    color: var(--color-primary);
    transition: var(--transition-base);
    margin-bottom: var(--space-4);
}

.service-card:hover .service-card__icon {
    background: var(--color-primary);
    color: #000;
}

.service-card__title {
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: var(--space-4);
}

/* --- Blog Cards --- */
.blog-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: var(--border-subtle, 1px solid rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-card);
}

.blog-card:hover {
    transform: translateY(-5px);
    background: var(--bg-elevated, #0d0d12);
    border: var(--border-glow-hover);
    box-shadow: var(--shadow-card-hover);
}

.blog-card__image-wrapper {
    position: relative;
    padding-top: 60%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #000;
}

.blog-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image {
    transform: scale(1.1);
}

.blog-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-1);
    color: rgba(255, 255, 255, 0.3);
    font-size: 2rem;
}

.blog-card__category {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--color-primary);
    color: #000;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-card__category a {
    color: #000 !important;
}

.blog-card__content {
    padding: var(--space-6);
}

.blog-card__title a {
    color: var(--color-text);
    background: linear-gradient(to right, var(--color-primary) 0%, var(--color-primary) 100%);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s;
}

.blog-card:hover .blog-card__title a {
    background-size: 100% 1px;
    color: var(--color-primary);
}

.blog-card__link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* --- Portfolio/Realisations --- */
.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item__image-wrapper {
    position: relative;
    padding-top: 75%;
    /* 4:3 Aspect Ratio */
    background: #000;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.portfolio-item:hover .portfolio-item__image-wrapper {
    border-color: var(--color-accent-2);
}

.portfolio-item__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 0.8;
}

.portfolio-item:hover .portfolio-item__image {
    transform: scale(1.05);
    opacity: 0.4;
}

.portfolio-item__content-fallback {
    position: absolute;
    inset: 0;
}

.portfolio-item__overlay {
    position: absolute;
    inset: 0;
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.portfolio-item__arrow {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 1.25rem;
    transition: var(--transition-base);
    transform: translate(-10px, 10px);
    opacity: 0;
}

.portfolio-item:hover .portfolio-item__arrow {
    background: var(--color-accent-2);
    color: #000;
    transform: translate(0, 0);
    opacity: 1;
}

/* --- FAQ & Accordion --- */
.accordion-button {
    background-color: transparent;
    color: #FFF;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 229, 255, 0.5);
}

/* --- Problem Cards (Service Pages) --- */
.problem-card {
    background: rgba(255, 68, 68, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 68, 68, 0.2);
    padding: 1rem;
}

.problem-card:hover {
    background: rgba(255, 68, 68, 0.15);
    border-color: rgba(255, 68, 68, 0.3);
}

/* --- Solution Cards --- */
.solution-card {
    background: rgba(0, 229, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.1);
    padding: 1rem;
}

/* --- Tech Badges --- */
.badge-tech {
    background: rgba(0, 212, 255, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50rem;
}

/* --- Social Buttons --- */
/* --- Social Buttons (Plain Icons) --- */
.btn-social {
    width: 40px;
    /* Restored for alignment */
    height: 40px;
    /* Restored for alignment */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* padding 0 since we have fixed size */
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.btn-social:hover {
    color: var(--color-primary);
    transform: scale(1.1);
    box-shadow: none;
    background: transparent;
    /* Ensure no bg on hover */
}

/* --- Decorative Icons --- */
.icon-decorative {
    font-size: 6rem;
    color: var(--color-primary);
    opacity: 0.2;
}

.icon-decorative-lg {
    font-size: 10rem;
    color: var(--color-primary);
    opacity: 0.15;
}

.icon-decorative-xl {
    font-size: 12rem;
    color: var(--color-primary);
    opacity: 0.15;
}

/* --- Empty States --- */
.empty-state {
    text-align: center;
    padding: 3rem;
}

.empty-state__icon {
    font-size: 5rem;
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

/* --- Pricing Cards --- */
.pricing-card--featured {
    border: 2px solid var(--color-primary) !important;
    position: relative;
}

.pricing-card--featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-cyan));
}

/* --- Newsletter & Home Components --- */
.newsletter-bonus-box {
    background: rgba(0, 229, 255, 0.1);
    display: inline-block;
}

.alert-info-custom {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
}

.badge-corner {
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.6rem;
}

.model-step-highlight {
    border: 2px solid var(--color-accent-cyan);
}

.text-sm-075 {
    font-size: 0.75rem !important;
}

.text-sm-085 {
    font-size: 0.85rem !important;
}

.text-md-095 {
    font-size: 0.95rem !important;
    line-height: 1.6;
}

.separator-line-20 {
    width: 20px;
    height: 1px;
    background-color: var(--text-secondary);
}

.cursor-zoom-in {
    cursor: zoom-in;
}

.sidebar-sticky-top {
    position: sticky;
    top: 100px;
}

/* =========================================
   FUTURISTIC LIGHTBOX COMPONENTS
   ========================================= */
.futuristic-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.futuristic-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    transform: scale(0.8) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.futuristic-lightbox.active .lightbox-content {
    transform: scale(1) translateY(0);
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 60px rgba(0, 229, 255, 0.3), 0 0 120px rgba(0, 229, 255, 0.1), 0 25px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.lightbox-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    z-index: 1;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: #00e5ff;
    color: #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: #00e5ff;
    color: #00e5ff;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    color: #fff;
    font-size: 0.9rem;
    z-index: 10;
}

.lightbox-counter .lightbox-current {
    color: #00e5ff;
    font-weight: bold;
}

.lightbox-trigger {
    transition: all 0.3s ease;
}

.lightbox-trigger:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

/* --- Forms --- */
.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 229, 255, 0.25);
    color: #FFF;
}

/* --- Why Us Features --- */
.feature-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.feature-item:hover .feature-icon-circle {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.3);
}

/* --- Testimonials --- */
.testimonials-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-6);
    padding-bottom: var(--space-8);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 85%;
    /* Mobile first */
    scroll-snap-align: center;
    max-width: 500px;
}

.testimonial-card__content {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    height: 100%;
    position: relative;
    transition: var(--transition-base);
}

.testimonial-card__content:hover {
    background: #111111;
    border-color: var(--color-primary);
}

.quote-icon {
    font-size: 2rem;
    color: var(--color-accent-2);
    opacity: 0.5;
    margin-bottom: var(--space-4);
    display: block;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
}

/* --- Helpers --- */
.text-light-80 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.text-accent-2 {
    color: var(--color-accent-2);
}

.bg-dark-gradient {
    background: #000000;
}

.bg-darker {
    background-color: #000000;
}

/* =========================================
   FORM FEEDBACK & VALIDATION
   ========================================= */

/* Validation States */
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--color-success);
    background-image: none;
}

.form-control.is-valid:focus,
.form-select.is-valid:focus {
    border-color: var(--color-success);
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.25);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--color-error);
    background-image: none;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: var(--color-error);
    box-shadow: 0 0 0 0.25rem rgba(255, 68, 68, 0.25);
}

.valid-feedback {
    color: var(--color-success);
}

.invalid-feedback {
    color: var(--color-error);
}

/* =========================================
   BUTTON STATES & LOADING
   ========================================= */

/* Loading State */
.btn.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-right-color: currentColor;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

.btn-primary.is-loading::after {
    border-top-color: #000;
    border-right-color: #000;
}

.btn-outline-light.is-loading::after {
    border-top-color: #FFF;
    border-right-color: #FFF;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Disabled State Enhancement */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================
   MICRO-INTERACTIONS
   ========================================= */

/* Link Hover Underline Animation */
.link-animated {
    position: relative;
    display: inline-block;
}

.link-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.link-animated:hover::after {
    width: 100%;
}

/* Icon Bounce on Hover */
.icon-bounce:hover i,
.icon-bounce:hover .bi {
    animation: iconBounce 0.4s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Pulse Effect for CTAs */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
    }
}

/* =========================================
   IMPROVED PLACEHOLDERS
   ========================================= */

/* Blog Card Placeholder with Pattern */
.blog-card__placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, transparent 50%, rgba(0, 212, 255, 0.03) 100%);
    z-index: 0;
}

.blog-card__placeholder i {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
}

/* Service Card Icon Animation */
.service-card__icon i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-card__icon i {
    transform: scale(1.1);
}

/* =========================================
   TOAST / NOTIFICATION STYLES
   ========================================= */

.toast-success {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--color-success);
    color: #FFF;
}

.toast-error {
    background: rgba(255, 68, 68, 0.1);
    border-left: 4px solid var(--color-error);
    color: #FFF;
}

.toast-warning {
    background: rgba(255, 184, 0, 0.1);
    border-left: 4px solid var(--color-warning);
    color: #FFF;
}

/* =========================================
   POST GALLERY / IMAGE SLIDER
   ========================================= */

.post-gallery {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.post-gallery__image {
    display: block;
    object-fit: cover;
    max-height: 500px;
    width: 100%;
}

/* Carousel Styling */
.post-gallery--carousel .carousel-inner {
    border-radius: var(--radius-lg);
}

.post-gallery--carousel .carousel-item img {
    object-fit: cover;
    max-height: 500px;
    width: 100%;
}

/* Carousel Controls */
.post-gallery--carousel .carousel-control-prev,
.post-gallery--carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.post-gallery--carousel .carousel-control-prev {
    left: 15px;
}

.post-gallery--carousel .carousel-control-next {
    right: 15px;
}

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */

.btn-back-to-top {
    position: fixed;
    bottom: 6rem;
    /* Positioned above chatbot widget (60px button + 20px margin + extra space) */
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9998;
    /* Just below chatbot z-index of 99999 */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-back-to-top:hover {
    background: #fff;
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-back-to-top:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 375px) {
    .btn-back-to-top {
        bottom: 5.5rem;
        /* Above chatbot on mobile */
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

.post-gallery--carousel:hover .carousel-control-prev,
.post-gallery--carousel:hover .carousel-control-next {
    opacity: 1;
}

.post-gallery--carousel .carousel-control-prev:hover,
.post-gallery--carousel .carousel-control-next:hover {
    background: var(--color-primary);
}

.post-gallery--carousel .carousel-control-prev-icon,
.post-gallery--carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Carousel Indicators */
.post-gallery--carousel .carousel-indicators {
    bottom: 15px;
    margin-bottom: 0;
}

.post-gallery--carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.post-gallery--carousel .carousel-indicators button.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* Counter */
.post-gallery__counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #FFF;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

.post-gallery__counter .post-gallery__current {
    color: var(--color-primary);
}

/* =========================================
   UTILITY CLASSES (Replacing Inline Styles)
   ========================================= */

/* --- Background Utilities --- */
.bg-accent-light {
    background: rgba(0, 212, 255, 0.1);
}

.bg-accent-lighter {
    background: rgba(0, 229, 255, 0.1);
}

.bg-gradient-dark {
    background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
}

.bg-gradient-dark-alt {
    background: linear-gradient(180deg, var(--color-bg-dark, #0a0f1a) 0%, var(--color-bg-darker, #050810) 100%);
}

.bg-gradient-radial-cyan {
    background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.1), transparent 60%);
}

.bg-gradient-radial-center {
    background: radial-gradient(circle at center, #0a1525, #000);
}

.bg-overlay-dark {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.bg-overlay-right {
    background: linear-gradient(90deg, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
}

.bg-blur-dark {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

/* --- Text Color Utilities --- */
.text-white-90 {
    color: rgba(255, 255, 255, 0.9);
}

.text-white-85 {
    color: rgba(255, 255, 255, 0.85);
}

.text-accent-cyan {
    color: var(--color-accent-cyan, #00d4ff);
}

/* --- Border Utilities --- */
.border-subtle {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-subtle-05 {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.border-accent {
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.border-accent-strong {
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* --- Size Utilities --- */
.size-40 {
    width: 40px;
    height: 40px;
}

.size-50 {
    width: 50px;
    height: 50px;
}

.size-120 {
    width: 120px;
    height: 120px;
}

.size-200 {
    width: 200px;
    height: 200px;
}

/* --- Max Width Utilities --- */
.max-w-500 {
    max-width: 500px;
}

.max-w-550 {
    max-width: 550px;
}

.max-w-580 {
    max-width: 580px;
}

.max-w-600 {
    max-width: 600px;
}

.max-w-700 {
    max-width: 700px;
}

.max-w-900 {
    max-width: 900px;
}

/* --- Min Height Utilities --- */
.min-vh-40 {
    min-height: 40vh;
}

.min-vh-45 {
    min-height: 45vh;
}

.min-vh-50 {
    min-height: 50vh;
}

.min-vh-55 {
    min-height: 55vh;
}

.min-vh-65 {
    min-height: 65vh;
}

/* --- Spacing Utilities (extending Bootstrap) --- */
.pt-section {
    padding-top: 100px;
}

.pt-header {
    padding-top: 120px;
}

.spacing-article {
    margin-bottom: 60px;
}

.spacing-content {
    margin-bottom: 30px;
}

.spacing-meta {
    margin-bottom: 20px;
}

/* --- Font Size Utilities --- */
.fs-xs {
    font-size: 0.65rem;
}

.fs-sm {
    font-size: 0.75rem;
}

.fs-085 {
    font-size: 0.85rem;
}

.fs-09 {
    font-size: 0.9rem;
}

.fs-095 {
    font-size: 0.95rem;
}

/* --- Line Height Utilities --- */
.lh-relaxed {
    line-height: 1.6;
}

.lh-loose {
    line-height: 1.7;
}

.lh-looser {
    line-height: 1.8;
}

/* --- Letter Spacing --- */
.ls-1 {
    letter-spacing: 1px;
}

.ls-2 {
    letter-spacing: 2px;
}

/* --- Opacity Utilities --- */
.opacity-15 {
    opacity: 0.15;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-30 {
    opacity: 0.3;
}

/* --- Transform Utilities --- */
.blur-heavy {
    filter: blur(25px) brightness(0.25);
    transform: scale(1.15);
}

/* --- Position Utilities --- */
.sticky-100 {
    position: sticky;
    top: 100px;
}

.inset-0 {
    inset: 0;
}

/* --- Badge Utilities --- */
.badge-accent {
    background: rgba(0, 212, 255, 0.1);
    color: var(--color-primary, #00d4ff);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.badge-accent-strong {
    background: rgba(0, 212, 255, 0.1);
    color: var(--color-primary, #00d4ff);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* --- Interactive Utilities --- */
.cursor-zoom {
    cursor: zoom-in;
}

/* --- Hero-specific Utilities --- */
.hero-title-clamp {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
}

/* --- Fusion Result Box --- */
.fusion-result-box {
    background: rgba(0, 229, 255, 0.1);
    border-radius: 12px;
}

/* --- Icon Display Sizes --- */
.icon-display-lg {
    font-size: 6rem;
}

.icon-display-xl {
    font-size: 10rem;
}

.icon-display-xxl {
    font-size: 12rem;
}

/* --- Line Clamp Utilities --- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Border End Utility --- */
.border-end-0 {
    border-right: none !important;
}

/* =========================================
   WORDPRESS REQUIRED CLASSES
   ========================================= */

/* Post author highlight in comments */
.bypostauthor {
    border-left: 3px solid var(--color-accent-cyan, #00d4ff);
    background: rgba(0, 212, 255, 0.05);
}

.bypostauthor>.comment-body {
    padding-left: 1rem;
}

/* Screen reader text (accessibility) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* =========================================
   PROSE CONTENT STYLES (Blog Single)
   ========================================= */

.prose h2,
.prose h3,
.prose h4 {
    color: #FFF;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose ul,
.prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

.prose pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.prose code {
    background: rgba(0, 212, 255, 0.1);
    color: var(--color-primary);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.prose pre code {
    background: none;
    padding: 0;
}

.prose img {
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

.prose table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.prose th,
.prose td {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prose th {
    background: rgba(255, 255, 255, 0.05);
    color: #FFF;
}

/* =========================================
   PHASE 3 AUDIT UTILITIES
   ========================================= */
.text-constrained-lg {
    max-width: 700px;
}

.text-constrained-md {
    max-width: 600px;
}

.text-constrained-sm {
    max-width: 550px;
}

.text-light-80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.icon-bg-xxl {
    font-size: 10rem;
    color: var(--color-primary);
    opacity: 0.15;
}

.icon-bg-12rem {
    font-size: 12rem;
    color: var(--color-primary);
    opacity: 0.15;
}

.icon-bg-xl {
    font-size: 6rem;
    color: var(--color-primary);
    opacity: 0.2;
}

.icon-bg-lg {
    font-size: 5rem;
    color: var(--color-primary);
    opacity: 0.3;
}

.archive-icon-bg {
    font-size: 10rem;
    color: var(--color-primary);
    opacity: 0.15;
}

.opacity-15 {
    opacity: 0.15;
}

.opacity-30 {
    opacity: 0.3;
}

.pt-120 {
    padding-top: 120px;
}

.admin-box-style {
    margin: 20px 0;
    border-color: #ccc;
}

.bg-cyan-subtle {
    background: rgba(0, 229, 255, 0.02);
}

.bg-darker {
    background: var(--color-bg-darker);
}

.bg-gradient-cyan-fade {
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.05) 0%, transparent 100%);
}