/* ============================================
   RIDOX INNOVATIONS - HIGH-END TECH STYLE
   ============================================ */

   :root {
    --ridox-orange: #FF6B35;
    --ridox-cyan: #00D9FF;
    --dark-bg: #0E0F16;

    /* New Light Theme Colors */
    --light-bg: #F8FAFC;
    --light-section-alt: #F1F5F9;
    --text-main: #1E293B; /* Slate-800 for readability */
    --text-muted: #64748B;

    --card-bg: rgba(26, 26, 36, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* 1. GLOBAL & SMOOTH SCROLL */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(1200px 600px at 20% 10%, rgba(0, 217, 255, 0.10), transparent 60%),
        radial-gradient(1000px 500px at 80% 20%, rgba(255, 107, 53, 0.10), transparent 55%),
        linear-gradient(180deg, #0E0F16 0%, #0A0A0F 60%, #08080C 100%);
    background-color: #0E0F16; /* Fallback */
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
    line-height: 1.6;
}

/* 3. HERO & CANVAS */
#hero img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

#hero-canvas {
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0); /* GPU acceleration */
}

.text-gradient {
    padding-right: 0.2em !important; /* Prevents 's' edge clipping */
    background: linear-gradient(135deg, #ffffff 0%, var(--ridox-orange) 40%, var(--ridox-cyan) 70%, var(--ridox-orange) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important; /* Force transparent for gradient effect */
    display: inline-block;
    animation: shine 6s linear infinite;
}

/* Hero ambient particles */
.hero-ambient {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    filter: blur(6px);
    opacity: 0.4;
    animation: heroFloat 10s ease-in-out infinite;
    will-change: transform;
}

.hero-orb-orange {
    top: 12%;
    left: 8%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.45), transparent 70%);
    animation-duration: 10s;
    animation-delay: -2s;
}

.hero-orb-cyan {
    bottom: 18%;
    right: 10%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.45), transparent 70%);
    animation-duration: 14s;
    animation-delay: -5s;
}

.hero-orb-dual {
    top: 50%;
    right: 30%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.35), rgba(0, 217, 255, 0.25), transparent 70%);
    animation-duration: 12s;
}

@keyframes heroFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(40px, -42px, 0); }
}

/* 3. HERO FIXES (g and s clipping) */
.hero-headline {
    line-height: 1.25 !important; /* Fixed 'g' clipping */
}

/* 4. LIGHT MODE SECTION UTILITIES - Original slate base, readable grey text */
.section-light {
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
    background-color: #F8FAFC;
    color: #1E293B;
}

/* Allow Tailwind's bg-[#F1F5F9] to remain as the "alt" light section */
.section-light.bg-\[\#F1F5F9\] {
    background-color: #F1F5F9;
}

.section-light h2,
.section-light h3,
.section-light h4 {
    color: #0F172A;
}

/* Stronger contrast for grey text on light sections (taglines, body copy) */
.section-light .text-gray-300,
.section-light .text-gray-400,
.section-light .text-gray-500 {
    color: #334155 !important;
}

/* Light Mode Cards - Enhanced Visual Interest */
.section-light .glow-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.06),
        0 0 0 1px rgba(255, 107, 53, 0.05);
    position: relative;
    overflow: hidden;
}

.section-light .glow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--ridox-orange) 0%, 
        var(--ridox-cyan) 50%, 
        var(--ridox-orange) 100%
    );
    background-size: 200% 100%;
    animation: gradientFlow 4s ease-in-out infinite;
    opacity: 0.6;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.section-light .glow-card:hover::before {
    transform: scaleX(1);
}

.section-light .glow-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.15),
        0 0 0 2px rgba(255, 107, 53, 0.2),
        0 0 40px rgba(255, 107, 53, 0.12);
    border-color: var(--ridox-orange);
}

/* Light sections: normalize legacy dark utility classes to light surfaces */
.section-light .bg-ridox-charcoal\/30,
.section-light .bg-ridox-charcoal\/50 {
    background: #ffffff !important;
}

.section-light .border-white\/5,
.section-light .border-white\/10 {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

.section-light .value-card,
.section-light .portfolio-item,
.section-light .service-detail-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.06),
        0 0 0 1px rgba(255, 107, 53, 0.04);
    position: relative;
    overflow: hidden;
}

