/* Custom Styles for Codeo Development Website */

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

/* Hardware Acceleration for Smooth Animations */
.service-box,
.project-card,
.plan,
.contact-form-container {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Lazy Loading Styles */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[data-src].loaded {
    opacity: 1;
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Critical CSS for Above-the-fold Content */
.service-box,
.project-card {
    contain: layout style;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Styles for Better Accessibility */
*:focus {
    outline: 2px solid #43ddd9;
    outline-offset: 2px;
}

.btn-solid:focus,
.btn-outline:focus,
.cta-btn:focus {
    outline: 2px solid #43ddd9;
    outline-offset: 4px;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Cross-browser Compatibility */
@supports not (backdrop-filter: blur(10px)) {
    .service-box,
    .project-card,
    .plan {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Print Styles */
@media print {
    .page-header,
    .back-to-top,
    .loading-screen,
    .floating-elements {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .service-box,
    .project-card,
    .plan {
        border: 1px solid #ccc !important;
        background: white !important;
        box-shadow: none !important;
    }
}

/* Enhanced Color Palette & Gradients */
:root {
    /* Primary Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --neon-gradient: linear-gradient(135deg, #43ddd9 0%, #b347fa 100%);
    
    /* Section Background Gradients */
    --services-bg: linear-gradient(135deg, #001a1a 0%, #003e3c 50%, #10928f 100%);
    --about-bg: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #415a77 100%);
    --projects-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --stats-bg: linear-gradient(135deg, #2c1810 0%, #8b4513 50%, #cd853f 100%);
    --pricing-bg: linear-gradient(135deg, #1a0d2e 0%, #2d1b69 50%, #4a148c 100%);
    --contact-bg: linear-gradient(135deg, #0d2818 0%, #1b4332 50%, #2d6a4f 100%);
    --footer-bg: linear-gradient(135deg, #003e3c 0%, #10928f 100%);
    
    /* Advanced Gradients */
    --hero-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    --card-gradient: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --button-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-gradient: linear-gradient(135deg, #43ddd9 0%, #b347fa 100%);
    
    /* Glow Effects */
    --glow-blue: 0 0 20px rgba(67, 221, 217, 0.5);
    --glow-purple: 0 0 20px rgba(179, 71, 250, 0.5);
    --glow-pink: 0 0 20px rgba(240, 147, 251, 0.5);
    
    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.4);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Hardware Acceleration for Smooth Animations */
.service-box,
.project-card,
.plan,
.contact-form-container {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Enhanced Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}


/* Parallax Effects */
.parallax-container {
    position: relative;
    overflow: hidden;
    height: 100vh;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    will-change: transform;
    transform: translateZ(0);
}

.parallax-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Advanced Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(67, 221, 217, 0.3);
    border-top: 3px solid #43ddd9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 20px;
    color: #43ddd9;
    font-size: 1.2rem;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Enhanced Button Styles */
.btn-solid, .btn-outline, .cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
}

.btn-solid {
    background: var(--button-gradient);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-solid::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.6s ease;
    z-index: -1;
}

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

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium), var(--glow-blue);
}

.btn-outline {
    background: transparent;
    color: #43ddd9;
    border: 2px solid #43ddd9;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--button-gradient);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    width: 100%;
}

.btn-outline:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium), var(--glow-blue);
}

/* Progress Indicators */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--neon-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(67, 221, 217, 0.3);
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Styles for Better Accessibility */
*:focus {
    outline: 2px solid #43ddd9;
    outline-offset: 2px;
}

.btn-solid:focus,
.btn-outline:focus,
.cta-btn:focus {
    outline: 2px solid #43ddd9;
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(67, 221, 217, 0.3);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .service-box,
    .project-card,
    .plan {
        border: 2px solid #fff;
        background: rgba(0, 0, 0, 0.9);
    }
    
    .btn-solid,
    .btn-outline {
        border: 2px solid #fff;
    }
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Cross-browser Compatibility */
@supports not (backdrop-filter: blur(10px)) {
    .service-box,
    .project-card,
    .plan {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Print Styles */
@media print {
    .page-header,
    .back-to-top,
    .loading-screen,
    .floating-elements {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .service-box,
    .project-card,
    .plan {
        border: 1px solid #ccc !important;
        background: white !important;
        box-shadow: none !important;
    }
}

/* Scroll Animations */
.service-box,
.project-card,
.plan,
.stat-box {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-box.animate-in,
.project-card.animate-in,
.plan.animate-in,
.stat-box.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delays */
.service-box:nth-child(1) { transition-delay: 0.1s; }
.service-box:nth-child(2) { transition-delay: 0.2s; }
.service-box:nth-child(3) { transition-delay: 0.3s; }
.service-box:nth-child(4) { transition-delay: 0.4s; }
.service-box:nth-child(5) { transition-delay: 0.5s; }
.service-box:nth-child(6) { transition-delay: 0.6s; }

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

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
    
    .service-box,
    .project-card,
    .plan {
        margin-bottom: 2rem;
    }
    
    .btn-solid,
    .btn-outline,
    .cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .tooltip .tooltiptext {
        width: 150px;
        font-size: 0.8rem;
    }
}

/* Micro-animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(67, 221, 217, 0.3); }
    50% { box-shadow: 0 0 20px rgba(67, 221, 217, 0.8); }
}

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

.floating {
    animation: float 3s ease-in-out infinite;
}

.glowing {
    animation: glow 2s ease-in-out infinite;
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Enhanced Form Styles */
.form-progress {
    margin-bottom: 1rem;
}

.form-input:focus {
    border-color: #43ddd9;
    box-shadow: 0 0 0 3px rgba(67, 221, 217, 0.1);
}

.form-input.error {
    border-color: #f5576c;
    box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.1);
}

.error-message {
    color: #f5576c;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #43ddd9;
    box-shadow: var(--shadow-medium);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #4CAF50;
}

.notification-error {
    border-left-color: #f5576c;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    font-size: 1.2rem;
}

/* Progress Text */
.progress-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
    text-align: center;
}

/* Section Background Gradients */
.services {
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(67, 221, 217, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(179, 71, 250, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.about {
    background: var(--about-bg);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(65, 90, 119, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(27, 38, 59, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.projects-scifi {
    background: var(--projects-bg);
    position: relative;
    overflow: hidden;
}

.projects-scifi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 75%, rgba(15, 52, 96, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 25%, rgba(26, 33, 62, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats {
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 40% 60%, rgba(205, 133, 63, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 60% 40%, rgba(139, 69, 19, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.pricing {
    background: var(--pricing-bg);
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 35% 65%, rgba(74, 20, 140, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 65% 35%, rgba(45, 27, 105, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-us {
    background: var(--contact-bg);
    position: relative;
    overflow: hidden;
}

.contact-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(45, 106, 79, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(27, 67, 50, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-footer {
    background: var(--footer-bg);
    position: relative;
    overflow: hidden;
}

.page-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 75%, rgba(16, 146, 143, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 25%, rgba(0, 62, 60, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Enhanced Section Content Positioning */
.services .container,
.about .container,
.projects-scifi .container,
.stats .container,
.pricing .container,
.contact-us .container,
.page-footer .container {
    position: relative;
    z-index: 2;
}

/* Enhanced Service Boxes for New Background */
.services .service-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(67, 221, 217, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.services .service-box:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(67, 221, 217, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Enhanced Project Cards for New Background */
.projects-scifi .project-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(67, 221, 217, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.projects-scifi .project-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(67, 221, 217, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Enhanced Pricing Plans for New Background */
.pricing .plan {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(67, 221, 217, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pricing .plan:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(67, 221, 217, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Enhanced Contact Form for New Background */
.contact-us .contact-form-container {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(67, 221, 217, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 2rem;
}

.contact-us .contact-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(67, 221, 217, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-us .contact-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(67, 221, 217, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Enhanced Stats Section for New Background */
.stats .stat-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(67, 221, 217, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 2rem;
    width: 15%;
}

.stats .stat-box:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(67, 221, 217, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Enhanced About Section for New Background */
.about .info-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(67, 221, 217, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.about .info-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(67, 221, 217, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Enhanced Section Headings */
.services .sec-heading,
.about .sec-heading,
.projects-scifi .sec-heading,
.stats .sec-heading,
.pricing .sec-heading,
.contact-us .sec-heading {
    position: relative;
    z-index: 3;
}

/* Enhanced Text Contrast for New Backgrounds */
.services .title,
.about .title,
.projects-scifi .title,
.stats .title,
.pricing .title,
.contact-us .title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.services .subtitle,
.about .subtitle,
.projects-scifi .subtitle,
.stats .subtitle,
.pricing .subtitle,
.contact-us .subtitle {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Smooth Transitions Between Sections */
.services,
.about,
.projects-scifi,
.stats,
.pricing,
.contact-us,
.page-footer {
    transition: all 0.3s ease;
}

/* Enhanced Mobile Responsiveness for New Backgrounds */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
    
    .project-card {
        height: 560px;
    }
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.8rem;
    }
    
    .project-card {
        height: 540px;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        height: auto;
        min-height: 500px;
    }
    
    .project-card.show-more {
        transform: translateY(20px);
    }
    
    .project-card.show-more.visible {
        height: auto;
        min-height: 500px;
        display: flex;
    }
    
    .services .service-box,
    .projects-scifi .project-card,
    .pricing .plan,
    .contact-us .contact-form-container,
    .contact-us .contact-card,
    .stats .stat-box,
    .about .info-item {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .services .service-box,
    .projects-scifi .project-card,
    .pricing .plan {
        backdrop-filter: blur(10px);
    }
}

/* Enhanced Dark Mode Support for New Backgrounds */
@media (prefers-color-scheme: dark) {
    .services,
    .about,
    .projects-scifi,
    .stats,
    .pricing,
    .contact-us,
    .page-footer {
        filter: brightness(1.1);
    }
}

/* Enhanced High Contrast Mode for New Backgrounds */
@media (prefers-contrast: high) {
    .services .service-box,
    .projects-scifi .project-card,
    .pricing .plan,
    .contact-us .contact-form-container,
    .contact-us .contact-card,
    .stats .stat-box,
    .about .info-item {
        border: 2px solid #fff;
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Enhanced Loading States for Buttons */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loading {
    display: block;
}

.btn-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Final Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
}


.service-box,
.project-card {
    contain: layout style;
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #ffffff;
        --bg-color: #0a0a0a;
        --card-bg: rgba(255, 255, 255, 0.05);
    }
}

/* Light Mode Support */
@media (prefers-color-scheme: light) {
    :root {
        --text-color: #333333;
        --bg-color: #ffffff;
        --card-bg: rgba(0, 0, 0, 0.05);
    }
    
    .service-box,
    .project-card,
    .plan {
        background: var(--card-bg);
        border-color: rgba(0, 0, 0, 0.1);
    }
    
    .service-title,
    .project-title {
        color: var(--text-color);
    }
}

/* Enhanced Stats Section */
.stats-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #43ddd9, #b347fa);
    border-radius: 2px;
    opacity: 0;
    transition: all 0.3s ease;
}

.stat-item:hover::before {
    opacity: 1;
    width: 100px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #43ddd9;
    margin-bottom: 0.5rem;
    display: block;
    background: linear-gradient(135deg, #43ddd9, #b347fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: numberGlow 2s ease-in-out infinite alternate;
}

@keyframes numberGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(67, 221, 217, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(67, 221, 217, 0.6));
    }
}

.stat-label {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

/* Enhanced Services Section */
.service-box {
    background: var(--card-gradient);
    border: 1px solid rgba(67, 221, 217, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-soft);
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 221, 217, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-box:hover::before {
    left: 100%;
}

.service-box:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(67, 221, 217, 0.5);
    box-shadow: var(--shadow-medium), var(--glow-blue);
}

.service-icon {
    position: relative;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(67, 221, 217, 0.3));
    transition: all 0.3s ease;
}

.service-box:hover .service-icon img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(67, 221, 217, 0.6));
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 221, 217, 0.1), rgba(179, 71, 250, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

.service-box:hover {
    transform: translateY(-10px);
    border-color: rgba(67, 221, 217, 0.5);
    box-shadow: 0 20px 40px rgba(67, 221, 217, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #43ddd9, #b347fa);
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    transition: all 0.3s ease;
}

.service-box:hover .service-icon::after {
    opacity: 0.1;
}

.service-box:hover .service-icon {
    transform: scale(0.9) rotate(5deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-box:hover .service-title {
    color: #43ddd9;
}

.service-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    color: #43ddd9;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: #b347fa;
    transform: translateX(5px);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(3px);
}

/* Enhanced About Section */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-content {
    position: relative;
    z-index: 2;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 221, 217, 0.2), rgba(179, 71, 250, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.about-image:hover::before {
    opacity: 1;
}
.stats-inner .row {
    justify-content: space-around;
}
.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(67, 221, 217, 0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

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

.about-text {
    position: relative;
}

.about-text::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #43ddd9, #b347fa);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

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

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #43ddd9, #b347fa);
    border-radius: 2px;
}

.about-desc {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.about-features {
    list-style: none;
    padding: 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.about-features li::before {
    content: '✓';
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #43ddd9, #b347fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Enhanced Clients Section */
.clients-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(67, 221, 217, 0.1);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.client-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 221, 217, 0.1), transparent);
    transition: left 0.6s ease;
}

.client-logo:hover::before {
    left: 100%;
}

.client-logo:hover {
    border-color: rgba(67, 221, 217, 0.3);
    box-shadow: 0 15px 30px rgba(67, 221, 217, 0.2);
}

.client-logo img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

/* Auto-scrolling animation for clients */
@keyframes scrollClients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.clients-scroll {
    display: flex;
    animation: scrollClients 30s linear infinite;
    gap: 2rem;
}

.clients-scroll:hover {
    animation-play-state: paused;
}

/* Enhanced Projects Section */
.projects-section {
    position: relative;
    overflow: hidden;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: start;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(67, 221, 217, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    position: relative;
    height: 580px;
    display: flex;
    flex-direction: column;
}

.project-card.hidden {
    display: none;
}

.project-card.show-more {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: none;
}

.project-card.show-more.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    height: 580px;
    overflow: visible;
    margin: 0;
    padding: 0;
    display: flex;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 221, 217, 0.05), rgba(179, 71, 250, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
} */

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

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(67, 221, 217, 0.4);
    box-shadow: 0 25px 50px rgba(67, 221, 217, 0.2);
}

.project-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 221, 217, 0.8), rgba(179, 71, 250, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(67, 221, 217, 0.2);
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    flex: 1;
}

.quick-preview-mini-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #43ddd9, #b347fa);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}

.quick-preview-mini-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(67, 221, 217, 0.4);
}

.project-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-stats {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(67, 221, 217, 0.2);
}

.project-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.project-stats .stat i {
    color: #43ddd9;
    font-size: 1rem;
}

.tech-badge {
    padding: 0.4rem 0.8rem;
    background: rgba(67, 221, 217, 0.1);
    border: 1px solid rgba(67, 221, 217, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #43ddd9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 221, 217, 0.2), transparent);
    transition: left 0.5s ease;
}

.tech-badge:hover::before {
    left: 100%;
}

.tech-badge:hover {
    background: rgba(67, 221, 217, 0.2);
    border-color: rgba(67, 221, 217, 0.5);
    transform: translateY(-2px);
}

.project-actions {
    display: flex;
    gap: 1rem;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hologram-outline {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #43ddd9;
    border-radius: 25px;
    color: #43ddd9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-hologram-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #43ddd9;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-hologram-outline:hover::before {
    left: 0;
}

.btn-hologram-outline:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 221, 217, 0.3);
}

.quick-preview-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #43ddd9, #b347fa);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.quick-preview-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.6s ease;
}

.quick-preview-btn:hover::before {
    left: 100%;
}

.quick-preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 221, 217, 0.4);
}

/* Preloader Styles */
.terminal-loader {
    border: 0.1em solid #333;
    background-color: #1a1a1a;
    color: #43ddd9;
    font-family: "Courier New", Courier, monospace;
    font-size: 1em;
    padding: 1.5em 1em;
    width: 12em;
    margin: 100px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.terminal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5em;
    background-color: #333;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding: 0 0.4em;
    box-sizing: border-box;
}

.terminal-controls {
    float: right;
}

.control {
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    margin-left: 0.4em;
    border-radius: 50%;
    background-color: #777;
}

.control.close { background-color: #e33; }
.control.minimize { background-color: #ee0; }
.control.maximize { background-color: #0b0; }

.terminal-title {
    float: left;
    line-height: 1.5em;
    color: #eee;
}

.text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 0.2em solid #b347fa;
    animation: blink 1s infinite alternate;
    margin-top: 1.5em;
    text-align: left;
    margin-right: 25px;
    font-size: 18px;
    font-weight: bold;
}

@keyframes blink {
    0% { opacity: 1; }
    100% { opacity: 0.3; }
}

.preloader {
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

/* Fancybox Override */
.fancybox-slide>* {
    background-color: transparent !important;
}

/* Neon Button Styles */
.glitch-text-btn-slow {
    display: inline-block;
    position: relative;
    padding: 15px 30px;
    text-decoration: none;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 18px;
    margin: 20px;
}

.glitch-text-btn-slow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 5px;
    background: linear-gradient(90deg, #43ddd9, #b347fa, #43ddd9) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderAnimation 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes borderAnimation {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 0 10px #43ddd9, 0 0 20px #43ddd9;
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 20px #b347fa, 0 0 30px #b347fa;
    }
    100% {
        background-position: 0% 50%;
        box-shadow: 0 0 10px #43ddd9, 0 0 20px #43ddd9;
    }
}

@media only screen and (max-width: 600px) {
  .controls-box {
    display: none !important;
  }
}





.space-project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #43ddd9, #b347fa, #00ffff, #43ddd9, #b347fa);
    background-size: 400% 400%;
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
    animation: borderGlow 4s linear infinite;
}

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

.space-project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(67, 221, 217, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(179, 71, 250, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-preview {
    position: relative;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.space-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(67, 221, 217, 0.5),
        0 0 20px rgba(67, 221, 217, 0.3);
}

.space-project-card:hover .project-preview {
    transform: scale(1.02);
}

.space-project-card:hover::before {
    opacity: 1;
}

.space-project-card:hover::after {
    opacity: 1;
}

.holographic-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(145deg, #1a1a2e, #16213e),
        radial-gradient(circle at 30% 30%, rgba(67, 221, 217, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(179, 71, 250, 0.1) 0%, transparent 50%);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.15),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(67, 221, 217, 0.3),
        0 0 20px rgba(67, 221, 217, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.holographic-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            transparent 20%, 
            rgba(67, 221, 217, 0.1) 30%, 
            rgba(179, 71, 250, 0.1) 50%,
            rgba(67, 221, 217, 0.1) 70%, 
            transparent 80%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

@keyframes holographic-sweep {
    0% { 
        transform: translateX(-100%) translateY(-100%); 
        opacity: 0;
    }
    25% { 
        transform: translateX(0%) translateY(-50%); 
        opacity: 1;
    }
    75% { 
        transform: translateX(100%) translateY(50%); 
        opacity: 1;
    }
    100% { 
        transform: translateX(200%) translateY(100%); 
        opacity: 0;
    }
}

.screen-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: 
        radial-gradient(circle at center, #000 0%, #111 100%),
        linear-gradient(45deg, #000 0%, #111 50%, #000 100%);
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.8),
        inset 0 0 0 2px rgba(67, 221, 217, 0.2),
        0 0 20px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(67, 221, 217, 0.3);
}

.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: brightness(0.95) contrast(1.05);
    border-radius: 10px;
    display: block;
}

.space-project-card:hover .project-screenshot {
    transform: scale(1.05);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(67, 221, 217, 0.8) 50%,
        transparent);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Removed complex scan-line animation for better performance */

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(
            135deg,
            rgba(26, 26, 46, 0.95) 0%,
            rgba(22, 33, 62, 0.9) 30%,
            rgba(67, 221, 217, 0.2) 70%,
            rgba(179, 71, 250, 0.15) 100%
        ),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 18px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(67, 221, 217, 0.3);
}

.space-project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    margin-bottom: auto;
}

.project-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-shadow: 
        0 0 10px rgba(67, 221, 217, 0.6),
        0 0 20px rgba(67, 221, 217, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(45deg, #fff, #43ddd9, #fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


.preview-btn {
    background: 
        linear-gradient(45deg, #43ddd9, #b347fa, #00ffff),
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border: 1px solid rgba(67, 221, 217, 0.5);
    padding: 12px 24px;
    border-radius: 25px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    box-shadow: 
        0 4px 15px rgba(67, 221, 217, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.preview-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;
}

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

.preview-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(67, 221, 217, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: 
        linear-gradient(45deg, #43ddd9, #b347fa, #00ffff, #43ddd9),
        linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 200%;
    animation: buttonGlow 2s ease-in-out infinite;
}

@keyframes buttonGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.project-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 50% 50%, rgba(67, 221, 217, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.space-project-card:hover .project-glow {
    opacity: 1;
}

/* Quick Preview Modal Styles */
.quick-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quick-preview-modal.active {
    display: flex;
}

.quick-preview-container {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 25px;
    width: 92vw;
    height: 85vh;
    max-width: 1400px;
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.9),
        0 15px 35px rgba(67, 221, 217, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(67, 221, 217, 0.5);
    overflow: hidden;
    animation: quickPreviewSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

@keyframes quickPreviewSlideIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(30px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
    }
}

.quick-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(26, 26, 46, 0.3));
    border-bottom: 2px solid rgba(67, 221, 217, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1000;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1001;
}

.header-actions .btn-hologram {
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    pointer-events: auto;
    z-index: 1002;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    background: linear-gradient(135deg, #43ddd9, #b347fa);
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header-actions .btn-hologram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 221, 217, 0.8);
    background: linear-gradient(135deg, #4ae8e4, #c05aff);
}

.header-actions .btn-hologram:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(67, 221, 217, 0.6);
}

.preview-title {
    color: #43ddd9;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 10px rgba(67, 221, 217, 0.5);
}

.preview-close {
    background: rgba(67, 221, 217, 0.1);
    border: 2px solid #43ddd9;
    color: #43ddd9;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    z-index: 10;
}

.preview-close:hover {
    background: rgba(67, 221, 217, 0.3);
    box-shadow: 
        0 0 25px rgba(67, 221, 217, 0.7),
        0 0 50px rgba(67, 221, 217, 0.4);
    transform: scale(1.15) rotate(90deg);
    border-color: #43ddd9;
}

.quick-preview-content {
    height: calc(100% - 100px);
    position: relative;
}

.quick-preview-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
    border-radius: 0 0 25px 25px;
    pointer-events: auto;
}


/* Pricing Section Styles */
.pricing {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(67, 221, 217, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(179, 71, 250, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.price-plan {
    margin-bottom: 30px;
}

.plan {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.8));
    border-radius: 25px;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(67, 221, 217, 0.2);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 5px 15px rgba(67, 221, 217, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.plan:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(67, 221, 217, 0.5);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.8),
        0 0 0 3px rgba(67, 221, 217, 0.3),
        0 0 40px rgba(67, 221, 217, 0.4);
}



.plan.featured:hover {
    border-color: rgba(179, 71, 250, 0.8);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.9),
        0 0 0 3px rgba(179, 71, 250, 0.6),
        0 0 60px rgba(179, 71, 250, 0.5);
}

.plan-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: linear-gradient(135deg, #43ddd9, #b347fa);
    color: #fff;
    padding: 8px 20px;
    border-radius: 0 0 15px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.plan-head {
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
}

.plan-icon {
    font-size: 3rem;
    color: #43ddd9;
    margin-bottom: 20px;
    display: block;
    text-shadow: 0 0 20px rgba(67, 221, 217, 0.5);
    transition: all 0.3s ease;
}

.plan:hover .plan-icon {
    color: #4ae8e4;
    text-shadow: 0 0 30px rgba(74, 232, 228, 0.8);
    transform: scale(1.1);
}

.plane-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.plan-price {
    margin-bottom: 20px;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    color: #43ddd9;
    margin: 0;
    text-shadow: 0 0 20px rgba(67, 221, 217, 0.6);
    line-height: 1;
}

.currency-symbol {
    font-size: 1.5rem;
    color: #b347fa;
    text-shadow: 0 0 15px rgba(179, 71, 250, 0.5);
}

.per {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 5px;
}

.plan-details {
    padding: 0 30px 30px;
}

.plan-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-feat {
    padding: 12px 0;
    border-bottom: 1px solid rgba(67, 221, 217, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.plan-feat:last-child {
    border-bottom: none;
}

.plan-feat:hover {
    background: rgba(67, 221, 217, 0.05);
    padding-left: 10px;
    border-radius: 8px;
}

.feat-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

.feat-text sub {
    color: #43ddd9;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-cta {
    padding: 0 30px 30px;
    text-align: center;
}

.plan-cta .btn-outline {
    width: 100%;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 25px;
    border: 2px solid #43ddd9;
    color: #43ddd9;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.plan-cta .btn-outline:hover {
    background: linear-gradient(135deg, #43ddd9, #4ae8e4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(67, 221, 217, 0.4);
}

/* Pricing Section Subtitle */
.pricing .subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Project Modal Styles */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    /* Removed backdrop-filter to fix blur issue */
    animation: backdrop-fade-in 0.3s ease-out;
}

@keyframes backdrop-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-container {
    z-index: 9999;
    position: relative;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: 1000px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.7),
        0 0 0 2px rgba(67, 221, 217, 0.4);
    overflow: hidden;
    animation: modal-appear 0.4s ease-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(67, 221, 217, 0.2);
    background: linear-gradient(90deg, rgba(67, 221, 217, 0.1), transparent);
}

.modal-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.project-preview-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.modal-image {
    flex: 1;
    max-width: 60%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-details {
    flex: 1;
    color: #fff;
}

.project-details h4 {
    color: #43ddd9;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.project-details p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: linear-gradient(45deg, #43ddd9, #b347fa);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid rgba(67, 221, 217, 0.2);
    background: linear-gradient(90deg, transparent, rgba(67, 221, 217, 0.05));
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(45deg, #43ddd9, #b347fa);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 221, 217, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Enhanced Performance Optimizations */
.space-project-card {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
    contain: layout style paint;
    isolation: isolate;
    /* Reduce repaints */
    transform-style: flat;
}

.project-screenshot {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.holographic-frame::before {
    will-change: transform;
    backface-visibility: hidden;
}

.scan-line {
    will-change: transform;
    backface-visibility: hidden;
}

.project-glow {
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.preview-btn {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

/* GPU acceleration for smooth animations */
.space-project-card,
.project-preview,
.holographic-frame,
.screen-container,
.project-overlay {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Optimize repaints */
.portfolio::before,
.portfolio::after {
    will-change: opacity;
    backface-visibility: hidden;
}

/* Lazy loading for images - using HTML attribute instead of CSS */

/* GPU acceleration for animations */
.space-project-card:hover .project-preview {
    transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
    will-change: transform;
}

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

/* Optimize modal animations */
.modal-container {
    will-change: transform, opacity;
}

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

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .space-project-card,
    .project-preview,
    .holographic-frame::before,
    .scan-line,
    .project-glow,
    .modal-container {
        animation: none !important;
        transition: none !important;
    }
    
    .space-project-card:hover .project-preview {
        transform: none;
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .space-project-card {
        height: 360px;
    }
}

@media (max-width: 992px) {
    .space-project-card {
        height: 340px;
        margin-bottom: 1.8rem;
    }
    
    .portfolio {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .space-project-card {
        height: 300px;
        margin-bottom: 1.5rem;
    }
    
    .portfolio {
        padding: 60px 0;
        min-height: auto;
    }
    
    .project-preview-container {
        flex-direction: column;
    }
    
    .modal-image {
        max-width: 100%;
    }
    
    .modal-container {
        max-width: 95vw;
        margin: 10px;
    }

    /* Disable complex animations on mobile for better performance */
    .holographic-frame::before {
        animation: none;
    }
    
    .scan-line {
        animation: none;
    }
    
    .space-project-card::before {
        animation: none;
    }
    
    .project-title {
        font-size: 1.4rem;
    }
    
    .preview-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .projects-grid {
        gap: 1.2rem;
    }
    
    .project-card {
        min-height: 480px;
    }
    
    .project-image {
        height: 240px;
    }
    
    .project-info {
        padding: 1.2rem;
    }
    
    .project-card.show-more.visible {
        height: auto;
        min-height: 480px;
        display: flex;
    }
    
    .space-project-card {
        height: 280px;
        margin-bottom: 1.2rem;
    }
    
    .portfolio {
        padding: 40px 0;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }

    /* Disable complex animations on small screens */
    .space-project-card:hover .project-preview {
        transform: translateY(-5px);
    }
    
    .space-project-card:hover {
        transform: translateY(-8px);
    }
    
    .preview-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .space-project-card {
        height: 260px;
        margin-bottom: 1rem;
    }
    
    .holographic-frame {
        padding: 15px;
    }
    
    .project-overlay {
        padding: 15px;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .project-screenshot {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Image loading optimization */
.project-screenshot {
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    background-size: 20px 20px;
}

/* Print styles */
@media print {
    .space-project-card,
    .project-modal {
        display: none !important;
    }
}

/* ===================================
   SCI-FI PROJECTS SECTION STYLES
   =================================== */

/* Space Background with Stars - Optimized */
.projects-scifi {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: #0a0e1a;
    isolation: isolate;
    contain: layout style;
}

.space-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.stars,
.stars2,
.stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWP4////fwAJ+wP9CNHoHgAAAABJRU5ErkJggg==) repeat;
}

.stars {
    background-size: 200px 200px;
    animation: animateStars 50s linear infinite;
    opacity: 0.5;
    will-change: transform;
}

.stars2 {
    background-size: 150px 150px;
    animation: animateStars 100s linear infinite;
    opacity: 0.3;
    will-change: transform;
}

.stars3 {
    background-size: 100px 100px;
    animation: animateStars 150s linear infinite;
    opacity: 0.2;
    will-change: transform;
}

@keyframes animateStars {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(0, -1000px, 0);
    }
}

/* Hologram Text Effect */
.hologram-text {
    font-family: 'Courier New', monospace;
    color: #43ddd9;
    text-shadow: 
        0 0 5px #43ddd9,
        0 0 10px #43ddd9,
        0 0 20px #43ddd9,
        0 0 40px #43ddd9;
    animation: hologramFlicker 2s infinite;
    letter-spacing: 3px;
}

@keyframes hologramFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Projects Grid - Enhanced */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Project Card - Enhanced */
.project-card {
    position: relative;
    height: max-content;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.98), rgba(22, 33, 62, 0.95));
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(67, 221, 217, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.7),
        0 8px 25px rgba(67, 221, 217, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card:hover .project-card-inner {
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 0 0 3px rgba(67, 221, 217, 0.9),
        0 0 40px rgba(67, 221, 217, 0.8),
        0 0 80px rgba(179, 71, 250, 0.6),
        inset 0 0 40px rgba(67, 221, 217, 0.3);
    border-color: rgba(67, 221, 217, 0.8);
    transition: all 0.4s ease;
    object-fit: contain;
}

/* Hologram Border - Removed corners, using glow effect instead */
.hologram-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .hologram-border {
    opacity: 1;
}

.hologram-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #43ddd9, #b347fa, #43ddd9);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderRotate 3s linear infinite;
    opacity: 0.6;
}

@keyframes borderRotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* Project Image - Enhanced */
.project-image {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    contain: strict;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    filter: brightness(0.85) contrast(1.15) saturate(1.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.2) saturate(1.15);
}

/* Scan Line Effect - Optimized */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(67, 221, 217, 0.9) 50%,
        transparent);
    animation: scanLineMove 3s ease-in-out infinite;
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes scanLineMove {
    0%, 100% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }
    50% {
        transform: translate3d(0, 250px, 0);
        opacity: 1;
    }
}

/* Glitch Overlay */
.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(179, 71, 250, 0.1) 49%, 
        transparent 50%, 
        rgba(67, 221, 217, 0.1) 51%, 
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover .glitch-overlay {
    opacity: 1;
    animation: glitchAnim 0.3s infinite;
}

@keyframes glitchAnim {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-2px);
    }
    40% {
        transform: translateX(2px);
    }
    60% {
        transform: translateX(-2px);
    }
    80% {
        transform: translateX(2px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Project Info */
.project-info {
    padding: 30px;
    padding-bottom: 0px;
    position: relative;
    z-index: 2;
}



.project-card .project-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 
        0 0 15px rgba(67, 221, 217, 0.5),
        0 3px 6px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
    line-height: 1.3;
}

.project-card:hover .project-title {
    color: #4ae8e4;
    text-shadow: 
        0 0 20px rgba(74, 232, 228, 1),
        0 0 40px rgba(67, 221, 217, 0.7),
        0 0 60px rgba(179, 71, 250, 0.5);
}

.project-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Tech Badges */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-badge {
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(67, 221, 217, 0.2), rgba(179, 71, 250, 0.1));
    border: 1.5px solid rgba(67, 221, 217, 0.5);
    border-radius: 20px;
    color: #43ddd9;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 8px rgba(67, 221, 217, 0.4);
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 221, 217, 0.3), transparent);
    transition: left 0.5s ease;
}

.tech-badge:hover::before {
    left: 100%;
}

.tech-badge:hover {
    background: linear-gradient(135deg, rgba(67, 221, 217, 0.4), rgba(179, 71, 250, 0.3));
    border-color: #43ddd9;
    box-shadow: 
        0 0 20px rgba(67, 221, 217, 0.6),
        0 5px 15px rgba(67, 221, 217, 0.3);
    transform: translateY(-3px) scale(1.05);
    color: #fff;
}

/* Project Stats */
.project-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.project-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.project-stats .stat i {
    color: #b347fa;
}


.btn-hologram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #43ddd9, #b347fa);
    border: 2px solid rgba(67, 221, 217, 0.6);
    border-radius: 30px;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    box-shadow: 
        0 6px 20px rgba(67, 221, 217, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.btn-hologram::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;
}

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

.btn-hologram:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(67, 221, 217, 0.8),
        0 0 30px rgba(179, 71, 250, 0.6),
        0 0 50px rgba(67, 221, 217, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(67, 221, 217, 1);
    background: linear-gradient(135deg, #4ae8e4, #c05aff);
}

.btn-hologram .btn-icon {
    transition: transform 0.3s ease;
}

.btn-hologram:hover .btn-icon {
    transform: translateX(-5px);
}








/* Project Title Row */
.project-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(67, 221, 217, 0.1);
}

.project-title {
    margin: 0;
    flex: 1;
}

/* Mini Quick Preview Button */
.quick-preview-mini-btn {
    background: rgba(67, 221, 217, 0.1);
    border: 2px solid #43ddd9;
    color: #43ddd9;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.quick-preview-mini-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 221, 217, 0.3), transparent);
    transition: left 0.5s ease;
}

.quick-preview-mini-btn:hover::before {
    left: 100%;
}

.quick-preview-mini-btn:hover {
    background: rgba(67, 221, 217, 0.3);
    border-color: #43ddd9;
    color: #fff;
    box-shadow: 
        0 0 20px rgba(67, 221, 217, 0.6),
        0 0 40px rgba(67, 221, 217, 0.4);
    transform: scale(1.1);
}

/* Quick Preview Button - Special styling */
.quick-preview-btn {
    background: rgba(67, 221, 217, 0.1) !important;
    border-color: #43ddd9 !important;
    color: #43ddd9 !important;
    position: relative;
    overflow: hidden;
}

.quick-preview-mini-btn i {
    line-height: 2px;
}

.quick-preview-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 221, 217, 0.3), transparent);
    transition: left 0.5s ease;
}

.quick-preview-btn:hover::before {
    left: 100%;
}

.quick-preview-btn:hover {
    background: rgba(67, 221, 217, 0.3) !important;
    border-color: #43ddd9 !important;
    color: #fff !important;
    box-shadow: 
        0 8px 25px rgba(67, 221, 217, 0.7),
        0 0 30px rgba(67, 221, 217, 0.6);
    transform: translateY(-2px);
}

/* View All Button */
.view-all-projects {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.btn-hologram-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #43ddd9, #b347fa);
    border: 2px solid rgba(67, 221, 217, 0.6);
    border-radius: 30px;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 
        0 6px 20px rgba(67, 221, 217, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-hologram-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }
    100% {
        transform: translateX(100%) skewX(-15deg);
    }
}

.btn-hologram-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(67, 221, 217, 0.7),
        0 0 40px rgba(179, 71, 250, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-hologram-large:active {
    transform: translateY(-2px) scale(1.02);
}

/* ===================================
   PROJECT MODAL STYLES
   =================================== */

.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.project-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    border-radius: 25px;
    border: 2px solid rgba(67, 221, 217, 0.4);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(67, 221, 217, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.5);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.modal-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 35px 40px;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}
                                                   
.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #43ddd9, #b347fa);
    border-radius: 10px;
}

/* Modal Header */
.modal-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(67, 221, 217, 0.3);
}

.hologram-title {
    position: relative;
}

.modal-project-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    text-shadow: 
        0 0 20px rgba(67, 221, 217, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.title-underline {
    height: 3px;
    width: 80px;
    background: linear-gradient(90deg, #43ddd9, #b347fa);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(67, 221, 217, 0.6);
}

.modal-project-category {
    margin-top: 15px;
}

/* Modal Body */
.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.modal-image-slider {
    position: relative;
}

.slider-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16/11;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(67, 221, 217, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.slider-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-navigation {
    position: absolute;
    bottom: 20px;
    right: 20px;
    left: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(67, 221, 217, 0.3);
    border: 1px solid rgba(67, 221, 217, 0.5);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(67, 221, 217, 0.5);
    box-shadow: 0 0 20px rgba(67, 221, 217, 0.6);
    transform: scale(1.1);
}

/* Modal Details */
.modal-details {
    color: #fff;
}

.detail-section {
    margin-bottom: 25px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #43ddd9;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(67, 221, 217, 0.5);
}

.section-title i {
    font-size: 1.2rem;
}

.modal-project-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Tech Stack */
.modal-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge-large {
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(67, 221, 217, 0.2), rgba(179, 71, 250, 0.2));
    border: 1px solid rgba(67, 221, 217, 0.4);
    border-radius: 18px;
    color: #43ddd9;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(67, 221, 217, 0.4);
}

.tech-badge-large:hover {
    background: linear-gradient(135deg, rgba(67, 221, 217, 0.4), rgba(179, 71, 250, 0.4));
    box-shadow: 0 0 15px rgba(67, 221, 217, 0.5);
    transform: translateY(-2px);
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 0.9rem;
}

.features-list li i {
    color: #43ddd9;
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Project Metrics */
.project-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(67, 221, 217, 0.1);
    border: 1px solid rgba(67, 221, 217, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.metric:hover {
    background: rgba(67, 221, 217, 0.2);
    box-shadow: 0 0 15px rgba(67, 221, 217, 0.3);
    transform: translateY(-2px);
}

.metric i {
    font-size: 1.3rem;
    color: #b347fa;
}

.metric-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.metric-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #43ddd9;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-hologram-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: transparent;
    border: 2px solid #43ddd9;
    border-radius: 25px;
    color: #43ddd9;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s ease;
    text-shadow: 0 0 10px rgba(67, 221, 217, 0.5);
}

.btn-hologram-outline:hover {
    background: rgba(67, 221, 217, 0.2);
    box-shadow: 0 0 25px rgba(67, 221, 217, 0.5);
    transform: translateY(-3px);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .project-card {
        height: 500px;
    }
}

@media (max-width: 992px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .project-card {
        height: 460px;
    }
}

@media (max-width: 768px) {
    .projects-scifi {
        padding: 60px 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        height: 480px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .modal-project-title {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .modal-project-description,
    .features-list li {
        font-size: 0.85rem;
    }
    
    .tech-badge-large {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn-hologram,
    .modal-actions .btn-hologram-outline {
        width: 100%;
        justify-content: center;
    }
    
    .detail-section {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .project-card {
        height: 480px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-card .project-title {
        font-size: 1.25rem;
    }
    
    .modal-container {
        max-width: 95vw;
        border-radius: 15px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .project-metrics {
        grid-template-columns: 1fr;
    }
    
    
    .project-title-row {
        gap: 10px;
    }
    
    .quick-preview-mini-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Quick Preview Responsive */
    .quick-preview-container {
        width: 95vw;
        height: 85vh;
    }
    
    .quick-preview-header {
        padding: 15px 20px;
    }
    
    .preview-title {
        font-size: 1.1rem;
    }
    
    .header-actions .btn-hologram {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .preview-close {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .quick-preview-content {
        height: 100%;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .header-actions .btn-hologram {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}
.preview-close i {
    line-height: 2px;
}  
/* Performance Optimizations - Aggressive */
.project-card {
    contain: layout style paint;
    content-visibility: auto;
}

.project-card-inner,
.project-image img,
.btn-hologram,
.modal-container {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Only use will-change on hover/active states */
.project-card:hover .project-card-inner,
.project-card:hover .project-image img,
.btn-hologram:hover,
.btn-hologram-outline:hover {
    will-change: transform;
}

/* Remove will-change after animation */
.project-card-inner,
.project-image img,
.btn-hologram,
.btn-hologram-outline {
    will-change: auto;
}

/* Disable heavy animations on mobile for better performance */
@media (max-width: 768px) {
    .stars,
    .stars2,
    .stars3 {
        display: none; /* Remove stars on mobile for better performance */
    }
    
    .scan-line {
        animation: none;
    }
    
    .glitch-overlay {
        display: none;
    }
    
    .hologram-border .corner {
        transition: none;
    }
    
    /* Simplify hover effects on mobile */
    .project-card:hover .project-card-inner {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    }
    
    .project-card:hover .project-image img {
        transform: scale(1.02);
    }
}

/* Reduce 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;
    }
    
    .stars,
    .stars2,
    .stars3,
    .scan-line,
    .glitch-overlay {
        display: none;
    }
}

/* Pricing Responsive Design */
@media (max-width: 768px) {
    .plan-head {
        padding: 30px 20px 20px;
    }
    
    .plan-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .plane-name {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .plan-details {
        padding: 0 20px 20px;
    }
    
    .plan-cta {
        padding: 0 20px 20px;
    }
    
    .plan-cta .btn-outline {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .plan-badge {
        right: 15px;
        padding: 6px 15px;
        font-size: 0.75rem;
    }
    
    .pricing .subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
}

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 0;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(67, 221, 217, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(179, 71, 250, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(67, 221, 217, 0.05) 0%, transparent 50%);
    animation: footerParticles 20s ease-in-out infinite;
}

.footer-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(67, 221, 217, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 221, 217, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: footerGrid 30s linear infinite;
}

@keyframes footerParticles {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes footerGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.footer-main {
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}

.footer-col {
    margin-bottom: 40px;
}

/* Footer Brand */
.footer-brand {
    text-align: center;
}

.footer-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo {
    border-radius: 20px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 20px rgba(67, 221, 217, 0.3));
}



.footer-logo-container:hover .logo-glow {
    opacity: 0.6;
}



.company-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.company-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Social */
.footer-social {
    margin-top: 30px;
}

.social-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #43ddd9;
    margin-bottom: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
}


.social-link.facebook {
    background: linear-gradient(145deg, #1877f2, #1565c0);
    color: #fff;
    box-shadow: 
        0 8px 16px rgba(24, 119, 242, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.social-link.facebook:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 24px rgba(24, 119, 242, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

.social-link.instagram {
    background: linear-gradient(145deg, #e4405f, #fd1d1d, #fcb045);
    color: #fff;
    box-shadow: 
        0 8px 16px rgba(228, 64, 95, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.social-link.instagram:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 24px rgba(228, 64, 95, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

.social-link.whatsapp {
    background: linear-gradient(145deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: 
        0 8px 16px rgba(37, 211, 102, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.social-link.whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 24px rgba(37, 211, 102, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

.social-link.linkedin {
    background: linear-gradient(145deg, #0077b5, #0056b3);
    color: #fff;
    box-shadow: 
        0 8px 16px rgba(0, 119, 181, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.social-link.linkedin:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 24px rgba(0, 119, 181, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}


.social-link i {
    font-size: 1.4rem;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.social-link:hover i {
    transform: scale(1.05);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.social-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.social-link:hover .social-tooltip {
    opacity: 1;
    bottom: -40px;
}

/* Footer Sections */
.footer-section {
    text-align: center;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #43ddd9;
    margin-bottom: 25px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #43ddd9, #b347fa);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #43ddd9, #b347fa);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #43ddd9;
    transform: translateX(5px);
}

.footer-link:hover::before {
    width: 100%;
}

/* Contact Info */
.contact-info {
    text-align: right;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(67, 221, 217, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(26, 26, 46, 0.8);
    border-color: rgba(67, 221, 217, 0.5);
    transform: translateX(-5px);
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, #003e3c, #10928f);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
    color: #fff;
}

.contact-details {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #43ddd9;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #43ddd9;
}

/* Footer CTA */
.footer-cta {
    margin-top: 30px;
    text-align: center;
}

.btn-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #43ddd9, #4ae8e4);
    color: #000000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(67, 221, 217, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-footer-cta::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.5s ease;
}

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

.btn-footer-cta:hover {
    transform: translateY(-3px);
    color: #000;
    box-shadow: 0 10px 25px rgba(67, 221, 217, 0.5);
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 2;
    padding: 30px 0;
    border-top: 1px solid rgba(67, 221, 217, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.copyright strong {
    color: #43ddd9;
    font-weight: 700;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.bottom-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.bottom-link:hover {
    color: #43ddd9;
}

/* Floating Elements */
.footer-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-code,
.floating-bracket,
.floating-tag {
    position: absolute;
    color: rgba(67, 221, 217, 0.1);
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    animation: float 15s ease-in-out infinite;
}

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

.floating-bracket {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.floating-tag {
    top: 40%;
    left: 80%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.3; }
}
.footer-main .row {
    justify-content: space-between;
    
}
/* Footer Responsive */
@media (max-width: 768px) {
    .modern-footer {
        padding: 60px 0 0;
    }
    
    .footer-main {
        padding-bottom: 40px;
    }
    
    .footer-col {
        margin-bottom: 30px;
    }
    
    .company-name {
        font-size: 1.5rem;
    }
    
    .company-description {
        font-size: 0.9rem;
        max-width: 100%;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .contact-icon {
        margin: 0 auto 15px;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 65px;
        height: 65px;
        border-radius: 20px;
    }
    
    .social-link i {
        font-size: 1.4rem;
    }
    
    .floating-code,
    .floating-bracket,
    .floating-tag {
        font-size: 1.5rem;
    }
}

/* Contact Us Section Styles */
.contact-us {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.contact-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(67, 221, 217, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(179, 71, 250, 0.1) 0%, transparent 50%);
    animation: contactParticles 25s ease-in-out infinite;
}

.contact-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(67, 221, 217, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 221, 217, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    animation: contactGrid 35s linear infinite;
}

@keyframes contactParticles {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

@keyframes contactGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* Contact Form Container */
.contact-form-container {
    position: relative;
    z-index: 2;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 25px;
    padding: 40px;
    border: 1px solid rgba(67, 221, 217, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(67, 221, 217, 0.1);
}

/* Form Styles */
.contact-form {
    position: relative;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
    margin-bottom: 25px;
}

/* Input Container */
.input-container {
    position: relative;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(67, 221, 217, 0.3);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Tajawal', sans-serif;
}

.form-input:focus {
    border-bottom-color: #43ddd9;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    transform: translateY(-25px) scale(0.85);
    color: #43ddd9;
}

.form-label {
    position: absolute;
    top: 15px;
    right: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    pointer-events: none;
    transform-origin: right center;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #43ddd9, #b347fa);
    transition: width 0.3s ease;
}

.form-input:focus ~ .input-line {
    width: 100%;
}

/* Select Styling */
.form-input select {
    appearance: none;
    background: transparent;
    cursor: pointer;
}

/* Textarea */
.form-input[type="textarea"] {
    min-height: 120px;
    resize: vertical;
}


/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #43ddd9, #b347fa);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}

.btn-submit::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.5s ease;
}

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

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(67, 221, 217, 0.4);
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
    opacity: 0;
}

.btn-submit.loading .btn-loading {
    opacity: 1;
}

/* Contact Info Sidebar */
.contact-info-sidebar {
    position: relative;
    z-index: 2;
}

.contact-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(67, 221, 217, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(67, 221, 217, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #43ddd9, #b347fa);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: #fff;
}

.contact-card h4 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.contact-link {
    color: #43ddd9;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #4ae8e4;
}

.contact-time,
.contact-address {
    color: #43ddd9;
    font-weight: 600;
    font-size: 1rem;
}

/* Contact Responsive */
@media (max-width: 768px) {
    .contact-us {
        padding: 60px 0;
    }
    
    .contact-form-container {
        padding: 25px;
        margin-bottom: 30px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Form Error States */
.form-input.error {
    border-bottom-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    animation: errorSlideIn 0.3s ease;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.service-box,
.project-card,
.plan,
.stat-box {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-box.animate-in,
.project-card.animate-in,
.plan.animate-in,
.stat-box.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delays */
.service-box:nth-child(1) { transition-delay: 0.1s; }
.service-box:nth-child(2) { transition-delay: 0.2s; }
.service-box:nth-child(3) { transition-delay: 0.3s; }
.service-box:nth-child(4) { transition-delay: 0.4s; }
.service-box:nth-child(5) { transition-delay: 0.5s; }
.service-box:nth-child(6) { transition-delay: 0.6s; }

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

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(67, 221, 217, 0.3);
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Progress Indicators */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #43ddd9, #b347fa);
    border-radius: 2px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced Form Styles */
.form-progress {
    margin-bottom: 1rem;
}

.progress-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
    text-align: center;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(67, 221, 217, 0.3);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 300px;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-color: rgba(46, 204, 113, 0.5);
    background: rgba(26, 46, 26, 0.95);
}

.notification-error {
    border-color: rgba(231, 76, 60, 0.5);
    background: rgba(46, 26, 26, 0.95);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 500;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success .notification-content i {
    color: #2ecc71;
}

.notification-error .notification-content i {
    color: #e74c3c;
}

.notification-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Notification Responsive */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* Simple Stats Section Styles */
.simple-stats-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.simple-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

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

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-icon-wrapper {
    margin-bottom: 20px;
}

.stat-icon-wrapper i {
    font-size: 3rem;
    color: #ecf0f1;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.stat-number {
    margin-bottom: 15px;
}

.stat-number .counter {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    display: inline-block;
}

.stat-number .plus {
    font-size: 2rem;
    color: #3498db;
    font-weight: 700;
    margin-right: 5px;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(236, 240, 241, 0.9);
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .simple-stats-section {
        padding: 60px 0;
    }
    
    .stat-card {
        padding: 30px 15px;
        margin-bottom: 20px;
    }
    
    .stat-icon-wrapper i {
        font-size: 2.5rem;
    }
    
    .stat-number .counter {
        font-size: 2.5rem;
    }
    
    .stat-number .plus {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 25px 10px;
    }
    
    .stat-icon-wrapper i {
        font-size: 2rem;
    }
    
    .stat-number .counter {
        font-size: 2rem;
    }
    
    .stat-number .plus {
        font-size: 1.2rem;
    }
}

/* Mouse Scroll Button Styles */
.mouse-scroll-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: mouse-bounce 2s infinite;
}

.mouse-scroll-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    outline: none;
    border: none;
}

.mouse-scroll-btn:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.mouse-scroll-btn:active {
    outline: none;
    border: none;
    box-shadow: none;
}

.mouse-scroll-btn:hover {
    color: #3498db;
    transform: translateY(-5px);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.mouse-scroll-btn:hover .mouse {
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel-scroll 2s infinite;
    transition: all 0.3s ease;
}

.mouse-scroll-btn:hover .wheel {
    background: #3498db;
}

.scroll-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.scroll-text span {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.mouse-scroll-btn:hover .scroll-text span {
    color: #3498db;
}

.scroll-text i {
    font-size: 1.2rem;
    animation: chevron-bounce 2s infinite;
}

@keyframes mouse-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes wheel-scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

@keyframes chevron-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-1px);
    }
}

/* Enhanced 3D Social Media Links - Squishy Design */
.social-link-3d {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    text-decoration: none;
    color: #fff;
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
    margin: 0 10px;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.social-link-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.social-link-3d::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 21px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2), 
        transparent 50%, 
        rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -2;
}

.social-link-3d:hover {
    transform: translateY(-12px) scale(1.05) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.social-link-3d:active {
    transform: translateY(-8px) scale(0.95) rotateX(2deg);
    transition: all 0.1s ease;
}

.social-link-3d:hover::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(0, 0, 0, 0.05) 100%);
    transform: scale(1.02);
}

.social-link-3d:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

/* Individual Social Media Colors - Updated */
.social-link-3d.whatsapp {
    background: #25d366;
    box-shadow: 
        0 8px 16px rgba(37, 211, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.social-link-3d.whatsapp:hover {
    box-shadow: 
        0 20px 40px rgba(37, 211, 102, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.social-link-3d.facebook {
    background: #1877f2;
    box-shadow: 
        0 8px 16px rgba(24, 119, 242, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.social-link-3d.facebook:hover {
    box-shadow: 
        0 20px 40px rgba(24, 119, 242, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.social-link-3d.instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    box-shadow: 
        0 8px 16px rgba(131, 58, 180, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.social-link-3d.instagram:hover {
    box-shadow: 
        0 20px 40px rgba(131, 58, 180, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.social-link-3d.phone {
    background: #6c757d;
    box-shadow: 
        0 8px 16px rgba(108, 117, 125, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.social-link-3d.phone:hover {
    box-shadow: 
        0 20px 40px rgba(108, 117, 125, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.social-link-3d.email {
    background: #dc3545;
    box-shadow: 
        0 8px 16px rgba(220, 53, 69, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.social-link-3d.email:hover {
    box-shadow: 
        0 20px 40px rgba(220, 53, 69, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

/* Enhanced Tooltip for Social Links */
.social-link-3d[data-tooltip] {
    position: relative;
}


@keyframes tooltip-fade {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Additional Hover Effects */
.social-link-3d:hover i {
    transform: scale(1.1) rotate(5deg);
    transition: all 0.3s ease;
}

.social-link-3d:active i {
    transform: scale(0.9) rotate(-2deg);
    transition: all 0.1s ease;
}

/* Pulse Animation for Icons */
.social-link-3d i {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.social-link-3d:hover i {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Glow Effect on Hover - Updated */
.social-link-3d.whatsapp:hover {
    animation: whatsapp-glow 2s ease-in-out infinite;
}

.social-link-3d.facebook:hover {
    animation: facebook-glow 2s ease-in-out infinite;
}

.social-link-3d.instagram:hover {
    animation: instagram-glow 2s ease-in-out infinite;
}

.social-link-3d.phone:hover {
    animation: phone-glow 2s ease-in-out infinite;
}

.social-link-3d.email:hover {
    animation: email-glow 2s ease-in-out infinite;
}

@keyframes whatsapp-glow {
    0%, 100% { box-shadow: 0 20px 40px rgba(37, 211, 102, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 25px 50px rgba(37, 211, 102, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.3); }
}

@keyframes facebook-glow {
    0%, 100% { box-shadow: 0 20px 40px rgba(24, 119, 242, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 25px 50px rgba(24, 119, 242, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.3); }
}

@keyframes instagram-glow {
    0%, 100% { box-shadow: 0 20px 40px rgba(131, 58, 180, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 25px 50px rgba(131, 58, 180, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.3); }
}

@keyframes phone-glow {
    0%, 100% { box-shadow: 0 20px 40px rgba(108, 117, 125, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 25px 50px rgba(108, 117, 125, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.3); }
}

@keyframes email-glow {
    0%, 100% { box-shadow: 0 20px 40px rgba(220, 53, 69, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 25px 50px rgba(220, 53, 69, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.3); }
}

/* Enhanced Responsive Design for Mouse Button and Social Links */
@media (max-width: 768px) {
    .mouse-scroll-container {
        bottom: 20px;
    }
    
    .mouse {
        width: 25px;
        height: 40px;
    }
    
    .wheel {
        width: 3px;
        height: 6px;
        top: 6px;
    }
    
    .scroll-text span {
        font-size: 0.7rem;
    }
    
    .scroll-text i {
        font-size: 1rem;
    }
    
    .social-link-3d {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 6px;
        border-radius: 15px;
    }
    
    .social-link-3d:hover {
        transform: translateY(-10px) scale(1.03) rotateX(3deg);
    }
}

@media (max-width: 576px) {
    .mouse-scroll-container {
        bottom: 15px;
    }
    
    .mouse {
        width: 22px;
        height: 35px;
    }
    
    .wheel {
        width: 2px;
        height: 5px;
        top: 5px;
    }
    
    .scroll-text span {
        font-size: 0.65rem;
    }
    
    .scroll-text i {
        font-size: 0.9rem;
    }
    
    .social-link-3d {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin: 0 4px;
        border-radius: 13px;
    }
    
    .social-link-3d:hover {
        transform: translateY(-8px) scale(1.02) rotateX(2deg);
    }
    
    .social-link-3d[data-tooltip]:hover::before {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .mouse-scroll-container {
        bottom: 10px;
    }
    
    .mouse {
        width: 20px;
        height: 30px;
    }
    
    .wheel {
        width: 2px;
        height: 4px;
        top: 4px;
    }
    
    .scroll-text span {
        font-size: 0.6rem;
    }
    
    .scroll-text i {
        font-size: 0.8rem;
    }
    
    .social-link-3d {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0 3px;
        border-radius: 12px;
    }
    
    .social-link-3d:hover {
        transform: translateY(-6px) scale(1.01) rotateX(1deg);
    }
    
    .social-link-3d[data-tooltip]:hover::before {
        font-size: 0.65rem;
        padding: 5px 10px;
    }
    
    .social-link-3d[data-tooltip]:hover::after {
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-bottom: 4px solid rgba(0, 0, 0, 0.9);
    }
}
