/* BBind Landing Page Styles - Framer Inspired Design with ShadCN Aesthetics */

/* Color Palette */
:root {
    --background: 0 0% 0%;           /* Pure black */
    --foreground: 0 0% 98%;          /* Almost white */
    --card: 0 0% 3.9%;               /* Dark charcoal */
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;             /* White for primary actions */
    --primary-foreground: 0 0% 9%;   /* Dark text on white */
    --secondary: 0 0% 14.9%;         /* Medium charcoal */
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;  /* Gray text */
    --accent: 0 0% 14.9%;
    --accent-foreground: 0 0% 98%;
    --border: 0 0% 14.9%;
    --input: 0 0% 14.9%;
    --ring: 0 0% 83.1%;
}

/* Base Styles */
body {
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gradient Text Effects - Subtle monochrome */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1a1 50%, #525252 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 8s ease-in-out infinite;
}

.gradient-bg {
    background: linear-gradient(135deg, #262626 0%, #171717 50%, #0a0a0a 100%);
}

/* Modern Glass Effects - ShadCN Style */
.glass-effect {
    backdrop-filter: blur(24px) saturate(180%);
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.glass-card {
    backdrop-filter: blur(20px);
    background: rgba(23, 23, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-blur {
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero Section - Framer Style */
.hero-bg {
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(38, 38, 38, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(23, 23, 23, 0.3) 0%, transparent 50%),
        #000000;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Minimalistic animated background - Framer inspired */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(64, 64, 64, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(38, 38, 38, 0.12) 0%, transparent 50%);
    animation: subtleDrift 20s ease-in-out infinite;
    mix-blend-mode: screen;
}

/* Grid Pattern Overlay - Like Framer */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 100%);
}

/* Minimalistic Floating Elements - Monochrome */
.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    animation: subtleFloat 15s ease-in-out infinite;
    filter: blur(40px);
}

.orb-1 {
    width: 300px;
    height: 300px;
    top: 15%;
    right: 15%;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    bottom: 25%;
    left: 15%;
    animation-delay: 5s;
    background: radial-gradient(circle, rgba(82, 82, 82, 0.06) 0%, transparent 70%);
}

/* Subtle accent dots - monochrome */
.dot {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.dot-1 { 
    width: 3px; 
    height: 3px; 
    top: 25%; 
    left: 75%; 
    animation-delay: 0s; 
}

.dot-2 { 
    width: 2px; 
    height: 2px; 
    top: 60%; 
    left: 15%; 
    animation-delay: 2s; 
}

.dot-3 { 
    width: 2px; 
    height: 2px; 
    top: 40%; 
    left: 85%; 
    animation-delay: 4s; 
}

/* Card Effects - Framer + ShadCN Style */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
    background: linear-gradient(
        135deg,
        rgba(38, 38, 38, 0.4) 0%,
        rgba(23, 23, 23, 0.3) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transform: translateY(20px);
    opacity: 0;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.card-hover.revealed {
    transform: translateY(0);
    opacity: 1;
}

/* Ensure hover state only applies when revealed */
.card-hover.revealed:hover {
    transform: translateY(-8px);
    backdrop-filter: blur(20px);
    background: linear-gradient(
        135deg,
        rgba(64, 64, 64, 0.5) 0%,
        rgba(38, 38, 38, 0.4) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Subtle glow effect on hover */
.card-hover.revealed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover.revealed:hover::after {
    opacity: 1;
}

/* Accent glow - Monochrome */
.blue-glow {
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 8px 32px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(
        135deg,
        rgba(64, 64, 64, 0.3) 0%,
        rgba(38, 38, 38, 0.3) 100%
    );
}

/* Section backgrounds - ShadCN inspired */
.section-dark {
    background: 
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(38, 38, 38, 0.15) 0%, transparent 100%),
        #000000;
    backdrop-filter: blur(1px);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Text effects - Subtle */
.text-glow {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

/* Button styles - ShadCN + Framer aesthetic */
.btn-glass {
    backdrop-filter: blur(16px);
    background: rgba(38, 38, 38, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.btn-glass:hover {
    backdrop-filter: blur(20px);
    background: rgba(64, 64, 64, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.03);
}

.btn-primary {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(245, 245, 245, 0.95) 100%
    );
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(250, 250, 250, 1) 100%
    );
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Progressive reveal animations */
.reveal-element {
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-element.revealed {
    transform: translateY(0);
    opacity: 1;
}

/* Immediate animations for hero elements */
.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* Keyframe Animations - Smooth & Minimal */
@keyframes fadeInUp {
    0% { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInLeft {
    0% { 
        opacity: 0; 
        transform: translateX(-30px); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes fadeInRight {
    0% { 
        opacity: 0; 
        transform: translateX(30px); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes subtleFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px); 
    }
    25% { 
        transform: translateY(-8px) translateX(4px); 
    }
    50% { 
        transform: translateY(-15px) translateX(-4px); 
    }
    75% { 
        transform: translateY(-8px) translateX(4px); 
    }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1); 
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.15); 
    }
}

@keyframes subtleDrift {
    0%, 100% { 
        transform: translateX(0) translateY(0) scale(1); 
    }
    25% { 
        transform: translateX(20px) translateY(-10px) scale(1.05); 
    }
    50% { 
        transform: translateX(-10px) translateY(-20px) scale(1); 
    }
    75% { 
        transform: translateX(-20px) translateY(-10px) scale(1.05); 
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.2; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.2); 
    }
}

@keyframes gradientShift {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

/* Smooth icon animations */
@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-hover {
        backdrop-filter: blur(12px);
    }
    
    .hero-bg::before {
        background-size: 30px 30px;
    }
    
    .orb {
        filter: blur(30px);
    }
}

/* Custom Scrollbar - ShadCN Style */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--muted));
    border-radius: 5px;
    border: 2px solid hsl(var(--background));
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--muted-foreground));
}

/* Selection color */
::selection {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
