/* ============================================
   ENHANCED DESIGN STYLES
   ============================================ */

/* Preloader Logo */
.preloader-logo-img {
    height: 60px;
    width: auto;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(79, 70, 229, 0.2));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px rgba(79, 70, 229, 0.4));
    }
}

/* Logo Styles */
.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Enhanced Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #2563EB 0%, #06B6D4 50%, #2563EB 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* Why Choose Us Stats */
.stats-section {
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.05), transparent);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.stat-card:hover::before {
    opacity: 0.02;
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--dark-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 24px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.stat-card:hover .stat-icon-wrapper {
    background: var(--primary);
    color: var(--white);
    transform: rotateY(360deg);
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Buttons */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--dark-border);
    background: transparent;
    color: var(--text);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--dark-light);
    transform: translateY(-2px);
}

/* Enhanced Service Cards */
.service-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--dark-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-soft);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

/* Enhanced Portfolio Cards */
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--dark-border);
    box-shadow: var(--shadow-soft);
}

.portfolio-card:hover {
    box-shadow: var(--shadow-glow);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, #2563EB, transparent 30%);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--white);
    border-radius: calc(var(--radius-lg) - 2px);
    z-index: 0;
}

.portfolio-card > * {
    position: relative;
    z-index: 1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.portfolio-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.98) 100%);
}

/* Enhanced Hero Section */
.hero-title {
    text-shadow: 0 10px 40px rgba(79, 70, 229, 0.1);
}

.hero-visual-card {
    position: relative;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    box-shadow: var(--shadow-glow);
}

.hero-visual-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--gradient-primary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-visual-card:hover::before {
    opacity: 1;
}

.line-number {
    color: var(--primary);
    opacity: 0.5;
}

.code-keyword {
    color: #60A5FA;
}

.code-function {
    color: #34D399;
}

.code-string {
    color: #F472B6;
}

.code-comment {
    color: var(--text-muted);
}

.floating-badge {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--dark-border);
    color: var(--text);
}

.floating-badge i {
    color: var(--primary);
}

/* Code Block Enhancement */
.code-block {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.code-line {
    transition: background 0.2s ease;
}

.code-line:hover {
    background: rgba(37, 99, 235, 0.05);
}

/* Floating Badges */
.floating-badge {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(37, 99, 235, 0.3);
    backdrop-filter: blur(10px);
}

/* Enhanced Stats */
.hero-stat {
    position: relative;
    padding: 20px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.hero-stat:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-5px);
}

.hero-stat-number {
    background: linear-gradient(135deg, #2563EB, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Testimonials */
.testimonial-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.testimonial-avatar {
    background: linear-gradient(135deg, #2563EB, #06B6D4);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Enhanced CTA Section */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
}

.cta-bg {
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.cta-title {
    text-shadow: 0 0 60px rgba(37, 99, 235, 0.3);
}

/* Contact form — see forms.css */

/* Enhanced Section Headers */
.section-title {
    text-shadow: 0 0 60px rgba(37, 99, 235, 0.2);
}

.section-badge {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Process Grid */
.process-card {
    position: relative;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
}

.process-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.05);
}

.process-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(6, 182, 212, 0.2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Process Line */
.process-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563EB, #06B6D4, transparent);
    z-index: 0;
}

/* Enhanced Footer */
.footer {
    background: linear-gradient(180deg, var(--dark) 0%, rgba(15, 23, 42, 1) 100%);
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.footer-logo img {
    height: 36px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
}

/* Glowing Effects */
.glow {
    box-shadow: 
        0 0 5px rgba(37, 99, 235, 0.3),
        0 0 20px rgba(37, 99, 235, 0.2),
        0 0 40px rgba(37, 99, 235, 0.1);
}

/* Particle Background Effect - Removed */

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563EB, #06B6D4);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Back to Top Enhancement */
.back-to-top {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.back-to-top:hover {
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
    transform: translateY(-3px);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }
    
    .hero-visual-card {
        display: none;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
    }
}

/* Client Logos */
.clients-section {
    padding: 60px 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.3) 100%);
}

.clients-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.client-item:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.client-logo {
    height: 32px;
    width: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(30%);
}

.client-item:hover .client-logo {
    opacity: 1;
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .clients-grid {
        gap: 20px;
    }
    
    .client-item {
        padding: 15px 20px;
    }
    
    .client-logo {
        height: 24px;
    }
}
