/* ========================================
   HOME PAGE ENHANCEMENTS
   Small improvements without changing structure
   ======================================== */

/* Enhanced Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Better Card Hover Effects */
.bg-white.p-6.rounded-lg,
.bg-white.p-8.rounded-lg,
.bg-gradient-to-br {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-white.p-6.rounded-lg:hover,
.bg-white.p-8.rounded-lg:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.bg-gradient-to-br:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Glow effect on hover for service cards */
.bg-white.p-8.rounded-lg {
    position: relative;
    overflow: hidden;
}

.bg-white.p-8.rounded-lg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bg-white.p-8.rounded-lg:hover::before {
    opacity: 1;
}

/* Enhanced Button Hover Effects */
.bg-blue-600,
.bg-white.text-blue-700 {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bg-blue-600::after,
.bg-white.text-blue-700::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.bg-blue-600:hover::after,
.bg-white.text-blue-700:hover::after {
    width: 300px;
    height: 300px;
}

/* Smooth Icon Animations */
svg {
    transition: transform 0.3s ease;
}

.bg-white.p-6.rounded-lg:hover svg,
.bg-white.p-8.rounded-lg:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced Stats Cards with Counter Animation */
.aspect-square {
    position: relative;
    overflow: hidden;
}

.aspect-square::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.aspect-square:hover::before {
    transform: translateX(100%);
}

/* Better Link Hover Effects */
a.text-blue-600,
a.text-blue-700,
a.text-green-700,
a.text-amber-700,
a.text-red-700 {
    position: relative;
    display: inline-block;
}

a.text-blue-600::after,
a.text-blue-700::after,
a.text-green-700::after,
a.text-amber-700::after,
a.text-red-700::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

a.text-blue-600:hover::after,
a.text-blue-700:hover::after,
a.text-green-700:hover::after,
a.text-amber-700:hover::after,
a.text-red-700:hover::after {
    width: 100%;
}

/* Enhanced Hero Section */
header[role="banner"] {
    position: relative;
}

header[role="banner"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Animated Gradient Text */
.text-cyan-300 {
    background: linear-gradient(90deg, #67e8f9, #22d3ee, #06b6d4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

/* Logo Video Enhancement */
#logoVideo {
    transition: transform 0.3s ease;
}

a:hover #logoVideo {
    transform: scale(1.8);
}

/* Carousel Buttons Enhancement */
#prev-slide,
#next-slide {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#prev-slide:hover,
#next-slide:hover {
    transform: translateY(-50%) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

/* Section Heading Animations */
h2 {
    position: relative;
    display: inline-block;
}

h2 span.text-blue-600 {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Stat Numbers */
.text-4xl.lg\:text-5xl.font-bold {
    background: linear-gradient(135deg, currentColor, currentColor 50%, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Better CTA Section */
.bg-gradient-to-r {
    position: relative;
    overflow: hidden;
}

.bg-gradient-to-r::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Scroll Reveal Animations */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays */
.animate-fade-in-up:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-fade-in-up:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-fade-in-up:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-fade-in-up:nth-child(4) {
    animation-delay: 0.4s;
}

.animate-fade-in-up:nth-child(5) {
    animation-delay: 0.5s;
}

.animate-fade-in-up:nth-child(6) {
    animation-delay: 0.6s;
}

/* Enhanced Image Loading */
img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Better Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Smooth Transitions for all hoverable elements */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Optimization */
@media (max-width: 768px) {

    .bg-white.p-6.rounded-lg:hover,
    .bg-white.p-8.rounded-lg:hover,
    .bg-gradient-to-br:hover {
        transform: none;
    }
}

/* Loading State Enhancement */
body {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Text Selection Enhancement */
::selection {
    background-color: #3b82f6;
    color: white;
}

::-moz-selection {
    background-color: #3b82f6;
    color: white;
}