/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

html.lenis, html.lenis body {
    height: auto;
}

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

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

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    background-color: #2E2824;
    color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

/* ===== Warm Gradient Background ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 0% 100%, rgba(175, 84, 40, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 100% 100%, rgba(175, 84, 40, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(175, 84, 40, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #2E2824;
}

::-webkit-scrollbar-thumb {
    background: #AF5428;
    border-radius: 3px;
}

/* ===== Selection ===== */
::selection {
    background: rgba(175, 84, 40, 0.4);
    color: #ffffff;
}

/* ===== Preloader ===== */
#preloader {
    transition: opacity 0.4s ease, visibility 0.4s ease;
    background-color: #2E2824;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.preloader-circle circle {
    transition: stroke-dashoffset 1s ease;
}

.preloader-progress {
    transition: width 0.3s ease;
}

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

/* ===== Custom Cursor ===== */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: #AF5428;
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 10000;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

/* Hide custom cursor when over widget - AGGRESSIVE */
#rdv-widget:hover ~ .custom-cursor,
#rdv-widget:hover ~ .cursor-follower,
body:has(#rdv-widget:hover) .custom-cursor,
body:has(#rdv-widget:hover) .cursor-follower,
#rdv-widget .custom-cursor,
#rdv-widget .cursor-follower {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Force normal cursor over widget */
#rdv-widget,
#rdv-widget * {
    cursor: auto !important;
}

#rdv-widget button,
#rdv-widget a {
    cursor: pointer !important;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(175, 84, 40, 0.5);
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.custom-cursor.hovering {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid #AF5428;
    mix-blend-mode: normal;
}

.cursor-follower.hovering {
    width: 80px;
    height: 80px;
    border-color: rgba(175, 84, 40, 0.3);
}

@media (max-width: 1024px) {
    .custom-cursor, .cursor-follower {
        display: none;
    }
    body {
        cursor: auto;
    }
}

/* ===== Particle Canvas ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

/* ===== Navigation ===== */
#navbar {
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-link {
    position: relative;
    color: #9ca3af;
    font-weight: 500;
    overflow: hidden;
}

.nav-link-text {
    position: relative;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-link-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 100%;
    color: #AF5428;
}

.nav-link:hover .nav-link-text {
    transform: translateY(-100%);
}

/* CTA Button */
.cta-button {
    position: relative;
    background: #AF5428;
    color: white;
    font-weight: 600;
    border-radius: 12px;
    overflow: hidden;
}

.cta-button .cta-text,
.cta-button .cta-arrow {
    position: relative;
    z-index: 2;
}

.cta-button .cta-bg {
    position: absolute;
    inset: 0;
    background: #9c4a23;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.cta-button:hover .cta-bg {
    transform: scaleX(1);
}

/* Mobile Menu */
#mobile-menu.active {
    transform: translateX(0);
}

.mobile-link span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

#mobile-menu.active .mobile-link span {
    transform: translateY(0);
}

