/* Additional custom styles for CoolTech website */
/* These complement the Tailwind CSS framework */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #22d3ee;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #06b6d4;
}

/* Selection color */
::selection {
    background: #22d3ee;
    color: #0f172a;
}

/* Focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #22d3ee !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover effects */
.service-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(34, 211, 238, 0.25);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Particle animation */
.cool-particle {
    position: absolute;
    background: rgba(165, 243, 252, 0.6);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
    pointer-events: none;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1.2);
        opacity: 0;
    }
}

/* Stat number styling */
.stat-number {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* Hero gradient background */
.hero-bg {
    background: linear-gradient(45deg, rgba(14, 165, 233, 0.95), rgba(34, 211, 238, 0.85));
}

/* Pulse animation for badges */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Image hover effects */
img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Button active states */
button:active,
a:active {
    transform: scale(0.98);
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hero-bg h1 {
        font-size: 3rem !important;
    }
    
    .service-card {
        padding: 1.5rem !important;
    }
    
    .glass {
        padding: 1.5rem !important;
    }
}

/* Print styles */
@media print {
    .fixed,
    nav,
    footer,
    button {
        display: none !important;
    }
}