/* Eloscope Custom Styles */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
.font-syne {
    font-family: 'Syne', sans-serif;
    letter-spacing: 0.02em;
}

.logo-wordmark {
    font-family: 'Syne', sans-serif;
    letter-spacing: 0.08em;
    background: linear-gradient(90deg, #00ffff 0%, #ffffff 50%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Responsive Logo Styles */
@media (max-width: 640px) {
    .logo-wordmark {
        font-size: 1.25rem;
        letter-spacing: 0.05em;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .logo-wordmark {
        font-size: 1.5rem;
        letter-spacing: 0.06em;
    }
}

@media (min-width: 769px) {
    .logo-wordmark {
        font-size: 1.75rem;
        letter-spacing: 0.08em;
    }
}

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

@keyframes glow {
    0% {
        text-shadow: 0 0 5px #00ffff;
    }
    100% {
        text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff;
    }
}

@keyframes pulse-border {
    0%, 100% {
        border-color: rgba(0, 255, 255, 0.3);
    }
    50% {
        border-color: rgba(0, 255, 255, 0.8);
    }
}

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

/* Utility Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.animate-pulse-border {
    animation: pulse-border 2s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Gradient Backgrounds */
.bg-gradient-eloscope {
    background: linear-gradient(135deg, #00ffff 0%, #ff00ff 100%);
}

.bg-gradient-cyber {
    background: linear-gradient(45deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

/* Glass Morphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Neon Effects */
.neon-cyan {
    box-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 15px #00ffff;
}

.neon-magenta {
    box-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 15px #ff00ff;
}

.neon-green {
    box-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 15px #00ff00;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    border-color: #00ffff;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #00ffff 0%, #ff00ff 100%);
    color: #0a0a0a;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
    color: #0a0a0a;
}

.btn-secondary {
    border: 2px solid #00ffff;
    color: #00ffff;
    background: transparent;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #00ffff;
    color: #0a0a0a;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-highlight {
    border: 2px solid;
    border-image: linear-gradient(135deg, #00ffff, #ff00ff) 1;
    position: relative;
    overflow: hidden;
}

.card-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.card-highlight:hover::before {
    left: 100%;
}

/* Form Styles */
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    color: #ffffff;
    width: 100%;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-center {
        text-align: center;
    }
    
    .mobile-full {
        width: 100%;
    }
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffff, #ff00ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff00ff, #00ffff);
}

/* Selection */
::selection {
    background: rgba(0, 255, 255, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(0, 255, 255, 0.3);
    color: #ffffff;
}

/* Focus States */
.focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #ffffff;
    }
    
    .btn-primary {
        border: 2px solid #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    /* Already dark by default */
}

/* Light Mode Override (if needed) */
.light-mode {
    background: #ffffff;
    color: #0a0a0a;
}

.light-mode .card {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Utility Classes for Spacing */
.section-padding {
    padding: 5rem 0;
}

.container-padding {
    padding: 0 1.5rem;
}

/* Grid Utilities */
.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Aspect Ratio */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Text Utilities */
.text-gradient {
    background: linear-gradient(135deg, #00ffff 0%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.text-glow {
    text-shadow: 0 0 10px currentColor;
}

/* Border Utilities */
.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #00ffff, #ff00ff) 1;
}

/* Background Patterns */
.bg-dots {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-grid {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #00ffff;
    color: #0a0a0a;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Component Specific Styles */
.hero-bg {
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        #0a0a0a;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    margin: 2rem 0;
}

/* Logo Animation */
.logo-container {
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: conic-gradient(from 0deg, #00ffff, #ff00ff, #00ff00, #ffff00, #00ffff);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

.logo-container:hover::before {
    opacity: 0.3;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Stats Counter Animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Testimonial Styles */
.testimonial {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border-left: 4px solid #00ffff;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #00ffff;
    opacity: 0.3;
    font-family: serif;
}

/* CTA Section */
.cta-section {
    background: 
        linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(255, 0, 255, 0.1) 100%),
        #0a0a0a;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%2300ffff" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
    animation: float 10s ease-in-out infinite;
}

/* Footer Styles */
.footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .hero-bg {
        background-attachment: scroll;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Tablet Optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
}

/* Desktop Optimizations */
@media (min-width: 1025px) {
    .hover-3d {
        transition: transform 0.3s ease;
    }
    
    .hover-3d:hover {
        transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(10px);
    }
}

/* Integrations Carousel Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.carousel-container {
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Pause animation on hover */
.carousel-track:hover {
    animation-play-state: paused;
}

/* Responsive carousel adjustments */
@media (max-width: 768px) {
    .animate-scroll {
        animation-duration: 20s;
    }
    
    .carousel-track .flex-shrink-0 {
        width: 4rem;
        height: 4rem;
    }
    
    .carousel-track .flex-shrink-0 img {
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 480px) {
    .animate-scroll {
        animation-duration: 15s;
    }
    
    .carousel-track {
        gap: 1rem;
    }
}