/* ===== Hero Section ===== */
.hero-grid {
    background-image: 
        linear-gradient(rgba(175, 84, 40, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(175, 84, 40, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
}

.orb {
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 { animation-delay: 0s; }
.orb-2 { animation-delay: -7s; }
.orb-3 { animation-delay: -14s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(30px, 50px) scale(1.05); }
}

.text-gradient {
    background: linear-gradient(135deg, #AF5428 0%, #d17a5c 50%, #AF5428 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

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

.title-word {
    display: inline-block;
    margin-right: 0.15em;
}

/* Scroll Indicator */
.scroll-dot {
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% { top: 0; opacity: 1; }
    50% { top: 100%; opacity: 0; }
}

/* ===== Marquee ===== */
.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #4b5563;
    padding: 0 1rem;
}

.marquee-separator {
    color: #AF5428;
    padding: 0 1rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Client Section ===== */
.clients-container {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.client-row {
    overflow: hidden;
}

.client-track-infinite {
    display: flex;
    gap: 1rem;
    width: max-content;
}

/* Continuous animation - no pause on hover */

.client-track-right {
    animation: clientScrollRight 45s linear infinite;
}

.client-track-left {
    animation: clientScrollLeft 45s linear infinite;
}

.client-track-right-slow {
    animation: clientScrollRight 60s linear infinite;
}

@keyframes clientScrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@keyframes clientScrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-item {
    position: relative;
    width: 280px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.7);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.client-industry {
    font-size: 0.75rem;
    font-weight: 500;
    color: #AF5428;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Glow border */
.client-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #AF5428, transparent, #AF5428);
    border-radius: 22px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

/* Inner border */
.client-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    transition: border-color 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.client-item:hover {
    transform: scale(1.08) translateY(-12px) rotateX(5deg);
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(175, 84, 40, 0.2);
}

.client-item:hover::before {
    opacity: 1;
}

.client-item:hover::after {
    border-color: rgba(175, 84, 40, 0.5);
}

.client-item:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.client-item:hover .client-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delay */
.client-item {
    animation: clientPulse 4s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 0.5s);
}

@keyframes clientPulse {
    0%, 100% { 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    50% { 
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(175, 84, 40, 0.1);
    }
}

/* ===== Client Logos Carousel ===== */
.client-logos-container {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.client-logos-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: clientLogosScroll 30s linear infinite;
}

/* Continuous animation - no pause on hover */

@keyframes clientLogosScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    padding: 0 3rem;
    transition: all 0.4s ease;
}

.client-logo-img {
    max-height: 200px;
    max-width: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: all 0.4s ease;
    background: transparent;
    mix-blend-mode: normal;
}

.client-logo-item:hover .client-logo-img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

/* Light theme adjustments for logos */
[data-theme="light"] .client-logo-img,
.light-theme .client-logo-img {
    filter: none;
    opacity: 1;
}

[data-theme="light"] .client-logo-item:hover .client-logo-img,
.light-theme .client-logo-item:hover .client-logo-img {
    filter: brightness(1.1);
    opacity: 1;
}

[data-theme="light"] .client-logos-container .bg-gradient-to-r,
.light-theme .client-logos-container .bg-gradient-to-r {
    background: linear-gradient(to right, #FAFAF9, transparent) !important;
}

[data-theme="light"] .client-logos-container .bg-gradient-to-l,
.light-theme .client-logos-container .bg-gradient-to-l {
    background: linear-gradient(to left, #FAFAF9, transparent) !important;
}

/* ===== Portfolio Carousel ===== */
.portfolio-carousel {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.portfolio-track {
    display: flex;
    width: max-content;
}

.portfolio-track-right {
    animation: portfolioScrollRight 60s linear infinite;
}

.portfolio-track-left {
    animation: portfolioScrollLeft 60s linear infinite;
}

.portfolio-track:hover {
    animation-play-state: paused;
}

@keyframes portfolioScrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@keyframes portfolioScrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Testimonials Carousel ===== */
.testimonials-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.testimonial-row {
    width: 100%;
    overflow: hidden;
    /* Force GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
}

.testimonial-track {
    display: flex;
    gap: 24px;
    width: fit-content;
    /* Optimize for performance */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.testimonial-track-right {
    animation: testimonialScrollRight 70s linear infinite;
    /* Prevent animation interruption */
    animation-fill-mode: both;
}

.testimonial-track-left {
    animation: testimonialScrollLeft 70s linear infinite;
    /* Prevent animation interruption */
    animation-fill-mode: both;
}

/* Continuous animation - no pause on hover */

/* Optimize animation performance */
@keyframes testimonialScrollRight {
    0% {
        transform: translateX(0) translateZ(0);
    }
    100% {
        transform: translateX(-50%) translateZ(0);
    }
}

@keyframes testimonialScrollLeft {
    0% {
        transform: translateX(-50%) translateZ(0);
    }
    100% {
        transform: translateX(0) translateZ(0);
    }
}


.testimonial-item {
    flex-shrink: 0;
    width: 550px;
    padding: 40px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
    /* Optimize for performance */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: #AF5428;
    opacity: 0.1;
    line-height: 1;
    pointer-events: none;
}

.testimonial-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #AF5428;
    box-shadow: 
        0 20px 60px rgba(175, 84, 40, 0.2),
        0 0 40px rgba(175, 84, 40, 0.1);
}

.testimonial-stars {
    font-size: 22px;
    color: #AF5428;
    letter-spacing: 4px;
    margin-bottom: 24px;
    text-shadow: 0 0 20px rgba(175, 84, 40, 0.5);
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 28px;
    min-height: 120px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #AF5428;
    transition: all 0.3s ease;
}

.testimonial-item:hover .testimonial-author img {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(175, 84, 40, 0.4);
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.testimonial-name {
    font-weight: 600;
    color: white;
    font-size: 17px;
}

.testimonial-role {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.testimonial-result {
    background: linear-gradient(135deg, #AF5428 0%, #d17a5c 100%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(175, 84, 40, 0.4);
}

/* Responsive testimonials */
@media (max-width: 768px) {
    .testimonial-item {
        width: 380px;
        padding: 32px;
    }
    
    .testimonial-item::before {
        font-size: 100px;
    }
    
    .testimonial-text {
        font-size: 14px;
        min-height: 70px;
    }
    
    .testimonial-track-right,
    .testimonial-track-left {
        animation-duration: 50s;
    }
}

/* ===== Cards Base Styles ===== */
.card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(15, 15, 15, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    z-index: 0;
}

.card-border {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent, transparent, rgba(175, 84, 40, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.card-glow {
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(175, 84, 40, 0.15), transparent 50%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-card:hover .card-border {
    background: linear-gradient(135deg, rgba(175, 84, 40, 0.3), transparent, transparent, rgba(175, 84, 40, 0.3));
}

.service-icon {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
}

.service-number {
    transition: all 0.5s ease;
}

.service-card:hover .service-number {
    color: rgba(175, 84, 40, 0.1);
}

.service-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.service-card:hover .service-tag {
    background: rgba(175, 84, 40, 0.1);
    color: #AF5428;
}

/* ===== Portfolio Cards ===== */
.portfolio-card {
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover {
    transform: scale(1.03) translateY(-10px);
    z-index: 10;
}

.portfolio-image {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.15);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    transition: all 0.5s ease;
}

.portfolio-card:hover .portfolio-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(175, 84, 40, 0.15) 100%);
}

.portfolio-content {
    z-index: 10;
}

.portfolio-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(175, 84, 40, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #AF5428;
    margin-bottom: 0.75rem;
    transform: translateY(10px);
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-tag {
    transform: translateY(0);
    opacity: 1;
    background: rgba(175, 84, 40, 0.3);
}

.portfolio-title {
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-title {
    color: #AF5428;
    text-shadow: 0 0 30px rgba(175, 84, 40, 0.3);
}

.portfolio-stats {
    transform: translateY(10px);
    opacity: 0.7;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.portfolio-card:hover .portfolio-stats {
    transform: translateY(0);
    opacity: 1;
}

/* Glow effect on hover */
.portfolio-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(175, 84, 40, 0.4), transparent, rgba(175, 84, 40, 0.2));
    border-radius: 26px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

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

/* ===== Testimonial Cards ===== */
.testimonial-card {
    position: relative;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-avatar {
    transition: transform 0.5s ease;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.1);
}

/* ===== Section Titles ===== */
.section-label {
    opacity: 0;
    transform: translateY(20px);
}

.title-line-wrap {
    display: block;
    overflow: hidden;
}

.title-line-inner {
    display: block;
    transform: translateY(100%);
}

.section-description {
    opacity: 0;
    transform: translateY(20px);
}

/* ===== Footer ===== */
.footer-social {
    transition: all 0.3s ease;
}

.footer-social:hover {
    background: #AF5428;
    transform: translateY(-3px);
}

.footer-link {
    position: relative;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #AF5428;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* ===== RDV Floating Widget ===== */
/* ===== RDV Floating Widget - ULTRA SPECIFIC ===== */
body #rdv-widget,
html body #rdv-widget,
#rdv-widget {
    z-index: 2147483647 !important;
    pointer-events: auto !important;
    isolation: isolate;
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    touch-action: manipulation;
    /* Force widget to be on top of everything */
    transform: translateZ(0) !important;
    will-change: transform;
    /* Override any cursor interference */
    cursor: auto !important;
    /* Ensure widget captures all events */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Force ALL elements inside widget to be interactive */
#rdv-widget,
#rdv-widget * {
    pointer-events: auto !important;
    -webkit-user-select: none;
    user-select: none;
}

/* But allow text selection in popup */
#rdv-popup p,
#rdv-popup h4,
#rdv-popup span {
    -webkit-user-select: text;
    user-select: text;
    pointer-events: auto !important;
}

/* CRITICAL: Ensure popup container captures all events */
#rdv-popup,
#rdv-popup > div {
    pointer-events: auto !important;
    cursor: auto !important;
}

/* Ensure minimized button captures events */
#rdv-minimized,
#rdv-minimized > div {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Override hidden class for widget elements when they should be visible */
#rdv-popup:not(.hidden) {
    display: block !important;
    visibility: visible !important;
}

#rdv-minimized:not(.hidden) {
    display: block !important;
    visibility: visible !important;
}

/* Fix black bar under profile photo */
#rdv-widget img.rounded-full {
    display: block !important;
    vertical-align: top !important;
    line-height: 0 !important;
}

/* Capture zone to disable custom cursor */
#rdv-widget-capture-zone {
    pointer-events: none !important;
    z-index: 2147483646 !important;
}

/* Force cursor to be normal when over widget */
#rdv-widget,
#rdv-widget * {
    cursor: auto !important;
}

#rdv-widget button,
#rdv-widget a {
    cursor: pointer !important;
}

/* Ensure widget is always on top of custom cursor */
.custom-cursor,
.cursor-follower {
    z-index: 10000 !important;
}

#rdv-widget {
    z-index: 2147483647 !important;
}

/* Create a capture layer to ensure interactivity */
#rdv-widget::before {
    content: '';
    position: absolute;
    inset: -50px;
    z-index: -1;
    pointer-events: auto !important;
}

/* Widget overlay to capture all events */
/* Removed overlay - using direct approach instead */
#rdv-widget-overlay-removed {
    pointer-events: auto !important;
    z-index: 999999 !important;
    cursor: auto !important;
}

/* Force widget container to capture events - REMOVED position:relative to keep fixed positioning */

/* Force pointer-events on ALL elements inside widget - CRITICAL */
#rdv-widget,
#rdv-widget *,
#rdv-widget::before,
#rdv-widget::after,
#rdv-widget *::before,
#rdv-widget *::after {
    pointer-events: auto !important;
    -webkit-user-select: none;
    user-select: none;
}

/* Ensure widget captures all mouse events - ULTRA AGGRESSIVE */
#rdv-widget {
    pointer-events: auto !important;
}

#rdv-widget * {
    pointer-events: auto !important;
}

/* Ensure all child elements are interactive */
#rdv-minimized,
#rdv-minimized *,
#rdv-minimized > div,
#rdv-minimized > div *,
#rdv-popup,
#rdv-popup *,
#rdv-popup > div,
#rdv-popup > div * {
    pointer-events: auto !important;
}