.section-light .value-card::before,
.section-light .portfolio-item::before,
.section-light .service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ridox-orange), var(--ridox-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-light .value-card:hover,
.section-light .portfolio-item:hover,
.section-light .service-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.12),
        0 0 0 2px rgba(255, 107, 53, 0.15);
    border-color: var(--ridox-orange);
}

.section-light .value-card:hover::before,
.section-light .portfolio-item:hover::before,
.section-light .service-detail-card:hover::before {
    opacity: 1;
}

/* Feature panels (What We Do) */
.feature-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-light .feature-panel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.section-light .feature-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 107, 53, 0.06), rgba(0, 217, 255, 0.04), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.section-light .feature-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

.section-light .feature-panel:hover::after {
    opacity: 1;
}

.feature-panel-right {
    flex-direction: row-reverse;
    text-align: left;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.feature-icon::after {
    content: "";
    position: absolute;
    inset: -30%;
    background: conic-gradient(from 90deg, rgba(255, 255, 255, 0.2), transparent 60%);
    opacity: 0.4;
    animation: rotateSlow 10s linear infinite;
}

.feature-icon-orange {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95), rgba(255, 107, 53, 0.6));
}

.feature-icon-cyan {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.95), rgba(0, 217, 255, 0.6));
}

.feature-icon-dual {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(0, 217, 255, 0.85));
}

.feature-content {
    position: relative;
    z-index: 1;
}

.feature-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: rgba(15, 23, 42, 0.5);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.feature-glow {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.5;
    top: -40px;
    right: -20px;
    pointer-events: none;
    z-index: 0;
    animation: heroFloat 16s ease-in-out infinite;
}

.feature-glow-orange {
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3), transparent 70%);
}

.feature-glow-cyan {
    background: radial-gradient(circle, rgba(0, 217, 255, 0.25), transparent 70%);
}

.feature-glow-dual {
    background: radial-gradient(circle, rgba(255, 107, 53, 0.22), rgba(0, 217, 255, 0.18), transparent 70%);
}

@keyframes rotateSlow {
    to { transform: rotate(360deg); }
}

/* Advantage showcase */
.advantage-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
}

.advantage-display {
    position: relative;
    padding: 32px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.advantage-display.is-swapping .advantage-title,
.advantage-display.is-swapping .advantage-text,
.advantage-display.is-swapping .advantage-tag {
    opacity: 0;
    transform: translateY(6px);
}

.advantage-display-glow {
    position: absolute;
    inset: -30% -20%;
    opacity: 0.5;
    filter: blur(60px);
    animation: morphGradient 14s ease-in-out infinite;
    pointer-events: none;
}

.advantage-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: rgba(15, 23, 42, 0.55);
    font-weight: 700;
    margin-bottom: 12px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.advantage-title {
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: #0F172A;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.advantage-text {
    color: rgba(15, 23, 42, 0.68);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 520px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.advantage-meta {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.advantage-meta-pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: rgba(15, 23, 42, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
}

.advantage-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.advantage-item {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

.advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.advantage-item.is-active {
    background: #0F172A;
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.advantage-item-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.advantage-item-title {
    font-size: 1rem;
    font-weight: 700;
}

.advantage-item-desc {
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.55);
}

.advantage-item.is-active .advantage-item-desc {
    color: rgba(255, 255, 255, 0.7);
}

.advantage-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.advantage-accent-orange {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(255, 107, 53, 0.6));
}

.advantage-accent-cyan {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.9), rgba(0, 217, 255, 0.6));
}

.advantage-accent-dual {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(0, 217, 255, 0.8));
}

.advantage-display-glow.advantage-accent-orange {
    background: radial-gradient(circle, rgba(255, 107, 53, 0.35), transparent 65%);
}

.advantage-display-glow.advantage-accent-cyan {
    background: radial-gradient(circle, rgba(0, 217, 255, 0.35), transparent 65%);
}

.advantage-display-glow.advantage-accent-dual {
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3), rgba(0, 217, 255, 0.25), transparent 70%);
}

@keyframes morphGradient {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg);
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(180deg);
    }
}

@media (max-width: 900px) {
    .feature-panel,
    .feature-panel-right {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }

    .advantage-showcase {
        grid-template-columns: 1fr;
    }
}

.section-light :is(input, textarea, select) {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #0F172A !important;
}

.section-light :is(input, textarea, select)::placeholder {
    color: rgba(15, 23, 42, 0.55) !important;
}

