/* Custom styles and overrides */

:root {
    --color-charcoal-950: #0c0c12;
    --color-charcoal-900: #16161e;
    --color-charcoal-800: #23232e;
    --color-charcoal-700: #353545;
    --color-charcoal-600: #4a4a5e;
    --color-charcoal-500: #64647a;
    --color-charcoal-400: #8888a0;
    --color-charcoal-300: #b0b0c0;
    --color-charcoal-200: #d6d6e0;
    --color-charcoal-100: #ececf0;
    --color-charcoal-50: #f7f7f8;
    --color-coral-500: #ff6b3f;
    --color-coral-400: #ff8a6c;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-charcoal-950);
}
::-webkit-scrollbar-thumb {
    background: var(--color-charcoal-700);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-charcoal-600);
}

/* Selection color */
::selection {
    background: rgba(255, 107, 63, 0.3);
    color: #fff;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-coral-500);
    outline-offset: 2px;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(12, 12, 18, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.floating-card-1 {
    animation: float 6s ease-in-out infinite;
}
.floating-card-2 {
    animation: float-delayed 7s ease-in-out infinite;
}
.floating-card-3 {
    animation: float-slow 8s ease-in-out infinite;
}
.floating-card-4 {
    animation: float 5s ease-in-out infinite;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-hidden {
        opacity: 1;
        transform: translateY(0);
    }
    .floating-card-1,
    .floating-card-2,
    .floating-card-3,
    .floating-card-4 {
        animation: none;
    }
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Custom gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #ff6b3f 0%, #ff8a6c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover glow */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(255, 107, 63, 0.1);
}

/* Pulse animation for dot */
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

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

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

/* Progress bar animation */
@keyframes progress-fill {
    from { width: 0%; }
    to { width: var(--target-width); }
}

.progress-fill {
    animation: progress-fill 1.5s ease-out forwards;
}