/* Specific cursor styles */
#rdv-widget button,
#rdv-widget a,
#rdv-minimized,
#rdv-minimized > div,
#rdv-popup button,
#rdv-popup a {
    cursor: pointer !important;
}

/* Widget containers should have pointer cursor */
#rdv-widget,
#rdv-widget > *,
#rdv-minimized,
#rdv-minimized > *,
#rdv-popup,
#rdv-popup > * {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Text elements should have default cursor */
#rdv-widget p,
#rdv-widget h4,
#rdv-widget span:not(.absolute) {
    cursor: default !important;
    pointer-events: auto !important;
}

#rdv-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    pointer-events: auto !important;
    z-index: 2147483647 !important;
}

#rdv-popup > div {
    pointer-events: auto !important;
    position: relative;
    z-index: 2147483647 !important;
}

/* Force interactivity on all nested elements - EXTRA SPECIFIC */
#rdv-widget img,
#rdv-widget svg,
#rdv-widget div,
#rdv-widget button,
#rdv-widget a,
#rdv-widget p,
#rdv-widget span,
#rdv-widget h4,
#rdv-widget section,
#rdv-widget article {
    pointer-events: auto !important;
    position: relative;
}

/* Ensure widget is never blocked by other elements */
#rdv-widget:hover,
#rdv-widget:active,
#rdv-widget:focus,
#rdv-widget:focus-within,
#rdv-widget *:hover,
#rdv-widget *:active,
#rdv-widget *:focus {
    pointer-events: auto !important;
    z-index: 2147483647 !important;
}