/* NAVBAR TRANSITION UTILITY */
.nav-is-light {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(0,0,0,0.05) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* Preserve the orange 'x' while darkening the white letters on light nav:
   invert() turns white->black and orange->cyan, then hue-rotate(180deg) brings cyan back to orange. */
.ridox-logo-img {
    transition: filter 180ms ease;
}

.nav-is-light .ridox-logo-img {
    filter: invert(1) hue-rotate(180deg) saturate(2) contrast(1.15) brightness(0.9);
}

.nav-is-light .nav-link {
    color: #0F172A !important;
}

.nav-is-light .nav-link.text-ridox-orange {
    color: var(--ridox-orange) !important;
}

.nav-is-light button {
    color: #0F172A !important;
}

/* Fallback for browsers that don't support background-clip */
@supports not (background-clip: text) {
    .text-gradient {
        color: var(--ridox-orange);
    }
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* 4. FUTURISTIC CARDS (Glassmorphism) */
.glow-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glow-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(255, 107, 53, 0.1) 0%, 
                transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.glow-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

/* 5. CLIENT LOGOS - REMOVED (replaced with new shiny frame design) */

/* 6. FORM CUSTOMIZATION */
.form-input-custom {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-input-custom:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--ridox-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

/* 7. CONTACT INFO GLOW */
.contact-info-card {
    transition: all 0.3s ease;
    cursor: default;
}

.contact-info-card:hover {
    transform: translateX(10px);
}

/* 8. ENSURE VISIBILITY - Force elements to be visible */
section, .glow-card, form {
    opacity: 1;
    visibility: visible;
}

/* 9. SCROLL-TRIGGERED ANIMATIONS (Intersection Observer + Tailwind) */
/* Section reveal */
.animate-out {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger children */
.animate-child {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-child.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hero entrance (CSS-only, no observer) — crisp above-the-fold */
.hero-entrance .hero-item {
    opacity: 0;
    transform: translateY(45px);
    animation: heroIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-entrance .hero-item:nth-child(1) { animation-delay: 0.05s; }
.hero-entrance .hero-item:nth-child(2) { animation-delay: 0.12s; }
.hero-entrance .hero-item:nth-child(3) { animation-delay: 0.22s; }

@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .animate-out,
    .animate-child,
    .hero-entrance .hero-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* 10. IMPROVE FORM PLACEHOLDERS READABILITY */
.form-input-custom::placeholder,
textarea.form-input-custom::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* Light section form inputs */
.section-light .form-input-custom {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #0F172A;
}

.section-light .form-input-custom::placeholder,
.section-light textarea.form-input-custom::placeholder {
    color: rgba(15, 23, 42, 0.55);
}

.section-light .form-input-custom:focus {
    background: rgba(15, 23, 42, 0.06);
    border-color: var(--ridox-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
}

/* ============================================
   CLIENT LOGOS - BRAND FRAME + CLEAN GRID
   ============================================ */

.ridox-clients-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .ridox-clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: none; }
}

@media (min-width: 1024px) {
  .ridox-clients-grid { gap: 32px; }
}

/* Card with gradient border (Ridox orange → cyan) */
.client-card {
  position: relative;
  border-radius: 16px;
  padding: 22px;
  background: rgba(255,255,255,0.96);

  /* consistent size fixes "disarray" */
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* shadow like screenshot (clean, not heavy) */
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);

  transition: transform 220ms ease, box-shadow 220ms ease;
}

/* Gradient frame using a pseudo element (keeps crisp corners) */
.client-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px; /* frame thickness */
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ridox-orange), var(--ridox-cyan));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

/* Inner "shiny" highlight (subtle, on-brand) */
.client-card::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 13px;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.70) 0%,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0.00) 55%
  );
  z-index: 0;
}

/* IMPORTANT: logo sizing rules (fixes "too big") */
.client-card img {
  display: block;
  width: auto;           /* don't stretch */
  max-width: 85%;        /* keep breathing room */
  max-height: 100px;     /* key control for size */
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;            /* Ensure logo appears above gradient frame */
}

/* Slightly larger on desktop, still controlled */
@media (min-width: 1024px) {
  .client-card { min-height: 170px; padding: 28px; }
  .client-card img { max-height: 120px; }
}

/* Hover lift (professional) */
.client-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.22),
    0 0 0 6px rgba(0, 217, 255, 0.08); /* cyan aura */
}

