@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Raleway:wght@100;200;300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Tailwind Directives (if using CLI, but here just custom overrides) */
body {
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: white;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Locomotive Scroll Fixes */
html.has-scroll-smooth {
    overflow: hidden;
}

html.has-scroll-dragging {
    user-select: none;
}

[data-scroll-container] {
    perspective: 1px;
}

/* 3D Canvas */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

/* --- Branded Loader --- */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.brand-loader-svg {
    width: 150px;
    height: auto;
    overflow: visible;
}

.brand-path {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawBrand 2s ease-in-out forwards;
}

.brand-fill {
    fill: #fff;
    opacity: 0;
    animation: fillBrand 1s ease-out 2s forwards;
}

@keyframes drawBrand {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fillBrand {
    to {
        opacity: 1;
    }
}

/* --- Mega Menu --- */
.mega-menu-group {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 600px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.mega-menu-group:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-item {
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mega-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mega-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: white;
}

.mega-content h4 {
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 2px;
}

.mega-content p {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.3;
}

.mega-menu.wide {
    width: 800px;
    grid-template-columns: repeat(3, 1fr);
}

.project-thumb {
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.project-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.mega-item:hover .project-thumb::after {
    background: rgba(0, 0, 0, 0);
}

/* --- Video Cards & Testimonials --- */
.video-card-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 16/9;
    background: #111;
}

.video-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.5s, transform 0.7s;
}

.group:hover .video-card-bg {
    opacity: 0.3;
    transform: scale(1.05);
}

.video-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.play-btn-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.group:hover .play-btn-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    color: black;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Bento Grid Expertise */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 300px);
    }

    .bento-item:nth-child(1) {
        grid-column: span 2;
    }

    .bento-item:nth-child(4) {
        grid-column: span 2;
    }
}

.bento-item {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.bento-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 150px;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    transition: transform 0.5s;
}

.bento-item:hover .bento-bg-icon {
    transform: scale(1.1) rotate(-10deg);
}

/* Floating Button */
.floating-btn-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 10px;
}

.pulse-btn {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    position: relative;
    transition: transform 0.3s;
}

.pulse-btn::before,
.pulse-btn::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid white;
    opacity: 0;
    animation: pulse-ring 2s infinite;
}

.pulse-btn::after {
    animation-delay: 1s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.welcome-bubble {
    background: white;
    color: black;
    padding: 10px 20px;
    border-radius: 20px 20px 0 20px;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.welcome-bubble.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glitch & Badges */
.hero-badge {
    position: absolute;
    padding: 8px 16px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    animation: float-badge 6s ease-in-out infinite;
}

.hero-badge i {
    color: gold;
}

.badge-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.badge-2 {
    top: 60%;
    right: 10%;
    animation-delay: -2s;
}

.badge-3 {
    bottom: 15%;
    left: 20%;
    animation-delay: -4s;
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip-path: polygon(0 15%, 100% 15%, 100% 40%, 0 40%);
    }

    100% {
        clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip-path: polygon(0 60%, 100% 60%, 100% 65%, 0 65%);
    }

    100% {
        clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
    }
}

/* Trusted Avatars */
.trusted-avatars {
    display: flex;
    align-items: center;
}

.avatar-group {
    display: flex;
    padding-left: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #000;
    background-size: cover;
    margin-left: -10px;
    position: relative;
    transition: transform 0.2s;
}

.avatar:hover {
    transform: translateY(-5px);
    z-index: 10;
}

.js-tilt-glare {
    border-radius: 1rem;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* --- Hero Concept 1 Additions --- */
.orbit-item {
    transform-origin: center center;
    animation: orbit 20s linear infinite;
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(50px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(50px) rotate(-360deg);
    }

    /* Simplified orbit, complex handled in JS/GSAP */
}

.reveal-text {
    transform: translateY(100%);
    animation: reveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes reveal {
    to {
        transform: translateY(0);
    }
}

.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-pulse {
    animation: glowing 2s infinite;
}

@keyframes glowing {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    }
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}