/* Prevent any overlay or background from blocking widget */
.noise-overlay,
.custom-cursor,
.cursor-follower,
#particles-canvas {
    pointer-events: none !important;
}

/* Ensure custom cursor doesn't interfere with widget */
#rdv-widget:hover ~ * .custom-cursor,
#rdv-widget:hover ~ * .cursor-follower {
    display: none !important;
    pointer-events: none !important;
}

/* Override any potential parent pointer-events - ensure widget is always on top */
#rdv-widget {
    pointer-events: auto !important;
    z-index: 2147483647 !important;
    isolation: isolate !important;
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

#rdv-widget > * {
    pointer-events: auto !important;
    position: relative;
    z-index: inherit;
}

/* FINAL OVERRIDE - Ensure widget is always interactive */
#rdv-widget,
#rdv-widget * {
    pointer-events: auto !important;
}

/* Force interactivity on all nested elements - EXTRA SPECIFIC */
#rdv-widget img,
#rdv-widget svg,
#rdv-widget div,
#rdv-widget button,
#rdv-widget a,
#rdv-widget p,
#rdv-widget span,
#rdv-widget h4,
#rdv-widget section,
#rdv-widget article {
    pointer-events: auto !important;
    position: relative;
}

/* Ensure widget is never blocked by other elements */
body:not(:has(#rdv-widget:hover)) #rdv-widget,
#rdv-widget:hover,
#rdv-widget:active,
#rdv-widget:focus,
#rdv-widget:focus-within {
    pointer-events: auto !important;
    z-index: 2147483647 !important;
}

/* ===== Magnetic Effect ===== */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reveal Text ===== */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .marquee-item {
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* ===== Theme Toggle ===== */
#theme-toggle {
    position: relative;
    overflow: hidden;
}

#theme-toggle .theme-icon-sun,
#theme-toggle .theme-icon-moon {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Light theme icons */
.light-theme #theme-toggle .theme-icon-sun {
    display: none;
}

