/* Custom Utility CSS */
:root {
    --brand-blue: #0ea5e9;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100vw !important;
}

body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100vw !important;
}

*, *::before, *::after {
    max-width: 100vw;
    box-sizing: border-box;
}

/* Mobile fix - secciones con overflow horizontal */
@media (max-width: 640px) {
    html, body {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    section {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .absolute {
        max-width: 100vw !important;
    }
    
    .glow-bg {
        max-width: 100vw !important;
    }
}

/* Glassmorphism utility */
.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.2);
}

/* Text Gradients */
.gradient-text {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Background Glow */
.glow-bg {
    position: absolute;
    width: 100vw !important;
    height: 600px;
    left: 0;
    right: 0;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(10, 25, 47, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020617;
}
::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* Parallax Core */
[data-parallax] {
    will-change: transform;
    transition: transform 0.1s cubic-bezier(0.17, 0.67, 0.83, 0.67); /* Smooth lag effect */
    transform: translate3d(0, var(--parallax-y, 0), 0);
}

.parallax-slower { --parallax-speed: -0.15; }
.parallax-slow { --parallax-speed: -0.1; }
.parallax-normal { --parallax-speed: 0.1; }
.parallax-fast { --parallax-speed: 0.15; }

.mask-image-b {
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