/* Touch devices: avoid sticky hover */
@media (hover: none) {
  .client-card:hover { transform: none; }
}

/* 12. MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    /* Ensure text is readable on mobile */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Better spacing on mobile */
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile menu improvements */
    nav .md\:hidden {
        display: block;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Better button sizes on mobile */
    button, a[class*="px-"] {
        min-height: 44px; /* Touch target size */
    }
    
    /* Card padding adjustments */
    .glow-card {
        padding: 1.5rem;
    }
    
    /* Hero text adjustments */
    .hero-headline {
        font-size: 2.5rem;
        line-height: 1.25;
    }
    
    /* Section title adjustments */
    .section-title, h2.section-title {
        font-size: 2rem;
    }
}

/* 8. CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--ridox-orange), var(--ridox-cyan));
    border-radius: 10px;
}

/* Selection color */
::selection {
    background: var(--ridox-orange);
    color: white;
}

/* Animation utilities */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* ============================================
   RIDOX BRAND LOGO - NO ANIMATIONS
   ============================================ */

.ridox-brand {
  display: flex;
  align-items: center;
}

/* Keep logo images animation-free, but allow opacity swapping for light/dark versions */
.ridox-brand .ridox-logo-img {
  animation: none !important;
  visibility: visible !important;
  transform: none !important;
  will-change: auto !important;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--ridox-orange);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.back-to-top-btn:hover {
  background: var(--ridox-cyan);
  box-shadow: 0 6px 30px rgba(0, 217, 255, 0.5);
  transform: translateY(-4px) scale(1.05);
}

.back-to-top-btn:active {
  transform: translateY(-2px) scale(1);
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }
}

/* Footer text contrast - grey text clearly readable on dark background */
.ridox-footer .text-gray-500,
.ridox-footer p.text-gray-500,
.ridox-footer ul.text-gray-500,
.ridox-footer ul .text-gray-500,
.ridox-footer p {
  color: #cbd5e1 !important;
}
.ridox-footer .text-gray-600,
.ridox-footer p.text-gray-600,
.ridox-footer a.text-gray-600 {
  color: #b8c4d4 !important;
  font-size: 0.75rem;
}

/* Duplicate client logos section removed - using new gradient frame design above */

/* ============================================
   ENHANCED LIGHT SECTIONS - GRADIENTS & TEXTURES
   Performance-optimized, GPU-accelerated
   ============================================ */

