/* style.css - Complex specific styling and resets outside Tailwind limits */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #080808;
}

/* Background Noise Generator */
.noise-bg {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.035;
    mix-blend-mode: overlay;
    z-index: 100;
    pointer-events: none;
}

/* Reveal Animations setup (Intersection Observer logic handles the classes) */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0ms);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic Buttons */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Bento Card Logic for advanced mouse glow */
.bento-card {
    position: relative;
    border-radius: 1.5rem;
    transition: background-color 0.5s, border-color 0.5s;
    /* Use will-change sparingly, only on things that animate constantly */
    will-change: transform;
}

/* Before pseudo element holds the radial gradient for the mouse effect */
.bento-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px; /* border width */
    background: radial-gradient(
        600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(186, 158, 255, 0.15), /* purple focus */
        transparent 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 2;
}

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

/* Internal Glow */
.bento-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(255, 255, 255, 0.03),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

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

.animate-gradient-x {
    animation: gradient-x 6s linear infinite;
    background-size: 200% auto;
}

@keyframes gradient-x {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

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

/* Gradient Text Selection overrides */
::selection {
    background: #ceee93; /* brand-green */
    color: #41590f;
}

/* Hide scrollbars for Marquee */
.marquee {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.marquee::-webkit-scrollbar {
    display: none;
}

/* Nav Reveal Animation on load */
.nav-reveal {
    animation: navDrop 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes navDrop {
    0% { transform: translate(-50%, -150%); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}
