/* Custom styles beyond Tailwind */
html {
    scroll-behavior: smooth;
}

/* Blog prose styles (Tailwind Typography plugin not compiled, so manual) */
.prose {
    line-height: 1.75;
}
.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}
.prose p:first-child {
    margin-top: 0;
}
.prose h2 {
    font-size: 1.5em;
    font-weight: 700;
    color: #111827;
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
}
.prose h3 {
    font-size: 1.25em;
    font-weight: 600;
    color: #111827;
    margin-top: 1.6em;
    margin-bottom: 0.5em;
    line-height: 1.4;
}
.prose h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.4em;
    margin-bottom: 0.4em;
}
.prose ul, .prose ol {
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 1.75em;
}
.prose ul {
    list-style-type: disc;
}
.prose ol {
    list-style-type: decimal;
}
.prose li {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
}
.prose li strong {
    color: #111827;
}
.prose a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.4);
    text-underline-offset: 2px;
    transition: color 0.15s, text-decoration-color 0.15s;
}
.prose a:hover {
    color: #1d4ed8;
    text-decoration-color: #1d4ed8;
}
.prose strong {
    font-weight: 600;
    color: #111827;
}
.prose blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1em;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    color: #4b5563;
    font-style: italic;
}
.prose hr {
    border-color: #e5e7eb;
    margin-top: 2em;
    margin-bottom: 2em;
}
.prose-lg {
    font-size: 1.125rem;
}

/* Ensure touch targets are large enough for primary navigation and buttons */
button,
nav a {
    min-height: 44px;
    min-width: 44px;
}

/* Improve text readability */
p {
    line-height: 1.6;
}

/* Liquid animations and effects */
.liquid-hover {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.liquid-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.6s ease;
}

.liquid-hover:hover::before {
    left: 100%;
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: inherit;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.6s, opacity 0.6s;
}

.ripple:active::after {
    transform: scale(2);
    opacity: 0;
    transition: 0s;
}

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

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Wave background */
.wave-bg {
    position: relative;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    overflow: hidden;
}

.wave-bg::before,
.wave-bg::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: rgba(255, 255, 255, 0.1);
    transform-origin: 50% 50%;
    border-radius: 43%;
    animation: wave 15s linear infinite;
}

.wave-bg::after {
    animation: wave 15s linear infinite;
    opacity: 0.5;
    animation-delay: -5s;
}

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

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(
        90deg,
        #2563eb,
        #3b82f6,
        #60a5fa,
        #2563eb
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 8s ease infinite;
}

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

/* Water-like animations and effects */

/* Liquid blob background */
.water-bg {
    position: relative;
    background: linear-gradient(180deg, 
        #1e40af 0%,
        #3b82f6 35%,
        #60a5fa 100%);
    overflow: hidden;
}

/* First wave layer */
.water-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    animation: wave1 15s linear infinite;
    border-radius: 45%;
    z-index: 1;
}

/* Second wave layer */
.water-bg::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    animation: wave2 25s linear infinite;
    border-radius: 47%;
    z-index: 2;
}

/* Wave animations */
@keyframes wave1 {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

/* Surface reflection effect */
.water-surface {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
    z-index: 3;
}

/* Ripple overlay */
.ripple-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 10%),
        radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 15%),
        radial-gradient(circle at 40% 70%, rgba(255,255,255,0.1) 0%, transparent 12%);
    z-index: 4;
    animation: ripple 10s ease-in-out infinite;
}

@keyframes ripple {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

/* Ripple hover effect */
.water-ripple {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.water-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 60%
    );
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease-out;
}

.water-ripple:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Droplet effect */
.droplet {
    position: relative;
}

.droplet::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0)
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.droplet:hover::before {
    opacity: 1;
    animation: drip 1s ease-out;
}

@keyframes drip {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Bubble float animation */
.bubble-float {
    animation: bubble 3s ease-in-out infinite;
    position: relative;
}

.bubble-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 60%
    );
    border-radius: inherit;
}

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