/* Color Variation Gradients for Light Sections - original slate base + orange/cyan tints */
.section-gradient-warm {
    background: 
        radial-gradient(ellipse 100% 80% at 10% 20%, rgba(255, 107, 53, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 90% 80%, rgba(255, 107, 53, 0.12) 0%, transparent 50%),
        linear-gradient(160deg, #F8FAFC 0%, #F1F5F9 50%, #F8FAFC 100%);
}

.section-gradient-cool {
    background: 
        radial-gradient(ellipse 100% 80% at 90% 20%, rgba(0, 217, 255, 0.16) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 10% 80%, rgba(0, 217, 255, 0.10) 0%, transparent 50%),
        linear-gradient(200deg, #F1F5F9 0%, #F8FAFC 50%, #F1F5F9 100%);
}

.section-gradient-dual {
    background: 
        radial-gradient(ellipse 90% 70% at 15% 25%, rgba(255, 107, 53, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 90% 70% at 85% 75%, rgba(0, 217, 255, 0.12) 0%, transparent 55%),
        linear-gradient(160deg, #F8FAFC 0%, #F1F5F9 40%, #F8FAFC 100%);
}

.section-gradient-radial {
    background: 
        radial-gradient(ellipse 100% 60% at 20% 30%, rgba(255, 107, 53, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 80% 50% at 80% 70%, rgba(0, 217, 255, 0.12) 0%, transparent 60%),
        #F1F5F9;
}

.section-gradient-accent {
    background: 
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 107, 53, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(0, 217, 255, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 50%, #F8FAFC 100%);
}

/* Light fallback so texture (background-image) does not leave section transparent */
.section-gradient-dual,
.section-gradient-warm,
.section-gradient-cool,
.section-gradient-accent,
.section-gradient-radial {
    background-color: #F1F5F9;
}

/* Dark Section Variants (for mixed light/dark rhythm) */
.section-dark {
    background-color: #0E0F16;
    color: #F8FAFC;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #F8FAFC;
}

.section-dark .text-gray-300,
.section-dark .text-gray-400,
.section-dark .text-gray-500 {
    color: rgba(226, 232, 240, 0.7) !important;
}

.section-dark .glow-card,
.section-dark .value-card,
.section-dark .portfolio-item,
.section-dark .service-detail-card {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.section-dark .glow-card:hover,
.section-dark .value-card:hover,
.section-dark .portfolio-item:hover,
.section-dark .service-detail-card:hover {
    border-color: rgba(255, 107, 53, 0.35);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

/* Enhanced Service Cards */
.service-card-enhanced {
    position: relative;
    padding: 40px 32px;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card-enhanced .flex {
    position: relative;
    z-index: 1;
}

.service-card-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    animation: heroFloat 18s ease-in-out infinite;
}

.service-card-glow-orange {
    top: -100px;
    right: -80px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.5), transparent 70%);
}

.service-card-glow-cyan {
    top: -100px;
    left: -80px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.45), transparent 70%);
}

.service-card-glow-dual {
    top: -80px;
    right: -60px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.4), rgba(0, 217, 255, 0.35), transparent 70%);
}

.service-card-enhanced:hover {
    transform: translateY(-8px);
}

.service-card-enhanced:hover .service-card-glow {
    opacity: 0.6;
}

/* Service Icon Enhancements */
.service-icon-wrapper {
    position: relative;
    overflow: visible;
}

.service-icon-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 20px;
    border: 2px solid;
    opacity: 0.3;
    animation: iconPulse 3s ease-in-out infinite;
}

.service-icon-orange .service-icon-pulse {
    border-color: var(--ridox-orange);
}

.service-icon-cyan .service-icon-pulse {
    border-color: var(--ridox-cyan);
}

.service-icon-dual .service-icon-pulse {
    border-color: var(--ridox-orange);
    animation: iconPulseDual 3s ease-in-out infinite;
}

.service-icon-dual .service-icon-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    border: 1px solid var(--ridox-cyan);
    opacity: 0.3;
    animation: iconPulse 3s ease-in-out infinite 0.5s;
}

.service-card-enhanced:hover .service-icon-wrapper {
    transform: scale(1.1);
}

.service-card-enhanced:hover .service-icon-pulse {
    opacity: 0.6;
    animation-duration: 1.5s;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.5;
    }
}

@keyframes iconPulseDual {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.5;
    }
}

/* Service Card Specific Styling */
.service-card-it {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 107, 53, 0.15);
}

.service-card-marketing {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(0, 217, 255, 0.15);
}

.service-card-creative {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-image: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(0, 217, 255, 0.2)) 1;
}

.service-card-it:hover {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 24px 60px rgba(255, 107, 53, 0.2);
}

.service-card-marketing:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 24px 60px rgba(0, 217, 255, 0.2);
}

.service-card-creative:hover {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 24px 60px rgba(255, 107, 53, 0.15), 0 24px 60px rgba(0, 217, 255, 0.15);
}

.section-dark :is(input, textarea, select) {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}

.section-dark :is(input, textarea, select)::placeholder {
    color: rgba(226, 232, 240, 0.55) !important;
}

/* Dark Gradients */
.section-gradient-dark-warm {
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(255, 107, 53, 0.18), transparent 60%),
        linear-gradient(180deg, #0E0F16 0%, #0A0A0F 100%);
}

.section-gradient-dark-cool {
    background:
        radial-gradient(ellipse 70% 50% at 85% 20%, rgba(0, 217, 255, 0.16), transparent 60%),
        linear-gradient(180deg, #0E0F16 0%, #0A0A0F 100%);
}

.section-gradient-dark-dual {
    background:
        radial-gradient(ellipse 70% 50% at 20% 30%, rgba(255, 107, 53, 0.16), transparent 60%),
        radial-gradient(ellipse 70% 50% at 80% 70%, rgba(0, 217, 255, 0.14), transparent 60%),
        linear-gradient(180deg, #0E0F16 0%, #0A0A0F 100%);
}

.section-gradient-dark-accent {
    background:
        linear-gradient(180deg, rgba(255, 107, 53, 0.12) 0%, transparent 35%),
        linear-gradient(0deg, rgba(0, 217, 255, 0.10) 0%, transparent 35%),
        #0E0F16;
}

/* Enhanced Background Textures - Stronger visibility (less minimal) */
.section-texture-dots {
    background-image: 
        radial-gradient(circle, rgba(15, 23, 42, 0.14) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 107, 53, 0.08) 0.8px, transparent 0.8px);
    background-size: 28px 28px, 18px 18px;
    background-position: 0 0, 14px 14px;
}

.section-texture-grid {
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.10) 1px, transparent 1px),
        linear-gradient(rgba(255, 107, 53, 0.06) 0.5px, transparent 0.5px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.06) 0.5px, transparent 0.5px);
    background-size: 42px 42px, 42px 42px, 21px 21px, 21px 21px;
}