.light-theme #theme-toggle .theme-icon-moon {
    display: block;
}

/* ===== Light Theme ===== */
.light-theme {
    --bg-primary: #FAFAF9;
    --bg-secondary: #F5F5F4;
    --bg-tertiary: #E7E5E4;
    --text-primary: #1C1917;
    --text-secondary: #44403C;
    --text-muted: #78716C;
    --border-color: rgba(0, 0, 0, 0.08);
}

.light-theme body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.light-theme body::before {
    background: 
        radial-gradient(ellipse 80% 50% at 0% 100%, rgba(175, 84, 40, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 100% 100%, rgba(175, 84, 40, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(175, 84, 40, 0.05) 0%, transparent 40%);
}

/* Scrollbar */
.light-theme ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

/* Preloader */
.light-theme #preloader {
    background-color: var(--bg-primary);
}

.light-theme .preloader-text span {
    color: var(--text-muted);
}

.light-theme .preloader-bar {
    background: var(--bg-tertiary);
}

/* Cursor */
.light-theme .custom-cursor {
    mix-blend-mode: difference;
}

/* Navbar */
.light-theme #navbar.scrolled {
    background: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.light-theme .nav-link {
    color: var(--text-secondary);
}

.light-theme .nav-link-text::after {
    color: #AF5428;
}

.light-theme #theme-toggle {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

.light-theme #theme-toggle:hover {
    background: var(--bg-secondary);
}