/* Water text effect */
.water-text {
    background: linear-gradient(
        to bottom,
        #60a5fa 0%,
        #3b82f6 50%,
        #2563eb 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.water-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: water-shine 4s linear infinite;
}

@keyframes water-shine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Subtle hover effect for cards */
.card-hover {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

.card-hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(59, 130, 246, 0.05)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.15);
}

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

/* Clean text styling */
.title-text {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Water theme styles */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
}

.water-gradient {
    background: linear-gradient(
        135deg,
        #1e40af 0%,
        #3b82f6 50%,
        #60a5fa 100%
    );
}

.wave-section {
    position: relative;
    background: linear-gradient(
        180deg,
        #1e40af 0%,
        #2563eb 100%
    );
    overflow: hidden;
}

/* Create wave effect using pseudo-elements */
.wave-section::before,
.wave-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background-color: white;
    clip-path: polygon(
        0% 100%,
        100% 100%,
        100% 0%,
        75% 50%,
        50% 0%,
        25% 50%,
        0 0%
    );
    animation: waveMove 10s linear infinite;
}

.wave-section::after {
    bottom: -20px;
    opacity: 0.5;
    animation: waveMove 15s linear infinite reverse;
}

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

/* Modern card effects */
.hover-card {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(30, 64, 175, 0.15);
}

/* Animated icon container */
.icon-container {
    position: relative;
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.icon-container:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
}

/* Particle effect */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

#particle-container {
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(59, 130, 246, 0.1); /* blue-500 with low opacity */
    border-radius: 50%;
    pointer-events: none;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
    }
}

/* Water hero section */
.water-hero {
    position: relative;
    overflow: hidden;
}

.water-hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 30s linear infinite;
    z-index: 1;
}

.water-waves,
.water-ripple,
.water-surface {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.tech-grid,
.glow-effect,
#particle-container {
    z-index: 3;
}

/* Ensure main content is above all effects */
.container {
    position: relative;
    z-index: 10;
}

/* Primary wave effect */
.water-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    transform-origin: center bottom;
    animation: waterFlow 8s ease-in-out infinite;
}

@keyframes waterFlow {
    0%, 100% {
        transform: scale(1.05) rotate(1deg);
    }
    50% {
        transform: scale(1) rotate(-1deg);
    }
}

/* Subtle surface reflection */
.water-surface {
    position: absolute;
    width: 200%;
    height: 100%;
    top: -25%;
    left: -50%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 60%
    );
    animation: surfaceMove 12s linear infinite;
    pointer-events: none;
}

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

/* Clean card design */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
}

/* Service cards */
.service-card {
    position: relative;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.1),
        rgba(59, 130, 246, 0.05)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

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

/* Icon container */
.icon-box {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.2);
}

.service-card:hover .icon-box {
    box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.3);
}

/* Text line clamp for descriptions */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth transitions for all interactive elements */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Debug visibility */
.debug-visible {
    border: 1px solid red; /* Temporary border to check positioning */
    min-height: 100px;
}

/* Force visibility for all cards */
.service-card,
.approach-step,
.commitment-card {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Animation classes */
.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.animate-fade-in-up-delay {
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.animate-fade-in-up-delay-2 {
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

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

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

/* Floating elements */
.floating-icon {
    position: absolute;
    left: var(--x);
    top: var(--y);
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -10px);
    }
    50% {
        transform: translate(-5px, 15px);
    }
    75% {
        transform: translate(-15px, -5px);
    }
}

/* Enhanced water effects */
.water-ripple {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: ripple 8s linear infinite;
}

.water-surface {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    animation: surface 4s ease-in-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes surface {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Water waves animation */
.water-waves {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    filter: url('#turbulence');
    animation: waves 10s linear infinite;
}

/* Liquid text effect */
.liquid-text {
    background: linear-gradient(45deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.liquid-text::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.5) 50%, transparent 55%);
    animation: liquidShine 3s infinite;
}

/* Liquid button effects */
.liquid-button .liquid-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.liquid-button:hover .liquid-fill {
    transform: translateY(0);
}

.liquid-button:hover span {
    color: white;
}

/* Water effect for logo container */
.water-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: waterPulse 4s ease-in-out infinite;
}

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

@keyframes waterPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

/* Tech Grid Background */
.tech-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: top;
    animation: gridMove 20s linear infinite;
}

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

