/* VyoMax Design System - Dark Futuristic Theme with Neon Accents */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@500;600;700;800&display=swap');

:root {
    --background: 222 47% 6%;
    --foreground: 210 40% 98%;

    --card: 222 47% 8%;
    --card-foreground: 210 40% 98%;

    --popover: 222 47% 8%;
    --popover-foreground: 210 40% 98%;

    --primary: 186 100% 50%;
    --primary-foreground: 222 47% 6%;

    --secondary: 270 100% 65%;
    --secondary-foreground: 210 40% 98%;

    --muted: 222 30% 15%;
    --muted-foreground: 215 20% 65%;

    --accent: 186 100% 50%;
    --accent-foreground: 222 47% 6%;

    --destructive: 0 84% 60%;
    --destructive-foreground: 210 40% 98%;

    --border: 222 30% 18%;
    --input: 222 30% 18%;
    --ring: 186 100% 50%;

    --radius: 0.75rem;

    /* Neon glow colors */
    --neon-cyan: 186 100% 50%;
    --neon-purple: 270 100% 65%;
    --neon-pink: 330 100% 60%;

    /* Glass effect */
    --glass-bg: 222 47% 10%;
    --glass-border: 222 30% 25%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: hsl(var(--border));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
.font-display {
    font-family: 'Orbitron', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 5rem 1rem;
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 8rem 1rem;
    }
}

