/* Custom CSS for Sterling Gate Trading Website */

/* Glass morphism effect */
.glass-effect {
    background: rgba(26, 34, 51, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero background */
.hero-bg {
    background: radial-gradient(circle at top right, rgba(17, 82, 212, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(17, 82, 212, 0.05), transparent 40%);
}

/* Glass panel effect */
.glass-panel {
    background: rgba(17, 82, 212, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #101622;
}

::-webkit-scrollbar-thumb {
    background: #2d3748;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}

/* Custom scrollbar for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #2d3748 #101622;
}

/* Accordion transition styles */
details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

details[open] summary ~ * {
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Perspective for 3D effects */
.perspective-1000 {
    perspective: 1000px;
}

/* Rotate utilities */
.rotate-y-6 {
    transform: rotateY(6deg);
}

.rotate-x-2 {
    transform: rotateX(2deg);
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* Animation utilities */
.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Form focus styles */
.form-input:focus {
    outline: none;
    ring: 2px;
    ring-color: #1152d4;
    border-color: #1152d4;
}

/* Button hover animations */
.btn-hover-animate {
    transition: all 0.3s ease;
}

.btn-hover-animate:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(17, 82, 212, 0.3);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Dark mode card hover */
.dark .card-hover:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Gradient text animation */
.gradient-text-animate {
    background: linear-gradient(45deg, #1152d4, #3a74eb, #1152d4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

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

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1152d4;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark mode spinner */
.dark .spinner {
    border: 2px solid #1a2233;
    border-top: 2px solid #1152d4;
}

/* Mobile menu transitions */
.mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.mobile-menu.open {
    max-height: 400px;
}

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

/* Focus visible for accessibility */
.focus-visible {
    outline: 2px solid #1152d4;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-effect,
    .glass-panel {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid white;
    }
}

/* Reduced motion support */
@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;
    }
}

/* Mobile menu enhancements */
@media (max-width: 767px) {
    #navbar-sticky {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 34, 51, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .dark #navbar-sticky {
        background: rgba(16, 22, 34, 0.95);
    }
    
    #navbar-sticky ul {
        padding: 1rem;
    }
    
    #navbar-sticky li {
        margin-bottom: 0.5rem;
    }
    
    #navbar-sticky a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        transition: all 0.2s ease;
    }
    
    #navbar-sticky a:hover {
        background: rgba(17, 82, 212, 0.1);
        color: #1152d4;
    }
    
    .dark #navbar-sticky a:hover {
        background: rgba(17, 82, 212, 0.2);
    }
}

/* Mobile menu animation */
#navbar-sticky {
    transition: all 0.3s ease;
    transform-origin: top;
}

#navbar-sticky.hidden {
    opacity: 0;
    transform: scaleY(0);
    pointer-events: none;
}

#navbar-sticky.block {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
}

/* Hamburger menu animation */
[data-collapse-toggle="navbar-sticky"] {
    transition: all 0.2s ease;
}

[data-collapse-toggle="navbar-sticky"]:hover {
    background: rgba(17, 82, 212, 0.1);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}