/* Additional Creative Textures for Light Sections */
.section-texture-mesh {
    background-image: 
        radial-gradient(at 20% 30%, rgba(255, 107, 53, 0.16) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(0, 217, 255, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(255, 107, 53, 0.08) 0px, transparent 50%);
    background-size: 100% 100%;
}

/* When both dots and mesh are used, layer them so dots are visible (mesh was overwriting dots) */
.section-texture-dots.section-texture-mesh {
    background-image: 
        radial-gradient(circle, rgba(15, 23, 42, 0.18) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 107, 53, 0.12) 0.8px, transparent 0.8px),
        radial-gradient(at 20% 30%, rgba(255, 107, 53, 0.16) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(0, 217, 255, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(255, 107, 53, 0.08) 0px, transparent 50%);
    background-size: 28px 28px, 18px 18px, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0 0, 14px 14px, 0 0, 0 0, 0 0;
}

.section-texture-noise {
    position: relative;
}

.section-texture-noise::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Dark-friendly textures */
.section-texture-dots-dark {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 26px 26px;
}

.section-texture-grid-dark {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
}

/* ============================================
   FLOATING BACKGROUND ELEMENTS
   GPU-accelerated animations
   ============================================ */

/* Container for floating elements */
.section-with-floats {
    position: relative;
    overflow: hidden;
}

/* Floating gradient orbs - GPU accelerated */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.floating-orb-orange {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    animation: floatOrb1 18s ease-in-out infinite;
}

.floating-orb-cyan {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.06) 0%, transparent 70%);
    filter: blur(70px);
    animation: floatOrb2 24s ease-in-out infinite;
}

.floating-orb-small {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 0%, transparent 70%);
    filter: blur(50px);
    animation: floatOrb3 20s ease-in-out infinite;
}

/* Floating orb animations - moderate amplitude, variance in duration/direction */
@keyframes floatOrb1 {
    0%, 100% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(50px, -55px, 0); }
    50% { transform: translate3d(-30px, 25px, 0); }
    75% { transform: translate3d(55px, 35px, 0); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate3d(0, 0, 0); }
    33% { transform: translate3d(-50px, 40px, 0); }
    66% { transform: translate3d(45px, -35px, 0); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(35px, -45px, 0); }
}

/* Positioning utilities for floating orbs */
.orb-top-left {
    top: -100px;
    left: -100px;
}

.orb-top-right {
    top: -50px;
    right: -100px;
}

.orb-bottom-left {
    bottom: -100px;
    left: 10%;
}

.orb-bottom-right {
    bottom: -80px;
    right: -50px;
}

.orb-center-left {
    top: 30%;
    left: -150px;
}

.orb-center-right {
    top: 40%;
    right: -100px;
}

/* ============================================
   ENHANCED SCROLL ANIMATIONS
   Smoother reveals with scale + fade
   ============================================ */

/* Enhanced card reveal with scale */
.animate-scale-in {
    opacity: 0;
    transform: translateY(50px) scale(0.92);
    transition:
        opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-scale-in.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Slide in from left */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-65px);
    transition:
        opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-slide-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Slide in from right */
.animate-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-slide-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Fade up with bounce */
.animate-bounce-in {
    opacity: 0;
    transform: translateY(75px);
    transition:
        opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}

.animate-bounce-in.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ENHANCED HOVER MICRO-INTERACTIONS
   ============================================ */

/* Enhanced glow card hover for light sections - Additional hover effects */
.section-light .glow-card {
    transition: 
        transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
}

.section-light .glow-card:hover {
    transform: translateY(-12px) scale(1.01);
}

