@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
}

body {
    overflow-x: hidden;
    background-color: #FAFAFA;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Base scroll reveal - buttery smooth */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Advanced Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Dark mode glass for dark sections */
.glass-dark {
    background: rgba(9, 9, 11, 0.65);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Bento Box & Premium Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 40px 0 rgba(31, 38, 135, 0.08);
    border: 1px solid rgba(255, 255, 255, 1);
}

/* Feature card hover effect */
.feature-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(79,70,229,0.3), rgba(255,90,95,0.3));
    -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.6s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}
.feature-card:hover::before {
    opacity: 1;
}

/* Premium Gradient Text */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #1E3A8A 0%, #4F46E5 40%, #FF5A5F 100%);
    background-size: 200% auto;
    animation: gradientShift 6s ease-in-out infinite alternate;
}

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

/* Animated Aurora Blobs */
.blob {
    position: absolute;
    filter: blur(140px);
    z-index: 0;
    border-radius: 50%;
    opacity: 0.85;
    animation: blobMorph 15s infinite cubic-bezier(0.4, 0, 0.2, 1) alternate;
    pointer-events: none;
}
.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #1E3A8A, #4F46E5);
    top: -200px;
    left: -200px;
}
.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #FF5A5F, #FF7A59);
    bottom: -100px;
    right: -150px;
    animation-delay: -7.5s;
}

@keyframes blobMorph {
    0% { transform: scale(1) translate(0, 0) rotate(0deg); border-radius: 50%; }
    50% { transform: scale(1.3) translate(80px, 80px) rotate(180deg); border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
    100% { transform: scale(0.9) translate(-40px, -40px) rotate(360deg); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Image hover zoom */
.img-zoom-container {
    overflow: hidden;
}
.img-zoom-container img {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom-container:hover img {
    transform: scale(1.05);
}

/* Floating elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}
.animate-float {
    animation: float 8s ease-in-out infinite;
}

/* Button Glows */
.btn-glow {
    position: relative;
    z-index: 1;
}
.btn-glow::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: inherit;
    filter: blur(12px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}
.btn-glow:hover::before {
    opacity: 0.65;
}

/* Dynamic Spotlight for cards */
.spotlight-wrapper {
    position: relative;
}
.spotlight-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
    border-radius: inherit;
}
.spotlight-wrapper:hover::after {
    opacity: 1;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 1.5rem;
}
.bento-span-2 { grid-column: span 2; }
.bento-span-3 { grid-column: span 3; }
.bento-span-4 { grid-column: span 4; }
.bento-row-span-2 { grid-row: span 2; }

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-span-2, .bento-span-3 { grid-column: span 2; }
}
@media (max-width: 640px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-span-2, .bento-span-3, .bento-span-4 { grid-column: span 1; }
    .bento-row-span-2 { grid-row: span 1; }
}

.frosted-aurora {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(80px) saturate(120%);
    -webkit-backdrop-filter: blur(80px) saturate(120%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
