body {
    font-family: 'Inter', sans-serif;
    background-color: #050505;
    color: #fafafa;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth Fade In Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.delay-700 {
    animation-delay: 0.7s;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

/* Subtle Gradients */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-orange {
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Background Grid */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Card Hover Glow */
.card-hover:hover {
    box-shadow: 0 0 30px -10px rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
}

/* --- NEW CYBER EFFECTS --- */

/* 1. Mouse-Tracking Glow */
.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, -50%);
    left: var(--mouse-x, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

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

/* 2. AI Scanner */
.scan-line {
    position: relative;
    overflow: hidden;
}



/* 3. Glitch Effect (Cyber Security) */
.glitch-text {
    position: relative;
    display: inline-block;
}

.card-hover:hover .glitch-text::before,
.card-hover:hover .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #09090b;
    /* Match card bg */
    clip: rect(0, 0, 0, 0);
}

.card-hover:hover .glitch-text::before {
    left: -2px;
    text-shadow: 1px 0 #22c55e;
    /* Green-500 */
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.card-hover:hover .glitch-text::after {
    left: 2px;
    text-shadow: -1px 0 #4ade80;
    /* Green-400 */
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 15px, 0);
    }

    20% {
        clip: rect(60px, 9999px, 80px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 55px, 0);
    }

    60% {
        clip: rect(85px, 9999px, 90px, 0);
    }

    80% {
        clip: rect(35px, 9999px, 45px, 0);
    }

    100% {
        clip: rect(70px, 9999px, 20px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(15px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(75px, 9999px, 25px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 60px, 0);
    }

    60% {
        clip: rect(50px, 9999px, 10px, 0);
    }

    80% {
        clip: rect(30px, 9999px, 80px, 0);
    }

    100% {
        clip: rect(85px, 9999px, 45px, 0);
    }
}

/* 4. Data Pulse (Marketing) */
.data-bar {
    width: 4px;
    background: #f97316;
    border-radius: 2px;
    animation: dataPulse 1s ease-in-out infinite;
}

.data-bar:nth-child(1) {
    height: 12px;
    animation-delay: 0s;
}

.data-bar:nth-child(2) {
    height: 18px;
    animation-delay: 0.2s;
}

.data-bar:nth-child(3) {
    height: 10px;
    animation-delay: 0.4s;
}

@keyframes dataPulse {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1.5);
        opacity: 1;
    }
}

/* 5. Typing Cursor (Web Dev) */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: #f97316;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* 6. AI Automation Sequence */
.auto-step {
    transition: all 0.3s;
}

.card-hover:hover .auto-step {
    animation: sequencePulse 2s infinite;
}

.auto-step:nth-child(1) {
    animation-delay: 0s;
}

.auto-step:nth-child(2) {
    animation-delay: 0.5s;
}

.auto-step:nth-child(3) {
    animation-delay: 1.0s;
}

.auto-step:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes sequencePulse {

    0%,
    100% {
        border-color: rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.05);
    }

    50% {
        border-color: rgba(249, 115, 22, 0.5);
        background: rgba(249, 115, 22, 0.1);
        color: white;
    }
}

/* 7. Security Lock Pulse */
.security-icon {
    transition: all 0.3s ease;
}

.card-hover:hover .security-icon {
    color: #22c55e !important;
    /* Green */
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
    animation: lockPulse 2s infinite ease-in-out;
}

@keyframes lockPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    0%,
    20%,
    40%,
    60%,
    80%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(0);
    }
}

/* 8. AI Bot Float */
.bot-icon {
    transition: all 0.5s ease;
}

.card-hover:hover .bot-icon {
    color: #f97316;
    /* Orange */
    animation: botFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(249, 115, 22, 0.5));
}

@keyframes botFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-6px) rotate(5deg);
    }
}

/* 9. Feature Icon Neuro-Activation */
.feature-icon-box {
    transition: all 0.3s ease;
}

.feature-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover .feature-icon-box {
    background-color: rgba(249, 115, 22, 0.15) !important;
    border: 1px solid rgba(249, 115, 22, 0.3) !important;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.1);
}

.card-hover:hover .feature-icon {
    color: #f97316;
    transform: scale(1.15);
    filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.5));
}

/* Spin for CPU icon */
.card-hover:hover .feature-icon.icon-spin {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg) scale(1.15);
    }

    to {
        transform: rotate(360deg) scale(1.15);
    }
}

/* Cyber Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(4px);
    will-change: transform, opacity, filter;
}

.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Stagger delays for grid items */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* --- NEW REQUESTED EFFECTS (2, 3, 4) --- */

/* 2. Decryption Text Effect */
.decrypt-text {
    font-family: 'Courier New', Courier, monospace;
    /* Tech/Hacker vibe */
    cursor: default;
}

/* 3. Holographic 3D Tilt */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.tilt-content {
    transform: translateZ(20px);
    /* Pop out effect */
}

/* 4. Process Data Flow Beam (Liquid Gradient) */
.process-line-container {
    position: relative;
}

.process-beam {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 2px;
    height: auto;

    /* Liquid Gradient (Vertical) */
    background: linear-gradient(to bottom,
            #f97316,
            /* Orange */
            #ec4899,
            /* Pink */
            #3b82f6,
            /* Blue */
            #f97316
            /* Loop back to Orange */
        );
    background-size: 100% 200%;
    animation: liquidFlowVert 3s linear infinite;
    z-index: 10;

    opacity: 1;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.5);
    border-radius: 4px;
}