/* Glassmorphism card */
.glass-card {
    background: hsla(var(--card) / 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid hsla(var(--border) / 0.5);
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px 0 hsla(222 47% 6% / 0.37);
}

/* Neon glow effects */
.neon-glow {
    box-shadow: 0 0 5px hsl(var(--primary)),
        0 0 20px hsla(var(--primary) / 0.5),
        0 0 40px hsla(var(--primary) / 0.3);
}

.neon-glow-purple {
    box-shadow: 0 0 5px hsl(var(--secondary)),
        0 0 20px hsla(var(--secondary) / 0.5),
        0 0 40px hsla(var(--secondary) / 0.3);
}

.neon-text {
    text-shadow: 0 0 10px hsl(var(--primary)),
        0 0 20px hsla(var(--primary) / 0.5),
        0 0 40px hsla(var(--primary) / 0.3);
}

.neon-text-purple {
    text-shadow: 0 0 10px hsl(var(--secondary)),
        0 0 20px hsla(var(--secondary) / 0.5),
        0 0 40px hsla(var(--secondary) / 0.3);
}

/* Gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg,
            hsl(var(--background)) 0%,
            hsl(222 47% 10%) 50%,
            hsl(var(--background)) 100%);
}

.gradient-text {
    background: linear-gradient(135deg,
            hsl(var(--primary)) 0%,
            hsl(var(--secondary)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Hover effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px hsla(var(--primary) / 0.2);
}

/* Button variants */
.btn-neon {
    position: relative;
    overflow: hidden;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
    color: hsl(var(--primary-foreground));
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-neon:hover {
    box-shadow: 0 0 20px hsla(var(--primary) / 0.5),
        0 0 40px hsla(var(--secondary) / 0.3);
    transform: scale(1.02);
}

.btn-outline-neon {
    position: relative;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid hsl(var(--primary));
    color: hsl(var(--primary));
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-outline-neon:hover {
    background: hsla(var(--primary) / 0.1);
    box-shadow: 0 0 20px hsla(var(--primary) / 0.3);
}

/* Grid pattern overlay */
.grid-pattern {
    background-image:
        linear-gradient(hsla(var(--border) / 0.3) 1px, transparent 1px),
        linear-gradient(90deg, hsla(var(--border) / 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    /* Make navbar background transparent so the "island" stands out */
    background: transparent;
    border-bottom: none;
    /* Remove the full-width border */
    padding-top: 1rem;
    /* Push it down slightly */
}

.navbar-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Pushes Logo left, CTA right */
    height: 4rem;
    position: relative;
    /* Needed for centering the island */
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.navbar-links {
    display: none;
    /* Hidden on mobile */

    /* Absolute Center Positioning */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    /* Glassmorphism Pill Style */
    background: hsla(var(--card) / 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid hsla(var(--border) / 0.4);
    padding: 0.35rem;
    /* Padding inside the island */
    border-radius: 9999px;
    /* Full pill shape */
    gap: 0.25rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    /* Drop shadow */
}

@media (min-width: 1024px) {
    .navbar-links {
        display: flex;
        /* Show only on desktop */
    }
}

/* Individual Links */
.navbar-link {
    position: relative;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 9999px;
    /* Rounded pill shape for links */
    text-decoration: none;
    color: hsl(var(--muted-foreground));
}

/* Hover State */
.navbar-link:hover {
    color: hsl(var(--foreground));
    background: hsla(var(--foreground) / 0.05);
    /* Subtle white hover */
}

/* Active State (The Blue Pill) */
.navbar-link.active {
    color: hsl(var(--primary));
    /* Cyan Text */
    background: hsla(var(--primary) / 0.15);
    /* Dark Cyan Background */
    border: 1px solid hsla(var(--primary) / 0.2);
    /* Subtle Border */
    box-shadow: 0 0 15px hsla(var(--primary) / 0.1);
    /* Glow */
}

/* Remove the old "dot" active style if it exists */
.navbar-link.active::after {
    display: none !important;
}

.mobile-menu-btn {
    display: block;
    padding: 0.5rem;
    background: none;
    border: none;
    color: hsl(var(--foreground));
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    background: hsla(var(--card) / 0.4);
    backdrop-filter: blur(16px);
    border-top: 1px solid hsla(var(--border) / 0.3);
    padding: 1.5rem 1rem;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.75rem;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    color: hsl(var(--primary));
    background: hsla(var(--primary) / 0.1);
}

/* Footer */
.footer {
    position: relative;
    border-top: 1px solid hsla(var(--border) / 0.3);
    background: hsla(var(--card) / 0.2);
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsl(var(--background)), transparent);
    pointer-events: none;
}

.footer-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
}

.footer-section p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: hsl(var(--primary));
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid hsla(var(--border) / 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: hsla(var(--muted) / 0.5);
    color: hsl(var(--muted-foreground));
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: hsl(var(--primary));
    background: hsla(var(--primary) / 0.1);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes gradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Utility classes */
.text-primary {
    color: hsl(var(--primary));
}

.text-secondary {
    color: hsl(var(--secondary));
}

.text-muted {
    color: hsl(var(--muted-foreground));
}

.bg-muted {
    background-color: hsl(var(--muted));
}

.border-border {
    border-color: hsl(var(--border));
}

/* Form elements */
input,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

label {
    display: block;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

/* Grid layouts */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .grid-cols-sm-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .grid-cols-md-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-cols-md-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-cols-lg-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* Flexbox utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

/* Spacing */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-12 {
    padding: 3rem;
}

/* Text sizes */
.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

@media (min-width: 768px) {
    .text-md-4xl {
        font-size: 2.25rem;
    }

    .text-md-5xl {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .text-lg-6xl {
        font-size: 3.75rem;
    }

    .text-lg-7xl {
        font-size: 4.5rem;
    }
}

/* Marquee Animation */
.marquee-mask {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 2rem 0;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Ensure cards in marquee have fixed width to look consistent */
.marquee-track .glass-card {
    width: 350px;
    flex-shrink: 0;
    white-space: normal;
    /* Allow text to wrap inside the card */
}


/* Responsive */
@media (max-width: 640px) {
    .text-4xl {
        font-size: 1.875rem;
    }

    .text-5xl {
        font-size: 2.25rem;
    }

    .text-6xl {
        font-size: 2.5rem;
    }
}

/* Particle canvas */
#particle-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border-radius: 9999px;
    border: 2px solid hsla(var(--primary) / 0.5);
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.scroll-indicator::before {
    content: '';
    width: 4px;
    height: 8px;
    border-radius: 9999px;
    background: hsl(var(--primary));
    animation: float 2s ease-in-out infinite;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: hsl(var(--primary));
    border: 1px solid hsla(var(--primary) / 0.3);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: hsl(var(--primary));
    animation: pulse 2s ease-in-out infinite;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
}

/* Gradient orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(128px);
    animation: pulse 4s ease-in-out infinite;
}

.gradient-orb-primary {
    background: hsla(var(--primary) / 0.2);
}

.gradient-orb-secondary {
    background: hsla(var(--secondary) / 0.2);
}

/* Icon styles */
.icon {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    vertical-align: middle;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

/* Visibility utilities */
.hidden {
    display: none;
}

@media (min-width: 1024px) {
    .lg\:block {
        display: block;
    }
}

/* Main content padding */
main {
    padding-top: 5rem;
    min-height: 100vh;
}

/* Relative positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Min height */
.min-h-screen {
    min-height: 100vh;
}

/* Opacity */
.opacity-20 {
    opacity: 0.2;
}

.opacity-50 {
    opacity: 0.5;
}

/* Leading */
.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

/* Font weights */
.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Max width */
.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Space between */
.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.space-y-8>*+* {
    margin-top: 2rem;
}

/* Rounded */
.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Border */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-t {
    border-top-width: 1px;
}

.border-y {
    border-top-width: 1px;
    border-bottom-width: 1px;
}

/* Width */
.w-full {
    width: 100%;
}

/* Height */
.h-12 {
    height: 3rem;
}

.h-48 {
    height: 12rem;
}

/* Flex wrap */
.flex-wrap {
    flex-wrap: wrap;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Group hover (simplified) */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:text-primary {
    color: hsl(var(--primary));
}

/* Transition */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* In view animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Blur Text Animation */
.blur-word {
    display: inline-block;
    /* Required for transform to work */
    white-space: pre;
    /* Preserves spaces between words */
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-50px);
    /* Start position: pushed up */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, filter, opacity;
}

/* The state when the text becomes visible */
.blur-word.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Ensure gradient text still works with the animation */
.gradient-text .blur-word {
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#circular-gallery-container {
    width: 100%;
    height: 60vh;
    /* Adjust height as needed */
    min-height: 500px;
    position: relative;
    overflow: hidden;
    cursor: grab;
    z-index: 10;
    /* Mask edges to blend with background */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

#circular-gallery-container:active {
    cursor: grabbing;
}

#circular-gallery-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Tilted Card Effect - Adapted for VyoMax */
.tilted-card-figure {
    position: relative;
    width: 100%;
    height: 100%;
    /* Ensures it fills the grid cell */
    perspective: 1000px;
    /* Creates the 3D space */
    cursor: pointer;
    /* Override default glass-card padding to let inner wrapper handle it */
    padding: 0 !important;
}

.tilted-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    /* We use a transition here to simulate the 'spring' damping of React Motion */
    transition: transform 0.1s ease-out;
    border-radius: inherit;
}

/* This layer pops the text/emoji off the background */
.tilted-content-layer {
    transform: translateZ(30px);
    /* Pushes content towards viewer */
    pointer-events: none;
    /* Prevents text selection flickering */
}

/* --- Dock Menu Styles --- */
.dock-wrapper {
    position: fixed;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
    /* Let clicks pass through the empty areas */
}

/* Hide dock on large screens if you only want it for mobile/tablet, 
   or remove this media query to show it everywhere. */
/* @media (min-width: 1024px) {
  .dock-wrapper {
    display: none;
  }
} */

.dock-panel {
    background-color: hsla(var(--card) / 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid hsla(var(--border) / 0.5);
    padding: 0.5rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: flex-end;
    /* Aligns items to bottom so they grow up */
    gap: 0.75rem;
    pointer-events: auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5),
        0 0 10px hsla(var(--primary) / 0.2);
    /* Neon glow */

    /* Horizontal scroll for very small screens */
    max-width: 95vw;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.dock-panel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.dock-item {
    position: relative;
    width: 40px;
    /* Base size */
    height: 40px;
    /* Base size */
    border-radius: 50%;
    background: hsl(var(--muted));
    border: 1px solid hsla(var(--border));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: width 0.1s, height 0.1s, margin-bottom 0.1s;
    /* Smooth return */
    flex-shrink: 0;
    /* Prevent squishing */
}

.dock-item:hover {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 10px hsla(var(--primary) / 0.5);
}

.dock-item.active {
    background: hsla(var(--primary) / 0.1);
    border-color: hsl(var(--primary));
    box-shadow: 0 0 5px hsl(var(--primary));
}

.dock-icon {
    width: 50%;
    height: 50%;
    pointer-events: none;
    color: hsl(var(--foreground));
}

.dock-item.active .dock-icon {
    color: hsl(var(--primary));
}

/* Tooltip Label */
.dock-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: hsl(var(--foreground));
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dock-item:hover .dock-label {
    opacity: 1;
    top: -50px;
    transform: translateX(-50%) scale(1);
}

.mobile-menu-btn {
    display: none !important;
}

/* --- Floating Text Dock Updates --- */

/* 1. Hide the top navbar links (but keep Logo and Get Started) */
.navbar-links {
    display: none !important;
}

/* 2. Force Dock to show on Desktop */
@media (min-width: 1024px) {
    .dock-wrapper {
        display: flex !important;
        /* Override the previous 'display: none' */
    }
}

/* 3. Style the Dock container for Text */
.dock-panel {
    /* Increase padding for a pill-shape container */
    padding: 0.75rem 1.25rem;
    gap: 0.5rem;
    align-items: center;
    /* Center text vertically */
    height: auto;
    /* Let it grow with text */
}

/* 4. Style the Text Items (Replacing the round icon styles) */
.dock-item {
    width: auto !important;
    /* Override JS fixed width */
    height: auto !important;
    /* Override JS fixed height */
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    /* Pill shape */
    background: transparent;
    /* Clean look */
    border: 1px solid transparent;
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    /* Reset margins */
}

/* Hover State */
.dock-item:hover {
    background: hsla(var(--muted) / 0.8);
    color: hsl(var(--foreground));
    transform: translateY(-4px) scale(1.05);
    /* Gentle pop up */
    box-shadow: 0 10px 20px -10px hsla(var(--primary) / 0.3);
    border-color: hsla(var(--border) / 0.5);
}

/* Active State */
.dock-item.active {
    background: hsla(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border-color: hsla(var(--primary) / 0.3);
    box-shadow: 0 0 15px hsla(var(--primary) / 0.2);
    font-weight: 600;
}

/* Hide the old tooltip label since text is now visible */
.dock-label {
    display: none !important;
}

/* Hide the SVG icon since we want names */
.dock-icon {
    display: none !important;
}


/* --- Rotating Text Animation --- */

/* The container keeps the text aligned and hides the 'exit' movement */
.rotating-text-container {
    display: inline-flex;
    position: relative;
    overflow: hidden;
    height: 1.3em;
    /* Matches the line-height of the font */
    vertical-align: bottom;
    min-width: auto;
}

/* Individual characters */
.rotate-char {
    display: inline-block;
    transform: translateY(110%);
    /* Start hidden below */
    opacity: 0;
    /* Start invisible */
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.4s ease-out;
    min-width: 0.2em;
}

.rotate-char.in {
    transform: translateY(0);
    opacity: 1;
}

.rotate-char.out {
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s ease-in, opacity 0.4s ease-in;
}

#rotating-text {
    margin-left: 1.2rem;
    /* adjust as needed */
}


.tilted-card-figure:hover .tilted-card-inner {
    box-shadow:
        0 20px 40px hsla(var(--primary) / 0.25),
        0 0 0 1px hsla(var(--primary) / 0.25),
        0 0 30px hsla(var(--primary) / 0.15);
}

.glass-card.text-center:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px hsla(var(--primary) / 0.25),
        0 0 0 1px hsla(var(--primary) / 0.25),
        0 0 25px hsla(var(--primary) / 0.15);
    border-color: hsla(var(--primary) / 0.4);
}

.glass-card.text-center svg {
    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.glass-card.text-center:hover svg {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px hsla(var(--primary) / 0.6));
}

.glass-card.text-center h3 {
    transition: color 0.3s ease;
}

.glass-card.text-center:hover h3 {
    color: hsl(var(--primary));
}

.glass-card.text-center:hover p {
    color: hsl(var(--muted-foreground));
    transition: color 0.3s ease;
}


/* --- LOADER STYLES --- */

.animate-spin-slow {
    animation: spin 3s linear infinite;
    box-shadow: 0 0 15px hsla(var(--primary) / 0.2);
}

.animate-spin-reverse {
    animation: spin-reverse 2s linear infinite;
    box-shadow: 0 0 15px hsla(var(--secondary) / 0.2);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0f1c;
    /* Matches loader bg */
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    5% {
        clip: rect(70px, 9999px, 90px, 0);
    }

    10% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    15% {
        clip: rect(80px, 9999px, 40px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    100% {
        clip: rect(30px, 9999px, 10px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(10px, 9999px, 60px, 0);
    }

    5% {
        clip: rect(80px, 9999px, 20px, 0);
    }

    10% {
        clip: rect(30px, 9999px, 70px, 0);
    }

    15% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    20% {
        clip: rect(60px, 9999px, 80px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 60px, 0);
    }
}

/* Loader Exit Animation */
.loader-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-out;
}


/* HUD Animations */
.hud-step {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hud-step.hidden {
    display: none;
    opacity: 0;
    transform: translateX(20px);
}

.hud-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: hud-slide-in 0.4s forwards;
}

@keyframes hud-slide-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}




/* --- BLOG SPECIFIC STYLES --- */

/* Reading Progress Bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
}

.reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
  width: 0%;
  box-shadow: 0 0 10px hsl(var(--primary));
  transition: width 0.1s ease-out;
}

/* Blog Content Typography */
.blog-content p {
  color: #cccccc;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.blog-content h2 {
  font-family: 'Orbitron', sans-serif;
  color: white;
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid hsla(var(--border) / 0.5);
}

.blog-content h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: hsl(var(--primary));
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style-type: none;
}

.blog-content li {
  position: relative;
  margin-bottom: 0.5rem;
  color: #cccccc;
}

.blog-content li::before {
  content: '>';
  position: absolute;
  left: -1.5rem;
  color: hsl(var(--primary));
  font-family: monospace;
}

/* Neon Terminal Code Block */
.code-terminal {
  background: #0a0f1c;
  border: 1px solid hsla(var(--border) / 0.5);
  border-radius: 0.75rem;
  margin: 2rem 0;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.terminal-header {
  background: hsla(var(--card) / 0.8);
  padding: 0.5rem 1rem;
  border-bottom: 1px solid hsla(var(--border) / 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'Fira Code', monospace; /* Fallback to monospace */
  font-size: 0.9rem;
  color: #a5b3ce;
  overflow-x: auto;
}

.code-keyword { color: #c678dd; } /* Purple */
.code-function { color: #61afef; } /* Blue */
.code-string { color: #98c379; }   /* Green */