
/* Custom Scrollbar */
::-webkit-scrollbar { 
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0D1117;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #58A6FF, #2F81F7);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2F81F7, #58A6FF);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(88, 166, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Enhanced Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #58A6FF, #2F81F7, #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    animation: shimmer 3s infinite;
    background: linear-gradient(to right, transparent 0%, rgba(88, 166, 255, 0.3) 50%, transparent 100%);
    background-size: 1000px 100%;
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:hover::after {
    width: 300px;
    height: 300px;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.5),
                0 0 40px rgba(88, 166, 255, 0.3),
                0 0 60px rgba(88, 166, 255, 0.2);
}

/* Parallax Sections */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Selection Color */
::selection {
    background: rgba(88, 166, 255, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(88, 166, 255, 0.3);
    color: white;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid #58A6FF;
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure content is always visible */
#hero {
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

#hero * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force all animated elements to be visible */
.animate-fade-in-up {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    -webkit-transform: translateY(0) !important;
    animation: none !important;
    -webkit-animation: none !important;
}

/* Ensure all sections are visible */
section {
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    * {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Fallback for slow loading */
body {
    background-color: #0D1117;
    color: #8B949E;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
}