/* Mobile menu button */
.light-theme #mobile-menu-btn {
    background: var(--bg-tertiary);
}

.light-theme #mobile-menu-btn:hover {
    background: var(--bg-secondary);
}

.light-theme .menu-line {
    background: var(--text-primary);
}

/* Mobile menu */
.light-theme #mobile-menu {
    background: rgba(250, 250, 249, 0.98);
}

.light-theme .mobile-link {
    color: var(--text-secondary);
}

.light-theme .mobile-link span {
    color: var(--text-secondary);
}

.light-theme .mobile-link:hover span {
    color: #AF5428;
}

/* Hero */
.light-theme #hero {
    background: var(--bg-primary);
}

.light-theme #hero .absolute.inset-0.bg-gradient-to-b {
    background: linear-gradient(to bottom, var(--bg-primary), rgba(250, 250, 249, 0.7), var(--bg-primary));
}

.light-theme .hero-grid {
    background-image: 
        linear-gradient(rgba(175, 84, 40, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(175, 84, 40, 0.05) 1px, transparent 1px);
}

.light-theme .orb {
    opacity: 0.5;
}

.light-theme .hero-badge {
    background: rgba(175, 84, 40, 0.08);
    border-color: rgba(175, 84, 40, 0.15);
    color: var(--text-secondary);
}

.light-theme .hero-badge span {
    color: var(--text-secondary);
}

.light-theme .hero-title,
.light-theme .title-word {
    color: var(--text-primary);
}

.light-theme .hero-description {
    color: var(--text-secondary);
}

.light-theme .hero-stats {
    border-color: var(--border-color);
}

.light-theme .stat-number {
    color: var(--text-primary);
}

.light-theme .stat-item .text-gray-500,
.light-theme .stat-item .text-sm {
    color: var(--text-muted);
}

.light-theme .scroll-indicator span {
    color: var(--text-muted);
}

.light-theme .scroll-indicator .scroll-line {
    background: linear-gradient(to bottom, #AF5428, transparent);
}

/* Video overlay in light mode */
.light-theme #hero-video {
    opacity: 0.08;
}

/* Marquee */
.light-theme .py-8.bg-primary-500\/5 {
    background: rgba(175, 84, 40, 0.04);
    border-color: var(--border-color);
}

.light-theme .marquee-item {
    color: var(--text-muted);
}

/* Section labels & descriptions */
.light-theme .section-label {
    background: rgba(175, 84, 40, 0.08);
    border-color: rgba(175, 84, 40, 0.15);
}

.light-theme .section-title,
.light-theme .section-title .title-line-inner {
    color: var(--text-primary);
}

.light-theme .section-description {
    color: var(--text-secondary);
}

/* All white text to dark */
.light-theme h1,
.light-theme h2,
.light-theme h3,
.light-theme h4,
.light-theme h5,
.light-theme h6 {
    color: var(--text-primary);
}

.light-theme .text-white {
    color: var(--text-primary);
}

.light-theme .text-gray-300,
.light-theme .text-gray-400 {
    color: var(--text-secondary);
}

.light-theme .text-gray-500,
.light-theme .text-gray-600 {
    color: var(--text-muted);
}

/* Service cards */
.light-theme .service-card .card-bg {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 250, 249, 0.95));
    border: 1px solid var(--border-color);
}

.light-theme .service-card .card-border {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), transparent, transparent, rgba(175, 84, 40, 0.1));
}

