/* ============================================
   ARQINTEL - Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* --- Gradient Text --- */
.text-gradient {
    background: linear-gradient(135deg, #4DD0E1 0%, #9C27B0 50%, #E91E63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Button Gradients --- */
.btn-gradient {
    background: linear-gradient(135deg, #4DD0E1 0%, #00BCD4 50%, #9C27B0 100%);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #9C27B0 0%, #E91E63 50%, #FF4081 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-gradient:hover::before {
    opacity: 1;
}

.btn-outline {
    border: 2px solid;
    border-image: linear-gradient(135deg, #4DD0E1 0%, #9C27B0 50%, #E91E63 100%) 1;
    color: white;
    position: relative;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #4DD0E1 0%, #9C27B0 50%, #E91E63 100%);
    color: white;
}

/* --- Animated Grid Background --- */
.animated-grid {
    background-image: 
        linear-gradient(rgba(77, 208, 225, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 208, 225, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-animation 20s linear infinite;
}

@keyframes grid-animation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* --- Animations --- */
@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in-down {
    animation: fade-in-down 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animation-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animation-delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

.animation-delay-600 {
    animation-delay: 0.6s;
    opacity: 0;
}

.animation-delay-800 {
    animation-delay: 0.8s;
    opacity: 0;
}

/* --- Card Hover Effects --- */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(77, 208, 225, 0.2);
}

.value-card {
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.service-card {
    transition: all 0.3s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(77, 208, 225, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.service-card:hover {
    transform: translateY(-10px);
}

.benefit-card {
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px) scale(1.03);
}

.story-card {
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.methodology-step {
    opacity: 0;
    animation: fade-in-up 0.8s ease-out forwards;
}

.methodology-step:nth-child(1) { animation-delay: 0.1s; }
.methodology-step:nth-child(2) { animation-delay: 0.2s; }
.methodology-step:nth-child(3) { animation-delay: 0.3s; }
.methodology-step:nth-child(4) { animation-delay: 0.4s; }
.methodology-step:nth-child(5) { animation-delay: 0.5s; }
.methodology-step:nth-child(6) { animation-delay: 0.6s; }

.methodology-card {
    transition: all 0.3s ease;
}

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

/* --- Navigation Styles --- */
nav {
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4DD0E1 0%, #9C27B0 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* --- Contact Form Styles --- */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(156, 157, 161, 0.5);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234DD0E1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5rem;
    padding-right: 2.5rem;
}

.contact-info-card,
.social-card,
.cta-card {
    transition: all 0.3s ease;
}

.contact-info-card:hover,
.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(77, 208, 225, 0.2);
}

.cta-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(77, 208, 225, 0.3);
}

/* --- Form Message Styles --- */
#form-message.success {
    background: linear-gradient(135deg, rgba(77, 208, 225, 0.2) 0%, rgba(156, 39, 176, 0.2) 100%);
    border: 1px solid #4DD0E1;
    color: #4DD0E1;
}

#form-message.error {
    background: rgba(233, 30, 99, 0.2);
    border: 1px solid #E91E63;
    color: #FF4081;
}

/* --- Scroll Animations --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Smooth Scrollbar --- */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4DD0E1 0%, #9C27B0 50%, #E91E63 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00BCD4 0%, #BA68C8 50%, #FF4081 100%);
}

/* --- Mobile Menu Transition --- */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.show {
    max-height: 500px;
    opacity: 1;
}

.mobile-nav-link {
    transition: all 0.3s ease;
}

/* --- Glowing Effects --- */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(77, 208, 225, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(156, 39, 176, 0.6);
    }
}

.glow-on-hover {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* --- Loading Animation --- */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    border: 3px solid rgba(77, 208, 225, 0.3);
    border-top: 3px solid #4DD0E1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .text-gradient {
        font-size: 1.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* --- Print Styles --- */
@media print {
    nav,
    footer,
    .btn-gradient,
    .btn-outline,
    #contact-form {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* --- 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-width: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #4DD0E1;
    outline-offset: 2px;
}

/* --- Utilities --- */
.backdrop-blur-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gradient-border {
    border: 2px solid;
    border-image: linear-gradient(135deg, #4DD0E1 0%, #9C27B0 50%, #E91E63 100%) 1;
}

/* --- Custom Animations --- */
@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-left {
    animation: slide-in-left 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slide-in-right 0.8s ease-out forwards;
}

/* --- Particle Background Effect (Optional Enhancement) --- */
.particle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #4DD0E1;
    border-radius: 50%;
    animation: float-particle 10s linear infinite;
    opacity: 0.5;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* --- Section Dividers --- */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #4DD0E1 25%, #9C27B0 50%, #E91E63 75%, transparent 100%);
    margin: 4rem 0;
}

/* --- Image Overlay Effects --- */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(77, 208, 225, 0.3) 0%, rgba(156, 39, 176, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* --- Typography Enhancements --- */
.heading-glow {
    text-shadow: 0 0 20px rgba(77, 208, 225, 0.5),
                 0 0 40px rgba(156, 39, 176, 0.3);
}

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

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

/* --- Dark Mode Support (Future Enhancement) --- */
@media (prefers-color-scheme: dark) {
    /* Already in dark mode by default */
}

/* --- High Contrast Mode Support --- */
@media (prefers-contrast: high) {
    .text-gradient {
        -webkit-text-fill-color: #4DD0E1;
        background: none;
    }
    
    .btn-gradient {
        border: 2px solid #4DD0E1;
    }
}

/* --- 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;
    }
}