/* Glow Effects */
.glow-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 60%);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Tech Icons */
.tech-icon {
    position: absolute;
    left: var(--x);
    top: var(--y);
    animation: floatIcon 6s ease-in-out infinite;
    animation-delay: var(--delay);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

@keyframes floatIcon {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(5deg); }
    50% { transform: translate(0, -20px) rotate(0deg); }
    75% { transform: translate(-10px, -10px) rotate(-5deg); }
}

/* Text Gradients — high-contrast white for hero sections on blue backgrounds */
.text-gradient {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.text-gradient-blue {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

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

/* Holographic Container */
.holographic-container {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.8)
    );
    backdrop-filter: blur(10px);
}

.holographic-effect {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    animation: holographicShine 3s linear infinite;
}

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

/* Neon Button */
.neon-button {
    position: relative;
    transition: all 0.3s ease;
}

.neon-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #60a5fa, #3b82f6, #2563eb);
    border-radius: inherit;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neon-button:hover::before {
    opacity: 1;
}

/* Glass Button */
.glass-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Neon Arrow */
.neon-arrow {
    filter: drop-shadow(0 0 5px #60a5fa) drop-shadow(0 0 10px #3b82f6);
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 5px #60a5fa); }
    50% { opacity: 1; filter: drop-shadow(0 0 10px #3b82f6); }
}

/* Make sure ripples are visible */
.ripples {
    opacity: 0.5;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ripples canvas {
    opacity: 0.5;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/* Logo container styles */
.bg-grid-pattern {
    background-image: linear-gradient(to right, rgba(59, 130, 246, 0.1) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

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

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

/* Enhanced shadow for better depth */
.shadow-inner {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.drop-shadow-xl {
    filter: drop-shadow(0 20px 13px rgba(0, 0, 0, 0.03))
           drop-shadow(0 8px 5px rgba(0, 0, 0, 0.08));
}

/* Floating circles */
.floating-circles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.circle {
    position: absolute;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatCircle 20s linear infinite;
}

.circle:nth-child(1) {
    width: 600px;
    height: 600px;
    left: -100px;
    top: -100px;
    animation-delay: 0s;
}

.circle:nth-child(2) {
    width: 400px;
    height: 400px;
    right: -50px;
    bottom: -50px;
    animation-delay: -5s;
}

.circle:nth-child(3) {
    width: 300px;
    height: 300px;
    left: 50%;
    top: 30%;
    animation-delay: -10s;
}

@keyframes floatCircle {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(100px, 50px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Light beam effect */
.light-beam {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.1) 50%, transparent 55%);
    animation: beam 8s linear infinite;
    pointer-events: none;
}

@keyframes beam {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Digital rain effect */
.digital-rain {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(59, 130, 246, 0.05) 50%,
        transparent 100%
    );
    background-size: 100% 20px;
    animation: digitalRain 20s linear infinite;
    opacity: 0.3;
}

@keyframes digitalRain {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 1000px;
    }
}

/* Enhanced glow effects */
.glow-text {
    text-shadow: 
        0 0 10px rgba(59, 130, 246, 0.3),
        0 0 20px rgba(59, 130, 246, 0.2),
        0 0 30px rgba(59, 130, 246, 0.1);
}

/* Footer Logo Container Styles */
.footer-logo-container {
    isolation: isolate;
    perspective: 1000px;
    position: relative;
    min-height: 200px;
    background: white;  /* Add solid white background */
}

.footer-logo-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(45deg, rgb(255 255 255), rgb(255 255 255), rgb(255 255 255));
    border-radius: 12px;
    z-index: 0;
}

/* Grid Pattern Background */
.bg-grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Ensure proper stacking */
.footer-logo-container > div {
    position: relative;
    z-index: 1;
}

.footer-logo-container .bg-white {
    z-index: 1;
}

.footer-logo-container .bg-grid-pattern {
    z-index: 2;
    opacity: 0.1;
}

.footer-logo-container img {
    position: relative;
    z-index: 3;
}

/* Remove any extra spacing */
footer {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Footer menu animations */
.footer-menu-item {
    position: relative;
    overflow: hidden;
}

.footer-menu-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, theme('colors.blue.400'), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.footer-menu-item:hover::after {
    transform: translateX(100%);
}

/* Social icons pulse effect */
@keyframes socialPulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.social-icon:hover {
    animation: socialPulse 1.5s infinite;
}

/* Footer Background Effects */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
}

/* Animated grid background */
.footer-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    animation: gridFloat 20s linear infinite;
}

@keyframes gridFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-30px); }
}

/* Glowing orbs effect */
.footer-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.5;
    animation: glowPulse 4s ease-in-out infinite;
}

.footer-glow:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.footer-glow:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: -2s;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

/* Enhanced link hover effects */
.footer-menu-item {
    position: relative;
    transition: all 0.3s ease;
}

.footer-menu-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, theme('colors.blue.400'));
    transform: translateY(-50%);
    transition: width 0.3s ease;
}