.light-theme .service-card h3 {
    color: var(--text-primary);
}

.light-theme .service-card p {
    color: var(--text-secondary);
}

.light-theme .service-tag {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.light-theme .service-card:hover .service-tag {
    background: rgba(175, 84, 40, 0.1);
    color: #AF5428;
}

.light-theme .service-number {
    color: rgba(0, 0, 0, 0.03);
}

.light-theme .service-card:hover .service-number {
    color: rgba(175, 84, 40, 0.08);
}

/* Clients section */
.light-theme #clients {
    background: var(--bg-primary);
}

.light-theme #clients .absolute.inset-0 {
    background: linear-gradient(to bottom, transparent, rgba(175, 84, 40, 0.03), transparent);
}

.light-theme .client-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
}

.light-theme .client-name {
    color: var(--text-primary);
}

.light-theme .clients-container .text-3xl,
.light-theme .clients-container .text-4xl {
    color: var(--text-primary);
}

/* Portfolio */
.light-theme .portfolio-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
}

.light-theme .portfolio-card:hover .portfolio-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(175, 84, 40, 0.08) 100%);
}

.light-theme .portfolio-title {
    color: var(--text-primary);
}

.light-theme .portfolio-card p {
    color: var(--text-secondary);
}

.light-theme .portfolio-stats {
    border-color: var(--border-color);
}

/* Testimonials section */
.light-theme #testimonials {
    background: var(--bg-primary);
}

.light-theme #testimonials .absolute.inset-0 {
    background: linear-gradient(to bottom, transparent, rgba(175, 84, 40, 0.03), transparent);
}

.light-theme .testimonial-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 249, 0.98) 100%);
    border-color: var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.light-theme .testimonial-text {
    color: var(--text-secondary);
}

.light-theme .testimonial-name {
    color: var(--text-primary);
}

.light-theme .testimonial-role {
    color: var(--text-muted);
}

.light-theme .testimonial-author {
    border-color: var(--border-color);
}

/* Trust badges in light mode */
.light-theme #testimonials .flex.items-center.gap-3 {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.light-theme #testimonials .flex.items-center.gap-3 span.text-white {
    color: var(--text-primary);
}

/* Trust badges */
.light-theme .flex.items-center.gap-3.px-6.py-3 {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

/* CTA Section */
.light-theme .cta-bg {
    background: linear-gradient(to right, rgba(175, 84, 40, 0.06) 0%, rgba(175, 84, 40, 0.03) 50%, rgba(175, 84, 40, 0.06) 100%);
}

.light-theme .cta-bg .absolute {
    opacity: 0.3;
}

.light-theme .cta-title,
.light-theme .cta-description {
    color: var(--text-primary);
}

.light-theme .cta-description {
    color: var(--text-secondary);
}

/* Footer */
.light-theme footer {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

.light-theme footer h4 {
    color: var(--text-primary);
}

.light-theme footer p,
.light-theme footer span {
    color: var(--text-muted);
}

.light-theme footer a.text-white {
    color: var(--text-primary);
}

.light-theme .footer-link {
    color: var(--text-muted);
}

.light-theme .footer-link:hover {
    color: var(--text-primary);
}

.light-theme .footer-social {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.light-theme .footer-social:hover {
    background: #AF5428;
    color: white;
}

.light-theme footer .text-sm.text-gray-600 {
    color: var(--text-muted);
}

/* RDV Widget light theme */
.light-theme #rdv-widget .rdv-minimized-btn {
    box-shadow: 0 4px 20px rgba(175, 84, 40, 0.35);
}

/* Noise overlay */
.light-theme .noise-overlay {
    opacity: 0.015;
}

/* Form inputs (about page) */
.light-theme input,
.light-theme select,
.light-theme textarea {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.light-theme input::placeholder,
.light-theme textarea::placeholder {
    color: var(--text-muted);
}

.light-theme input:focus,
.light-theme select:focus,
.light-theme textarea:focus {
    border-color: #AF5428;
}

/* Expertise cards (about page) */
.light-theme .group.bg-gradient-to-br {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 250, 249, 0.95));
    border-color: var(--border-color);
}

.light-theme .group.bg-gradient-to-br h3 {
    color: var(--text-primary);
}

.light-theme .group.bg-gradient-to-br p {
    color: var(--text-secondary);
}

.light-theme .group.bg-gradient-to-br .bg-dark-400 {
    background: var(--bg-tertiary);
}

/* Values section */
.light-theme .flex.gap-6 .flex-shrink-0 {
    background: rgba(175, 84, 40, 0.08);
}

.light-theme .flex.gap-6 h3 {
    color: var(--text-primary);
}

.light-theme .flex.gap-6 p {
    color: var(--text-secondary);
}

/* Quote card */
.light-theme .bg-primary-500 {
    background: #AF5428;
}

/* Contact info */
.light-theme .flex.items-center.gap-4 p {
    color: var(--text-muted);
}

.light-theme .flex.items-center.gap-4 a {
    color: var(--text-primary);
}

/* Services section */
.light-theme #services {
    background: var(--bg-primary);
}