@media (min-width: 768px) {
    .process-beam {
        top: -1px;
        left: 0;
        right: 0;
        width: auto;
        height: 2px;

        /* Liquid Gradient (Horizontal) */
        background: linear-gradient(to right,
                #f97316,
                #ec4899,
                #3b82f6,
                #f97316);
        background-size: 200% 100%;
        animation: liquidFlowHoriz 3s linear infinite;
    }
}

@keyframes liquidFlowVert {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 200%;
    }
}

@keyframes liquidFlowHoriz {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* 5. AI Workflow Card Animations */
.workflow-node {
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.workflow-node::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.2);
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
}

.card-hover:hover .workflow-node::after {
    opacity: 1;
    transform: scale(1.2);
    animation: nodePulse 2s infinite;
}

.workflow-connector {
    position: relative;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    flex-grow: 1;
    margin: 0 10px;
}

.data-packet {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40px;
    background: linear-gradient(90deg, transparent, #f97316, transparent);
    transform: translateX(-100%);
    animation: packetFlow 2s infinite linear;
}



.data-packet.delay-1 {
    animation-delay: 1s;
}

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

    100% {
        transform: translateX(200%);
    }

    /* Ensure it goes fully across */
}

@keyframes nodePulse {

    0%,
    100% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.2;
    }
}

.terminal-text::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: #f97316;
}


#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- CYBER SECURITY LIVE HUB --- */
.cyber-grid-bg {
    background-image:
        linear-gradient(rgba(34, 197, 94, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.threat-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    /* Red-500 */
    border-radius: 50%;
    box-shadow: 0 0 10px #ef4444;
    animation: pulseThreat 2s infinite;
}

@keyframes pulseThreat {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(3);
        opacity: 0;
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.threat-map-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.live-log-entry {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #4ade80;
    /* Green-400 */
    border-left: 2px solid #22c55e;
    padding-left: 8px;
    margin-bottom: 4px;
    opacity: 0;
    animation: slideInLog 0.3s forwards;
}

@keyframes slideInLog {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- TECH STACK MARQUEE --- */
.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 2rem;
    animation: scroll 20s linear infinite;
    width: max-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    z-index: 100;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

#cookie-banner.show {
    bottom: 0;
}

/* Custom Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader {
    --color-one: #ffbf48;
    --color-two: #be4a1d;
    --color-three: #ffbf4780;
    --color-four: #bf4a1d80;
    --color-five: #ffbf4740;
    --time-animation: 2s;
    --size: 1;
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transform: scale(var(--size));
    box-shadow:
        0 0 25px 0 var(--color-three),
        0 20px 50px 0 var(--color-four);
    animation: colorize calc(var(--time-animation) * 3) ease-in-out infinite;
}

.loader::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border-top: solid 1px var(--color-one);

    /* --- Magnetic Button Effect --- */
    .magnet-button {
        display: inline-flex;
        transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
    }

    box-shadow: inset 0 10px 10px 0 var(--color-three),
    inset 0 -10px 10px 0 var(--color-four);
    z-index: 1;
}

.loader .box {
    width: 100px;
    height: 100px;
    background: linear-gradient(180deg,
            var(--color-one) 30%,
            var(--color-two) 70%);
    mask: url(#clipping);
    -webkit-mask: url(#clipping);
}

.loader svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
}

.loader svg #clipping {
    filter: contrast(15);
    animation: roundness calc(var(--time-animation) / 2) linear infinite;
}

.loader svg #clipping polygon {
    filter: blur(7px);
}

.loader svg #clipping polygon:nth-child(1) {
    transform-origin: 75% 25%;
    transform: rotate(90deg);
}

.loader svg #clipping polygon:nth-child(2) {
    transform-origin: 50% 50%;
    animation: rotation var(--time-animation) linear infinite reverse;
}

.loader svg #clipping polygon:nth-child(3) {
    transform-origin: 50% 60%;
    animation: rotation var(--time-animation) linear infinite;
    animation-delay: calc(var(--time-animation) / -3);
}

.loader svg #clipping polygon:nth-child(4) {
    transform-origin: 40% 40%;
    animation: rotation var(--time-animation) linear infinite reverse;
}

.loader svg #clipping polygon:nth-child(5) {
    transform-origin: 40% 40%;
    animation: rotation var(--time-animation) linear infinite reverse;
    animation-delay: calc(var(--time-animation) / -2);
}

.loader svg #clipping polygon:nth-child(6) {
    transform-origin: 60% 40%;
    animation: rotation var(--time-animation) linear infinite;
}

.loader svg #clipping polygon:nth-child(7) {
    transform-origin: 60% 40%;
    animation: rotation var(--time-animation) linear infinite;
    animation-delay: calc(var(--time-animation) / -1.5);
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes roundness {
    0% {
        filter: contrast(15);
    }

    20% {
        filter: contrast(3);
    }

    40% {
        filter: contrast(3);
    }

    60% {
        filter: contrast(15);
    }

    100% {
        filter: contrast(15);
    }
}

@keyframes colorize {
    0% {
        filter: hue-rotate(0deg);
    }

    20% {
        filter: hue-rotate(-30deg);
    }

    40% {
        filter: hue-rotate(-60deg);
    }

    60% {
        filter: hue-rotate(-90deg);
    }

    80% {
        filter: hue-rotate(-45deg);
    }

    100% {
        filter: hue-rotate(0deg);
    }
}