/* Custom Styles for Averion Ascent Solutions */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.glass-nav {
    background: rgba(10, 12, 20, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
    @apply text-sm font-medium text-slate-300 hover:text-primary transition-colors relative group;
}

.nav-link::after {
    content: '';
    @apply absolute bottom-0 left-0 w-0 group-hover:w-full h-0.5 bg-primary transition-all;
}

.mobile-nav-link {
    @apply block text-base font-medium text-slate-300 hover:text-primary transition-colors py-2;
}

/* Buttons */
.btn-primary {
    @apply bg-gradient-to-r from-primary to-primary-dark hover:from-primary-light hover:to-primary text-white px-6 py-2.5 rounded-lg text-sm font-bold transition-all transform hover:scale-105 shadow-lg shadow-primary/25;
}

.btn-large {
    @apply px-8 py-4 rounded-xl text-lg;
}

.btn-secondary {
    @apply bg-white/5 hover:bg-white/10 text-white border border-white/10 px-8 py-4 rounded-xl text-lg font-bold transition-all flex items-center justify-center gap-2;
}

.btn-cta {
    @apply px-10 py-5 rounded-xl text-lg inline-flex items-center gap-3;
}

.btn-submit {
    @apply w-full px-6 py-4 rounded-lg text-base;
}

.mobile-btn-primary {
    @apply w-full bg-gradient-to-r from-primary to-primary-dark text-white px-6 py-3 rounded-lg text-base font-bold transition-all;
}

/* Cards */
.glass-card {
    background: rgba(26, 29, 38, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-card {
    @apply glass-card rounded-2xl p-8 hover-lift;
}

.solution-card {
    @apply glass-card rounded-2xl p-8 hover-lift;
}

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

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 138, 119, 0.15);
}

/* Form Elements */
.form-input {
    @apply w-full bg-white/5 border border-white/10 rounded-lg px-4 py-3 text-white placeholder:text-slate-500 focus:outline-none focus:border-primary;
}

/* Text Effects */
.gradient-text {
    background: linear-gradient(135deg, #008a77 0%, #3b0764 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Backgrounds */
.hero-gradient {
    background: linear-gradient(135deg,
        rgba(0, 138, 119, 0.1) 0%,
        rgba(59, 7, 100, 0.05) 100%);
}

/* Service Icons */
.service-icon {
    @apply size-16 rounded-xl bg-primary/10 flex items-center justify-center text-primary mb-6;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: translateY(-8px) scale(1.1);
}

/* List Items */
.list-item-check {
    @apply flex items-center gap-2;
}

.list-item-check::before {
    content: 'check_circle';
    font-family: 'Material Symbols Outlined';
    @apply text-primary text-sm;
}

/* Process Steps */
.process-step {
    position: relative;
}

.process-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 40px;
    right: -30px;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #008a77, transparent);
}

.process-icon {
    @apply size-20 rounded-2xl bg-primary/10 border-2 border-primary/30 flex items-center justify-center text-primary mx-auto mb-6;
}

.process-number {
    @apply absolute -top-2 left-1/2 transform -translate-x-1/2 bg-primary text-white size-8 rounded-full flex items-center justify-center text-sm font-bold;
}

/* CTA Features */
.cta-feature {
    @apply bg-white/5 p-6 rounded-xl;
}

/* Footer */
.social-icon {
    @apply size-10 rounded-lg bg-white/5 flex items-center justify-center text-slate-400 hover:text-primary hover:bg-white/10 transition-colors;
}

.footer-link {
    @apply hover:text-primary transition-colors flex items-center gap-2;
}

.contact-item {
    @apply flex items-start gap-3;
}

.footer-legal-link {
    @apply hover:text-slate-400 transition-colors;
}

/* Logo Effects */
.logo-glow {
    filter: drop-shadow(0 0 8px rgba(0, 138, 119, 0.5));
}

.logo-glow img {
    filter: drop-shadow(0 0 8px rgba(0, 138, 119, 0.5));
}

/* Scrollbar */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .process-step:not(:last-child):after {
        display: none;
    }

    .hero-stats div {
        text-align: center;
    }
}

/* Animation Delays */
.animation-delay-1s {
    animation-delay: 1s;
}

.animation-delay-2s {
    animation-delay: 2s;
}

/* Loading States */
.loading {
    @apply opacity-50 cursor-not-allowed;
}

/* Success States */
.success {
    @apply bg-green-500 !important;
}

/* Error States */
.error {
    @apply border-red-500 !important;
}

/* Active States */
.active {
    @apply text-primary;
}

/* Hover Effects */
.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
}

/* Focus States */
.focus-ring {
    @apply focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-background-dark;
}

