/* ========================================
   LONERTECH LTD - ENHANCED PREMIUM STYLES
   Topnotch Professional Design Enhancements
   ======================================== */

/* ========================================
   ADVANCED ANIMATIONS & EFFECTS - BACKGROUND ONLY
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ENHANCED HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    overflow: hidden;
}

/* Animated gradient background overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(112, 0, 255, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Enhanced hero text animations */
.hero-text h1 {
    animation: fadeInUp 1s ease-out;
    position: relative;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-text > p {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-stats {
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

/* Floating effect for hero image */
.hero-image {
    animation: fadeInRight 1s ease-out 0.3s backwards;
}

/* Enhanced stats with counter animation */
.stat h3 {
    position: relative;
    overflow: hidden;
}

.stat h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    animation: statsLine 2s ease-out;
}

@keyframes statsLine {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* ========================================
   ENHANCED SECTION HEADERS
   ======================================== */

.section-badge {
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.section-badge::before,
.section-badge::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 1px;
    background: var(--primary-color);
    top: 50%;
}

.section-badge::before {
    left: -40px;
}

.section-badge::after {
    right: -40px;
}

.section-header h2 {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 20px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 20px var(--glow-color);
}

/* ========================================
   ENHANCED SERVICE CARDS - MINIMAL HOVER
   ======================================== */

.service-card {
    position: relative;
    overflow: hidden;
}

/* Subtle glow on hover only */
.service-card:hover {
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.25);
}

/* ========================================
   ENHANCED PORTFOLIO CARDS - MINIMAL
   ======================================== */

.portfolio-card {
    position: relative;
    overflow: hidden;
}

/* Very subtle overlay on hover - NO BRIGHT PURPLE */
.portfolio-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 212, 255, 0.05);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-image::after {
    opacity: 1;
}

.portfolio-card:hover {
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.25);
    border-color: var(--primary-color);
}

/* ========================================
   ENHANCED PRICING CARDS - MINIMAL
   ======================================== */

.pricing-card {
    position: relative;
    transition: box-shadow 0.3s ease;
}

.pricing-card:hover {
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.25);
}

/* ========================================
   ENHANCED TESTIMONIAL CARDS - MINIMAL
   ======================================== */

.testimonial-card {
    position: relative;
}

/* Quote icon enhancement */
.testimonial-card::before {
    font-size: 100px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
}

/* Hover effect */
.testimonial-card:hover {
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

/* ========================================
   ENHANCED BUTTONS
   ======================================== */

.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Ripple effect on click */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Enhanced glow on hover */
.btn-primary:hover,
.btn-cta:hover {
    animation: glowPulse 1.5s ease-in-out infinite;
}

/* ========================================
   PREMIUM TECH PARTICLES
   ======================================== */

/* Floating code symbols */
.code-symbol {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    color: var(--primary-color);
    opacity: 0.1;
    animation: floatSymbol 20s linear infinite;
    pointer-events: none;
}

@keyframes floatSymbol {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Data streams */
.data-stream {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    opacity: 0.3;
    animation: dataFlow 3s linear infinite;
}

@keyframes dataFlow {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* ========================================
   ENHANCED SCROLL EFFECTS
   ======================================== */

/* Parallax sections */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Progress bar on scroll */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--glow-color);
}

/* ========================================
   PREMIUM HOVER EFFECTS
   ======================================== */

/* Magnetic effect for buttons */
.btn-magnetic {
    transition: transform 0.2s ease;
}

/* Tilt effect for cards */
.tilt-card {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg);
}

/* ========================================
   PREMIUM LOADING ANIMATIONS
   ======================================== */

/* Enhanced page loader */
.page-loader {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-secondary) 100%);
}

.loader-spinner {
    position: relative;
}

.loader-spinner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 4px solid transparent;
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

.loader-text {
    margin-top: 30px;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    animation: fadeInUp 1s ease-out infinite;
}

/* ========================================
   PREMIUM CONTACT FORM
   ======================================== */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1), 0 8px 20px rgba(0, 212, 255, 0.2);
}

/* Floating label effect */
.form-group {
    position: relative;
}

.form-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 15px;
}

.form-group input:focus + .form-label,
.form-group input:not(:placeholder-shown) + .form-label,
.form-group textarea:focus + .form-label,
.form-group textarea:not(:placeholder-shown) + .form-label {
    top: -10px;
    font-size: 12px;
    color: var(--primary-color);
    background: var(--dark-bg);
    padding: 0 8px;
}

/* ========================================
   RESPONSIVE ENHANCEMENTS
   ======================================== */

@media (max-width: 768px) {
    /* Reduce animation intensity on mobile */
    .service-card:hover {
        transform: translateY(-5px);
    }
    
    .pricing-card:hover {
        transform: translateY(-10px) scale(1.01);
    }
    
    /* Disable parallax on mobile */
    .parallax-section {
        background-attachment: scroll;
    }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Focus indicators */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

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

/* ========================================
   PREMIUM MICRO-INTERACTIONS
   ======================================== */

/* Smooth hover transitions */
a, button, .btn, .card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Elastic hover effect */
.elastic-hover {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* ========================================
   LIGHT MODE ENHANCEMENTS
   ======================================== */

body.light-mode .service-card::after {
    background: linear-gradient(45deg, #0099ff, #00d4ff, #7000ff);
}

body.light-mode .tech-background {
    opacity: 0.4;
}

body.light-mode .section-header h2 {
    background: linear-gradient(135deg, #2c3e50 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}