/* Negative Light - Custom Styles */

/* ===== CSS Custom Properties ===== */
:root {
    --nl-orange-50: #fff7ed;
    --nl-orange-100: #ffedd5;
    --nl-orange-200: #fed7aa;
    --nl-orange-300: #fdba74;
    --nl-orange-400: #fb923c;
    --nl-orange-500: #f97316;
    --nl-orange-600: #ea580c;
    --nl-orange-700: #c2410c;
    --nl-orange-800: #9a3412;
    --nl-orange-900: #7c2d12;

    --nl-dark-900: #0a0a0a;
    --nl-dark-800: #141414;
    --nl-dark-700: #1f1f1f;
    --nl-dark-600: #2a2a2a;

    --glow-orange: 0 0 30px rgba(249, 115, 22, 0.4);
    --glow-orange-intense: 0 0 60px rgba(249, 115, 22, 0.6), 0 0 120px rgba(249, 115, 22, 0.3);
}

/* ===== Base Styles ===== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

body {
    font-family: 'Noto Serif', serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Instrument Sans', sans-serif;
}

.btn {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
}

.orange-glow-card {
    box-shadow:
        0 0 0 1px rgba(249, 115, 22, 0.3),
        0 4px 20px rgba(249, 115, 22, 0.15),
        0 8px 40px rgba(249, 115, 22, 0.1),
        inset 0 -80px 80px -80px rgba(249, 115, 22, 0.2);
}

.orange-glow-card:hover {
    box-shadow:
        0 0 0 1px rgba(249, 115, 22, 0.5),
        0 4px 30px rgba(249, 115, 22, 0.25),
        0 8px 60px rgba(249, 115, 22, 0.15),
        inset 0 -80px 80px -80px rgba(249, 115, 22, 0.3);
}

/* High-Performance Websites Card - Uses SVG background */
.hp-websites-card {
    background-color: transparent;
    border: none;
}

/* SVG Gradient Cards - Orange border glow effect */
.svg-glow-card {
    position: relative;
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-top-color: rgba(249, 115, 22, 0.6);
    box-shadow:
        0 -15px 35px rgba(249, 115, 22, 0.4),
        0 -5px 15px rgba(249, 115, 22, 0.3),
        inset 0 1px 0 rgba(249, 115, 22, 0.5);
}

.svg-glow-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(to bottom,
            rgba(249, 115, 22, 0.8) 0%,
            rgba(249, 115, 22, 0.4) 30%,
            rgba(249, 115, 22, 0.1) 60%,
            transparent 100%);
    -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;
    pointer-events: none;
}

/* Reversed glow for bottom (Blueprint card) */
.svg-glow-card-reverse {
    position: relative;
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-bottom-color: rgba(249, 115, 22, 0.6);
    box-shadow:
        0 15px 35px rgba(249, 115, 22, 0.4),
        0 5px 15px rgba(249, 115, 22, 0.3),
        inset 0 -1px 0 rgba(249, 115, 22, 0.5);
}

.svg-glow-card-reverse::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(to top,
            rgba(249, 115, 22, 0.8) 0%,
            rgba(249, 115, 22, 0.4) 30%,
            rgba(249, 115, 22, 0.1) 60%,
            transparent 100%);
    -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;
    pointer-events: none;
}

/* Big background glow for CTA card */
.cta-glow-card {
    border: 1px solid rgba(249, 115, 22, 0.8);
    position: relative;
    z-index: 10;
}

.cta-glow-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    max-width: 100vw;
    height: 180%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center,
            rgba(249, 115, 22, 0.25) 0%,
            rgba(249, 115, 22, 0.15) 30%,
            rgba(249, 115, 22, 0.05) 50%,
            transparent 75%);
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    animation: cta-glow-pulse 10s ease-in-out infinite;
}

@keyframes cta-glow-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15) rotate(2deg);
        opacity: 0.9;
    }
}

/* ===== Service Card Animations ===== */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Infinity/8 Glow Animation */
.infinity-glow {
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.5));
    animation: pulse-glow 3s ease-in-out infinite;
}

.infinity-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 0;
    animation: draw-infinity 4s ease-in-out infinite;
}

@keyframes draw-infinity {

    0%,
    100% {
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dashoffset: 300;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.8));
    }
}

/* Social Icons Glow */
.social-icons-glow {
    filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.4));
}

.heart-icon {
    animation: heart-beat 2s ease-in-out infinite;
}

@keyframes heart-beat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.sparkle {
    animation: sparkle-fade 2s ease-in-out infinite;
}

@keyframes sparkle-fade {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ===== Feature Card Animations ===== */
.feature-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Comet/Explosion Glow */
.comet-glow {
    filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.6));
}

.burst-pulse {
    animation: burst-pulse 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes burst-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Chart Line Animation */
.chart-line {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: draw-chart 3s ease-out forwards;
}

@keyframes draw-chart {
    to {
        stroke-dashoffset: 0;
    }
}

/* Sword Glow */
.sword-glow {
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.5));
}

.sword-glow:hover {
    animation: sword-shake 0.3s ease-in-out;
}

@keyframes sword-shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(2deg);
    }

    75% {
        transform: rotate(-2deg);
    }
}

.energy-ring {
    animation: energy-expand 2s ease-out infinite;
    transform-origin: center;
}

@keyframes energy-expand {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-top {
    opacity: 0;
    transform: translateY(60px);
    transition: all 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-top.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.stagger-reveal>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-reveal.active>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-reveal.active>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-reveal.active>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-reveal.active>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-reveal.active>* {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Button Hover Effects ===== */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

/* ===== Navigation ===== */
nav {
    background: transparent;
    backdrop-filter: none;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

nav.nav-scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--nl-dark-900);
}

::-webkit-scrollbar-thumb {
    background: var(--nl-dark-600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--nl-orange-600);
}

/* ===== Selection Color ===== */
::selection {
    background: var(--nl-orange-500);
    color: white;
}

/* ===== Responsive Adjustments ===== */
/* Hero Image Floating Animation */
@keyframes hero-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-float-slow {
    animation: hero-float 6s ease-in-out infinite;
}

.hero-float-slower {
    animation: hero-float 8s ease-in-out infinite reverse;
}

@media (max-width: 768px) {

    .service-card:hover,
    .feature-card:hover {
        transform: none;
    }
}

/* ===== Loading Animation ===== */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

/* ===== Gradient Text ===== */
.gradient-text-orange {
    background: linear-gradient(135deg, var(--nl-orange-400), var(--nl-orange-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Glass Effect ===== */
.glass {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Card SVG Animations ===== */
.card-svg-animate {
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.4));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: svg-pulse-glow 3s ease-in-out infinite;
}

.card-svg-animate:hover {
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.7));
    transform: scale(1.05);
}

.card-svg-float {
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.5));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: svg-float 4s ease-in-out infinite;
}

.card-svg-float:hover {
    filter: drop-shadow(0 0 25px rgba(249, 115, 22, 0.8));
    animation-play-state: paused;
    transform: scale(1.08);
}

.sword-hover:hover {
    animation: sword-shake 0.4s ease-in-out;
}

@keyframes svg-pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 16px rgba(249, 115, 22, 0.6));
    }
}

@keyframes svg-float {

    0%,
    100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.5));
    }

    50% {
        transform: translateY(-8px);
        filter: drop-shadow(0 0 18px rgba(249, 115, 22, 0.7));
    }
}

/* Logo Marquee Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 40s linear infinite;
    /* Ensure the width is enough to contain two sets of logos */
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.animate-scroll-reverse {
    animation: scroll-reverse 40s linear infinite;
}