/* ============================================
   IOSnack - Modern CSS Styles
   ============================================ */

/* Custom Properties */
:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --dark-bg: #16162a;
    --dark-card: #1a1a2e;
}

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

body {
    position: relative;
}

/* Selection Color */
::selection {
    background: var(--primary);
    color: white;
}

/* ============================================
   Navigation Styles
   ============================================ */

/* Navbar Initial State - gradient fade for better contrast on hero */
#navbar {
    background: linear-gradient(180deg, rgba(22, 22, 42, 0.9) 0%, rgba(22, 22, 42, 0.6) 60%, transparent 100%);
}

/* Tablet and Desktop - Ensure dropdown visibility */
@media (min-width: 769px) {
    #navbar {
        overflow: visible;
    }
}

/* Desktop Dropdown Menu - High z-index */
@media (min-width: 1024px) {
    #navbar .group .absolute {
        z-index: 100;
    }
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(22, 22, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .nav-link,
.navbar-scrolled .navbar-logo-text {
    color: white !important;
}

/* Dark page navbar */
.page-dark #navbar {
    background: transparent;
}

.page-light #navbar {
    background: rgba(22, 22, 42, 0.95);
    backdrop-filter: blur(20px);
}

.page-light .nav-link,
.page-light .navbar-logo-text {
    color: white !important;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-gradient {
    background-color: #16162a !important;
    background-image: linear-gradient(135deg, #0f0f1a 0%, #16162a 40%, #1a1a2e 100%) !important;
}

.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, #0f0f1a 0%, #16162a 40%, #1a1a2e 100%) !important;
}

/* Animated Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #f97316, #fb923c, #fbbf24, #f97316);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

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

/* Cyan Gradient Text for AI Pages */
.text-gradient-cyan {
    background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6, #06b6d4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* Floating Animation */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

/* ============================================
   Card Styles
   ============================================ */

.service-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.service-card-dark {
    background: var(--dark-card);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card-dark:hover {
    border-color: var(--primary);
    box-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.2);
}

/* Icon Wrapper */
.icon-wrapper {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================
   Stats Section
   ============================================ */

.stats-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

/* Counter Animation */
.counter {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Form Styles
   ============================================ */

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.form-input-dark {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.form-input-dark::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input-dark:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Button Styles
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--dark-bg);
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Outline button for light backgrounds */
.btn-outline-dark {
    background: white;
    color: var(--dark-bg);
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-dark:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

/* Outline button for dark backgrounds (white outline) */
.btn-outline-light {
    background: transparent;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-light:hover {
    background: white;
    color: var(--dark-bg);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* ============================================
   Testimonial Slider
   ============================================ */

.testimonial-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    object-fit: cover;
}

/* ============================================
   Tool Cards (Free Tools Section)
   ============================================ */

.tool-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.tool-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   Scroll Progress Bar
   ============================================ */

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fbbf24, #fb923c);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

/* ============================================
   Scroll to Top Button
   ============================================ */

.scroll-top-btn {
    position: fixed;
    bottom: 6rem; /* Positioned above WhatsApp button */
    right: 1.75rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 40; /* Below WhatsApp (z-50) to avoid overlap issues */
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-4px) rotate(360deg);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

/* ============================================
   Tech Stack Marquee
   ============================================ */

.tech-marquee {
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem 0;
}

.tech-marquee-content {
    display: flex;
    gap: 4rem;
    animation: marquee 30s linear infinite;
}

.tech-marquee-content:hover {
    animation-play-state: paused;
}

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

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 110px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tech-item:hover {
    transform: translateY(-12px) scale(1.08);
}

.tech-item:hover .tech-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(234, 88, 12, 0.2));
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.35),
                0 0 25px rgba(249, 115, 22, 0.2);
    transform: rotateY(360deg);
}

.tech-item:hover span:last-child {
    color: #f97316;
    transform: scale(1.05);
}

.tech-icon {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(234, 88, 12, 0.08));
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.1);
    position: relative;
    overflow: hidden;
}

.tech-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent, rgba(249, 115, 22, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.tech-item:hover .tech-icon::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out infinite;
}

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

.tech-item span:last-child {
    color: rgba(251, 146, 60, 0.95);
    font-size: smaller;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Typing Animation
   ============================================ */

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--primary);
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.typing-text {
    display: inline-block;
}

/* ============================================
   Enhanced Card Hover Effects
   ============================================ */

.service-card {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(249, 115, 22, 0.05) 100%);
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

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

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

/* ============================================
   Loading Animation
   ============================================ */

.loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(249, 115, 22, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   SweetAlert Custom Styles
   ============================================ */

.swal2-popup {
    border-radius: 1.5rem !important;
    padding: 2rem !important;
}

.swal2-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 2rem !important;
}

.swal2-cancel {
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
}

/* ============================================
   Mobile Services Submenu
   ============================================ */

.mobile-services-section button i {
    transition: transform 0.3s ease;
}

#mobile-services-submenu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobile-services-submenu:not(.hidden) {
    max-height: 500px;
}