/* Icon container pulse on hover */
.icon-pulse {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glow-card:hover .icon-pulse {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

/* Link arrow animation */
.link-arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glow-card:hover .link-arrow,
a:hover .link-arrow {
    transform: translateX(6px);
}

/* Process step number pulse */
.process-step .rounded-full {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-badge::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    opacity: 0.5;
    animation: rotateSlow 10s linear infinite;
    pointer-events: none;
}

.process-step:hover .rounded-full {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.25);
}

/* Client card enhanced hover */
.client-card {
    transition: 
        transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s ease;
}

.client-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.client-card-float {
    animation: logoFloat 9s ease-in-out infinite;
    will-change: transform;
}

.client-card-float:nth-child(2) { animation-delay: -1s; }
.client-card-float:nth-child(3) { animation-delay: -2s; }
.client-card-float:nth-child(4) { animation-delay: -3s; }
.client-card-float:nth-child(5) { animation-delay: -4s; }
.client-card-float:nth-child(6) { animation-delay: -5s; }

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Contact info card slide */
.contact-info-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-info-card:hover {
    transform: translateX(12px);
}

.contact-info-card:hover .rounded-full {
    transform: scale(1.1);
}

/* Contact form ambient glows */
.form-ambient {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.35;
    animation: heroFloat 14s ease-in-out infinite;
    pointer-events: none;
}

.form-ambient-orange {
    top: -60px;
    right: -40px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.4), transparent 70%);
    animation-delay: -3s;
}

.form-ambient-cyan {
    bottom: -80px;
    left: -30px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.35), transparent 70%);
    animation-delay: -6s;
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */

/* Animated gradient line divider */
.gradient-divider {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--ridox-orange) 20%,
        var(--ridox-cyan) 50%,
        var(--ridox-orange) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: gradientFlow 4s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Accent corner decoration - Enhanced for Light Sections */
.accent-corner {
    position: absolute;
    width: 120px;
    height: 120px;
    pointer-events: none;
    z-index: 0;
}

.accent-corner-tl {
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.18) 0%, transparent 60%);
    border-radius: 0 0 120px 0;
}

.accent-corner-br {
    bottom: 0;
    right: 0;
    background: linear-gradient(315deg, rgba(0, 217, 255, 0.16) 0%, transparent 60%);
    border-radius: 120px 0 0 0;
}

/* Light Section Specific Accents - More visible (less minimal) */
.section-light .accent-corner-tl {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.35) 0%, transparent 60%);
}

.section-light .accent-corner-br {
    background: linear-gradient(315deg, rgba(0, 217, 255, 0.30) 0%, transparent 60%);
}

/* Decorative gradient border for light section cards */
.section-light .glow-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(0, 217, 255, 0.3), rgba(255, 107, 53, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.section-light .glow-card:hover::after {
    opacity: 1;
}

/* Decorative accent lines for light sections - More visible */
.section-accent-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--ridox-orange) 20%,
        var(--ridox-cyan) 50%,
        var(--ridox-orange) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: gradientFlow 5s ease-in-out infinite;
    border-radius: 2px;
    opacity: 0.85;
}

.section-accent-line-top {
    top: 0;
    left: 10%;
    right: 10%;
}

.section-accent-line-bottom {
    bottom: 0;
    left: 10%;
    right: 10%;
}

/* Subtle mesh overlay for light sections */
.section-mesh-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(at 25% 25%, rgba(255, 107, 53, 0.08) 0px, transparent 50%),
        radial-gradient(at 75% 75%, rgba(0, 217, 255, 0.07) 0px, transparent 50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .floating-orb,
    .floating-orb-orange,
    .floating-orb-cyan,
    .floating-orb-small,
    .hero-orb,
    .feature-glow,
    .advantage-display-glow,
    .client-card-float,
    .form-ambient,
    .service-card-glow,
    .service-icon-pulse {
        animation: none !important;
    }
    
    .animate-scale-in,
    .animate-slide-left,
    .animate-slide-right,
    .animate-bounce-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .gradient-divider {
        animation: none !important;
        background-position: 50% 50% !important;
    }
    
    .glow-card,
    .client-card,
    .contact-info-card,
    .process-step .rounded-full {
        transition: none !important;
    }

    .feature-icon::after,
    .process-badge::after {
        animation: none !important;
    }
}

/* Hide floating orbs on mobile for performance */
@media (max-width: 768px) {
    .floating-orb,
    .hero-orb,
    .feature-glow,
    .form-ambient {
        display: none;
    }
}