/* Custom styles for Anchor Rehabilitation */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Geometric decoration elements */
.geo-diamond {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(20, 184, 166, 0.05));
    transform: rotate(45deg);
    pointer-events: none;
}

/* Card glow effect */
.card-glow {
    position: relative;
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.3), transparent, rgba(45, 212, 191, 0.1));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* Gradient border effect */
.gradient-border {
    position: relative;
    background: rgba(15, 23, 42, 0.8);
}

.gradient-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.3), transparent, rgba(45, 212, 191, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Noise texture overlay */
.noise-overlay {
    position: relative;
}

.noise-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Text stroke effect */
.text-stroke {
    -webkit-text-stroke: 1px rgba(45, 212, 191, 0.3);
    color: transparent;
}

/* Animated gradient border */
@keyframes border-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Selection color */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: white;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .float-1, .float-2, .float-3, .float-4 {
        animation: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