/* Portfolio section */
.light-theme #portfolio {
    background: var(--bg-primary);
}

.light-theme .portfolio-stats span.text-xs {
    color: var(--text-muted);
}

/* Logo in navbar */
.light-theme .font-display.font-semibold {
    color: var(--text-primary);
}

/* About page hero */
.light-theme #about-hero {
    background: var(--bg-primary);
}

/* About page floating stats */
.light-theme .bg-dark-400\/90 {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.light-theme .bg-dark-400\/90 .text-sm {
    color: var(--text-muted);
}

/* Contact section background */
.light-theme #contact {
    background: var(--bg-primary);
}

.light-theme #contact .bg-gradient-to-b {
    background: linear-gradient(to bottom, transparent, rgba(175, 84, 40, 0.02), transparent);
}

/* Form card */
.light-theme .bg-gradient-to-br.from-dark-400\/50 {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 250, 249, 0.98));
    border-color: var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Keep buttons with white text */
.light-theme .bg-primary-500,
.light-theme .cta-button,
.light-theme button[type="submit"] {
    color: white;
}

.light-theme .bg-primary-500 span,
.light-theme .cta-button .cta-text,
.light-theme button[type="submit"] span {
    color: white;
}

/* Light theme widget */
[data-theme="light"] #rdv-popup > div {
    background: linear-gradient(135deg, #ffffff, #fafaf9);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] #rdv-popup h4 {
    color: #2E2824;
}

[data-theme="light"] #rdv-popup p {
    color: #666;
}

[data-theme="light"] #rdv-popup .text-gray-300 {
    color: #444;
}

[data-theme="light"] #rdv-popup .text-gray-500 {
    color: #888;
}

[data-theme="light"] #rdv-popup .border-white\/5 {
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] #rdv-popup button.bg-white\/5 {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] #rdv-popup button.bg-white\/5:hover {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] #rdv-minimized > div {
    background: linear-gradient(to right, #ffffff, #fafaf9);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] #rdv-minimized p.text-white {
    color: #2E2824;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    #rdv-widget {
        bottom: 1rem !important;
        right: 1rem !important;
        left: auto !important;
        top: auto !important;
        position: fixed !important;
    }
    
    #rdv-popup {
        right: 0;
        width: calc(100vw - 2rem);
        max-width: 320px;
    }
    
    #rdv-popup > div {
        width: 100%;
    }
    
    #rdv-minimized > div {
        padding-right: 1rem;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .logo-track, .marquee-content, .testimonial-track, .portfolio-track, .client-track-infinite {
        animation: none;
    }
}

/* ===== Print ===== */
@media print {
    #preloader, #navbar, #mobile-menu, #rdv-widget, 
    #particles-canvas, .noise-overlay, .custom-cursor, .cursor-follower {
        display: none !important;
    }
}
