/* ============================================
   HERO SECTION DEMO STYLES
   Modern, Premium, Data Specialist Theme
   ============================================ */

/* Animated Gradient Background */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.bg-gradient-animated {
    background: linear-gradient(
        135deg,
        #0B1F3A 0%,
        #1e3a5f 15%,
        #0EA5E9 35%,
        #FF7A00 55%,
        #1e3a5f 75%,
        #0B1F3A 100%
    );
    background-size: 400% 400%;
    animation: gradient-shift 60s ease infinite;
}

.bg-gradient-overlay {
    background: linear-gradient(
        135deg,
        rgba(11, 31, 58, 0.85) 0%,
        rgba(11, 31, 58, 0.7) 50%,
        rgba(11, 31, 58, 0.85) 100%
    );
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(20px) scale(1.05);
    }
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 10s ease-in-out infinite;
    animation-delay: 1s;
}

/* Fade In Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 1s ease-out forwards;
}

.animate-fade-in-right {
    animation: fade-in-right 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* 3D Card Hover Effect */
.card-3d-wrapper {
    perspective: 1500px;
    transform-style: preserve-3d;
}

.card-3d-hover {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.card-3d-hover:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(2deg) translateZ(20px) scale(1.02);
}

/* About Section Card 3D Effect */
.card-3d-wrapper-about {
    perspective: 1500px;
    transform-style: preserve-3d;
}

.card-3d-hover-about {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.card-3d-hover-about:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateZ(15px) scale(1.02);
}

/* Pulse Slow Animation */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Scroll Indicator Animation */
@keyframes scroll {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

.animate-scroll {
    animation: scroll 2s ease-in-out infinite;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.125);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #FF7A00, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Hover Glow */
@keyframes button-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 122, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 122, 0, 0.8);
    }
}

.btn-glow:hover {
    animation: button-glow 2s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-3d-hover:hover {
        transform: perspective(1000px) scale(1.02);
    }
    
    .animate-fade-in-right {
        animation: fade-in-up 1s ease-out 0.5s forwards;
    }
}

/* Performance Optimizations */
.card-3d-hover,
.animate-float,
.animate-float-delayed,
.bg-gradient-animated {
    will-change: transform;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: #FF7A00;
    color: white;
}

::-moz-selection {
    background-color: #FF7A00;
    color: white;
}

/* Custom Scrollbar (Webkit) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0B1F3A;
}

::-webkit-scrollbar-thumb {
    background: #FF7A00;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff9633;
}

/* Loading State (Optional) */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-gradient-animated {
        background: #0B1F3A;
    }
    
    .text-white\/80 {
        color: white;
    }
}

/* Dark Mode Support (Future-proofing) */
@media (prefers-color-scheme: dark) {
    /* Already dark by default */
}

/* Print Styles */
@media print {
    .bg-gradient-animated,
    .animate-float,
    .animate-float-delayed {
        animation: none;
        background: white;
        color: black;
    }
}