#mobile-services-submenu a {
    display: flex;
    align-items: center;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

/* Mobile devices - consolidated styles */
@media (max-width: 768px) {
    /* Prevent horizontal scroll on mobile only */
    html {
        overflow-x: hidden;
        width: 100%;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .counter {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* Fix mobile menu positioning and scrolling */
    #mobile-menu {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Navbar overflow only on mobile */
    #navbar {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Fix mobile menu button positioning - prevent off-screen */
    #mobile-menu-btn {
        margin-right: 0;
        flex-shrink: 0;
    }

    /* Ensure navbar container has proper spacing on mobile */
    #navbar .max-w-7xl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Adjust flex container to prevent button overflow */
    #navbar .flex.items-center.justify-between {
        gap: 0.5rem;
    }

    /* Prevent overflow from hero decorative elements */
    .hero-gradient,
    .hero-pattern,
    section.hero-gradient {
        overflow-x: hidden !important;
    }

    /* Hide or reposition decorative elements that cause overflow */
    .absolute.-left-20,
    .absolute.-left-8 {
        left: 0 !important;
    }

    .absolute.-right-4,
    .absolute.-right-6 {
        right: 0 !important;
    }

    /* Ensure floating animation cards stay within viewport */
    .float-animation.absolute.-left-8 {
        left: 0.5rem !important;
    }

    .float-animation.absolute.-right-4 {
        right: 0.5rem !important;
    }

    /* Fix WhatsApp and Scroll-to-Top button overlap on mobile */
    #whatsapp-float {
        width: 3rem;
        height: 3rem;
        bottom: 1rem;
        right: 1rem;
    }

    #whatsapp-float svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .scroll-top-btn {
        bottom: 4.5rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    /* Better marquee animation speed on mobile */
    .tech-marquee-content {
        animation-duration: 45s; /* Slower on mobile */
    }
}

/* Samsung A51 and similar devices (360px-414px width) */
@media (min-width: 360px) and (max-width: 414px) {
    /* Prevent hamburger menu from going off-screen */
    #navbar .max-w-7xl {
        padding-left: 0.625rem;
        padding-right: 0.625rem;
    }

    #mobile-menu-btn {
        margin-right: 0;
        padding: 0.5rem;
    }

    /* Ensure logo doesn't take too much space */
    #navbar .flex.items-center.space-x-2 {
        gap: 0.375rem;
    }
}

/* Extra small screens - improve spacing */
@media (max-width: 375px) {
    .stats-card {
        padding: 1rem;
    }

    /* Further reduce navbar padding on very small screens */
    #navbar .max-w-7xl {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Ensure mobile menu button stays visible */
    #mobile-menu-btn {
        padding: 0.375rem;
        margin-right: -0.125rem;
    }
}

/* ============================================
   Accessibility
   ============================================ */

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

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }

    .btn-primary {
        border: 2px solid white;
    }
}