.footer-menu-item:hover::before {
    width: 8px;
}

/* Add these to your existing footer styles */
.footer-content {
    position: relative;
    z-index: 1;
}

/* Animated Grid Background */
.footer-grid-animated {
    background-image: 
        linear-gradient(to right, rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridMove 20s linear infinite;
    mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0.8) 80%, transparent);
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-30px); }
}

/* Glowing Orbs */
.footer-orb {
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(59, 130, 246, 0.1) 30%,
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(40px);
    animation: orbFloat 8s ease-in-out infinite;
}

.footer-orb:nth-child(2) {
    animation-delay: -2s;
    width: 300px;
    height: 300px;
}

.footer-orb:nth-child(3) {
    animation-delay: -4s;
    width: 250px;
    height: 250px;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -10px); }
    50% { transform: translate(0, -20px); }
    75% { transform: translate(-10px, -10px); }
}

/* Enhanced hover effects for menu items */
.footer-menu-item {
    position: relative;
    transition: all 0.3s ease;
}

.footer-menu-item:hover {
    padding-left: 0.5rem;
    color: theme('colors.blue.400');
}

/* Ensure content stays above background effects */
.footer-content {
    position: relative;
    z-index: 10;
}

/* Enhanced Footer Glow Effects */
footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.1),
        rgba(59, 130, 246, 0.2),
        rgba(59, 130, 246, 0.4),
        rgba(59, 130, 246, 0.6),
        rgba(59, 130, 246, 0.4),
        rgba(59, 130, 246, 0.2),
        rgba(59, 130, 246, 0.1),
        transparent
    );
    animation: glowLine 4s linear infinite;
    box-shadow: 
        0 0 10px rgba(59, 130, 246, 0.3),
        0 0 20px rgba(59, 130, 246, 0.2),
        0 0 30px rgba(59, 130, 246, 0.1);
}

@keyframes glowLine {
    0% {
        opacity: 0.5;
        filter: blur(2px);
    }
    50% {
        opacity: 1;
        filter: blur(1px);
    }
    100% {
        opacity: 0.5;
        filter: blur(2px);
    }
}

/* Enhance the footer background */
footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        rgba(17, 24, 39, 1),
        rgba(17, 24, 39, 0.95)
    );
}

/* Add a subtle grid pattern */
.footer-grid-bg {
    opacity: 0.05;
    background-size: 20px 20px;
    background-image: 
        linear-gradient(to right, rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
} 