/* ==========================================================================
   ARCAQ SITE ENHANCEMENTS - Beautiful UI Updates
   ========================================================================== */

/* Glassmorphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-card,
.usecase-card,
.comparison-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Enhanced Hero Background */
.hero-bg {
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(34, 197, 94, 0.08) 0%, transparent 40%),
        #0a0a0a;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* 3D Hover Effects */
.feature-card,
.usecase-card {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover,
.usecase-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(59, 130, 246, 0.3);
}

/* Glow Effect on CTA Buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
    color: white !important; /* Force white text */
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3); /* Changed to blue glow instead of white */
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1; /* Behind text */
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    box-shadow: 
        0 10px 25px rgba(59, 130, 246, 0.4),
        0 0 40px rgba(59, 130, 246, 0.6);
}

/* Animated Stats Section */
.stats-showcase {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: var(--radius-xl);
    margin: var(--space-3xl) 0;
}

.stats-showcase .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-2xl);
}

@media (max-width: 992px) {
    .stats-showcase .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-showcase .container {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card:hover {
    transform: scale(1.05);
    border-color: var(--color-primary);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: var(--space-sm);
}

.stat-number {
    display: inline;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    max-width: 150px;
}

/* Testimonials Section */
.testimonials {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.testimonial-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: var(--space-lg);
    font-size: 120px;
    color: rgba(59, 130, 246, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.quote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

.author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

.author strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 4px;
}

.author span {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Interactive Demo Section */
.interactive-demo {
    padding: var(--space-4xl) 0;
    text-align: center;
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.demo-placeholder {
    background: var(--color-bg);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4xl);
    margin-bottom: var(--space-xl);
}

.demo-placeholder-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

/* Technology Stack Section */
.tech-stack {
    padding: var(--space-4xl) 0;
    background: var(--color-bg);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.tech-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.tech-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
}

/* Awards Section */
.awards {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(184, 134, 11, 0.05) 100%);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.award-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    transition: all 0.3s ease;
}

.award-card:hover {
    transform: translateY(-4px);
    border-color: #d4af37;
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
}

.award-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.award-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.award-year {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.arcaq-logo-animated {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-display);
    margin-bottom: var(--space-xl);
}

.arcaq-logo-animated .arc {
    color: var(--color-text);
    animation: fadeInUp 0.6s ease forwards;
}

.arcaq-logo-animated .q {
    color: var(--color-primary);
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--color-surface);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.loading-bar::before {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-full);
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

/* Video Section */
.video-explainer {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-secondary);
}

.video-container {
    max-width: 900px;
    margin: var(--space-3xl) auto 0;
    aspect-ratio: 16 / 9;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.video-placeholder-icon {
    font-size: 5rem;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

/* Smooth Scrolling with Snap */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

section {
    scroll-snap-align: start;
}

/* Custom Cursor (Desktop only) */
@media (min-width: 1024px) {
    body {
        cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%233b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/></svg>') 3 3, auto;
    }
    
    a:hover, button:hover {
        cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%233b82f6" stroke="%233b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/></svg>') 3 3, pointer;
    }
}

/* Case Studies Enhancement */
.case-studies {
    position: relative;
}

.case-study-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.case-study-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-showcase .container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
        padding: var(--space-xl);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
    }
}

/* AOS Animation Overrides */
[data-aos] {
    pointer-events: auto;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="zoom-in"] {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.5s ease;
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

/* Enhanced Typography */
h1, h2 {
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Accent Colors for Highlights */
.highlight {
    color: var(--color-primary);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    font-weight: 600;
}

/* Security Badges */
.security-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-2xl) 0;
}

.security-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.security-badge:hover {
    transform: translateY(-4px);
    border-color: var(--color-success);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
}

.security-badge-icon {
    font-size: 2rem;
}

.security-badge-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
}

/* Enhanced CTA Variations */
.cta-secondary {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.cta-secondary:hover {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.cta-ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.cta-ghost:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.cta-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 2px 8px;
    background: var(--color-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

/* GITEX Banner Button - Override for better contrast */
.gitex-banner .btn-primary {
    background: #1d4ed8 !important;
    color: white !important;
    border: 2px solid white !important;
    overflow: visible !important;
}

.gitex-banner .btn-primary::before {
    display: none !important;
}

.gitex-banner .btn-primary:hover {
    background: white !important;
    color: #1d4ed8 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}