/* ============================================
   AI Page Animations
   ============================================ */

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-40px, 30px) scale(0.9);
    }
    66% {
        transform: translate(25px, -25px) scale(1.1);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.25;
        transform: scale(1.1);
    }
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 10s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 6s ease-in-out infinite;
}

/* Floating Particles */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 8s ease-in-out infinite;
}

/* Particle Color Variations */
.particle-cyan {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.8) 0%, rgba(6, 182, 212, 0) 70%);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.particle-blue {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.7) 0%, rgba(59, 130, 246, 0) 70%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.particle-purple {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.7) 0%, rgba(139, 92, 246, 0) 70%);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.particle-large {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.9) 0%, rgba(139, 92, 246, 0.3) 40%, transparent 70%);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.6), 0 0 50px rgba(139, 92, 246, 0.3);
}

@keyframes particle-float {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    5% {
        opacity: 0.3;
    }
    10% {
        transform: translate(10px, -20px) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-15px, -40px) scale(1.2);
        opacity: 0.8;
    }
    85% {
        opacity: 1;
    }
    95% {
        opacity: 0.2;
    }
    100% {
        transform: translate(20px, -60px) scale(0);
        opacity: 0;
    }
}

.particle-1 {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 10%;
    animation-duration: 7s;
    animation-delay: 0s;
}

.particle-2 {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 20%;
    animation-duration: 9s;
    animation-delay: 1s;
}

.particle-3 {
    width: 3px;
    height: 3px;
    top: 40%;
    left: 70%;
    animation-duration: 8s;
    animation-delay: 2s;
}

.particle-4 {
    width: 5px;
    height: 5px;
    top: 80%;
    left: 60%;
    animation-duration: 10s;
    animation-delay: 0.5s;
}

.particle-5 {
    width: 4px;
    height: 4px;
    top: 30%;
    left: 85%;
    animation-duration: 7.5s;
    animation-delay: 1.5s;
}

.particle-6 {
    width: 7px;
    height: 7px;
    top: 70%;
    left: 40%;
    animation-duration: 9.5s;
    animation-delay: 2.5s;
}

.particle-7 {
    width: 3px;
    height: 3px;
    top: 15%;
    left: 50%;
    animation-duration: 8.5s;
    animation-delay: 1.2s;
}

.particle-8 {
    width: 5px;
    height: 5px;
    top: 55%;
    left: 90%;
    animation-duration: 10s;
    animation-delay: 2.2s;
}

.particle-9 {
    width: 4px;
    height: 4px;
    top: 10%;
    left: 65%;
    animation-duration: 6s;
    animation-delay: 0.8s;
}

.particle-10 {
    width: 6px;
    height: 6px;
    top: 75%;
    left: 15%;
    animation-duration: 8.5s;
    animation-delay: 1.8s;
}

.particle-11 {
    width: 5px;
    height: 5px;
    top: 45%;
    left: 30%;
    animation-duration: 7.5s;
    animation-delay: 2.8s;
}

.particle-12 {
    width: 4px;
    height: 4px;
    top: 25%;
    left: 75%;
    animation-duration: 9s;
    animation-delay: 0.3s;
}

.particle-13 {
    width: 6px;
    height: 6px;
    top: 65%;
    left: 80%;
    animation-duration: 6.5s;
    animation-delay: 3.2s;
}

.particle-14 {
    width: 10px;
    height: 10px;
    top: 35%;
    left: 55%;
    animation-duration: 12s;
    animation-delay: 1s;
}

.particle-15 {
    width: 12px;
    height: 12px;
    top: 50%;
    left: 95%;
    animation-duration: 14s;
    animation-delay: 2s;
}

.particle-16 {
    width: 10px;
    height: 10px;
    top: 85%;
    left: 25%;
    animation-duration: 11s;
    animation-delay: 3.5s;
}

/* Neural Network Grid */
.neural-grid {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 8s linear infinite;
}

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

/* ============================================
   Print Styles
   ============================================ */

@media print {
    nav, footer, .scroll-top-btn {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}