/* Custom Utilities */
.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* Services Section Specific Styles */
.services-container {
    perspective: 1000px;
}

.perspective-1000 {
    perspective: 1000px;
}

.service-card {
    position: absolute;
    width: 100%;
    height: 400px;
    background: linear-gradient(145deg, rgba(26, 29, 38, 0.9), rgba(16, 18, 24, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 138, 119, 0.1) 0%,
        rgba(107, 33, 168, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    border-color: rgba(0, 138, 119, 0.5);
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 138, 119, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-card.active {
    z-index: 10;
    border-color: rgba(0, 138, 119, 0.8);
    box-shadow:
        0 25px 80px rgba(0, 138, 119, 0.3),
        0 0 0 1px rgba(0, 138, 119, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-icon-wrapper {
    transition: all 0.4s ease;
}

.service-card:hover .service-icon-wrapper {
    transform: translateY(-8px) rotateY(10deg);
}

.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 138, 119, 0.1);
    border: 1px solid rgba(0, 138, 119, 0.2);
    border-radius: 1rem;
    font-size: 0.75rem;
    color: rgba(0, 138, 119, 0.9);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 138, 119, 0.2);
    border-color: rgba(0, 138, 119, 0.4);
    transform: translateY(-2px);
}

.floating-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 138, 119, 0.6);
    border-radius: 50%;
    animation: floatParticle 20s linear infinite;
}

.floating-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 10s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-40px) translateX(20px);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) translateX(40px);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-60px) translateX(10px);
        opacity: 0.3;
    }
}

@keyframes cardFloatIn {
    0% {
        opacity: 0;
        transform: translateY(100px) rotateX(20deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
    }
}

@keyframes cardFloatOut {
    0% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) rotateX(-20deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            0 15px 40px rgba(0, 138, 119, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.service-card.glow {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .service-card {
        height: 350px;
    }

    .services-container {
        min-height: 700px;
    }
}

@media (max-width: 768px) {
    .services-container {
        min-height: 600px;
    }

    .service-card {
        height: 300px;
        padding: 1.5rem;
    }
}

/* Industry Solutions Section Specific Styles */
.industry-cards-container {
    perspective: 1000px;
    overflow: hidden;
}

.industry-card {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.industry-card.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.industry-description-card {
    position: relative;
    z-index: 10;
}

.industry-image-card {
    position: relative;
    z-index: 5;
}

/* Unique Animation Styles */
.image-card-inner {
    position: relative;
    overflow: hidden;
}

.image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: none;
}

.image-slide.active {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-slide.exiting {
    animation: slideOutLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.image-slide.entering {
    animation: slideInFromBottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.description-card {
    position: relative;
}

.description-card.exiting {
    animation: floatUpOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.description-card.entering {
    animation: floatDownIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Keyframe Animations */
@keyframes slideOutLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatUpOut {
    0% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) rotateX(10deg);
    }
}

@keyframes floatDownIn {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(-10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes cardSwap {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-100%);
        opacity: 0;
    }
    51% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Active indicator */
.industry-indicator.active {
    background: linear-gradient(135deg, #008a77, #3b0764);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 138, 119, 0.5);
}

/* Testimonial animation */
.testimonial-box {
    animation: testimonialFadeIn 0.6s ease-out 0.4s backwards;
}

@keyframes testimonialFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for CTA buttons */
.industry-cta-btn {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.industry-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.industry-cta-btn:hover::before {
    left: 100%;
}

/* Image hover effect */
.image-card-inner:hover .image-slide.active img {
    transform: scale(1.05);
    transition: transform 0.7s ease;
}

.image-slide img {
    transition: transform 0.7s ease;
}

/* Mobile optimizations */
@media (max-width: 1024px) {
    .industry-cards-container {
        min-height: 700px;
    }

    .industry-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .industry-description-card,
    .industry-image-card {
        order: initial !important;
    }

    .industry-description-card {
        margin-bottom: 2rem;
    }

    /* Adjust animations for mobile */
    .image-slide.entering {
        animation: slideInFromBottomMobile 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    @keyframes slideInFromBottomMobile {
        0% {
            opacity: 0;
            transform: translateY(50px) scale(0.95);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

@media (max-width: 768px) {
    .industry-cards-container {
        min-height: 600px;
    }

    .industry-description-card {
        padding: 1.5rem;
    }

    .industry-image-card {
        margin-bottom: 1.5rem;
    }
}

/* Glass card effect */
.glass-card {
    background: rgba(26, 29, 38, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Animation for auto-play toggle */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.auto-play-active {
    animation: pulse 2s infinite;
}

/* Loading animation for images */
.image-loading {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}