/* Tailwind Custom Styles - Extensions beyond Tailwind's default utility classes */

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

::-webkit-scrollbar-track {
    background-color: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #6D28D9, #2563EB);
    border-radius: 10px;
    border: 3px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #5B21B6, #1D4ED8);
}

/* Enhanced color contrast utilities */
.text-contrast-dark {
    color: #0F172A !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.1);
}

.text-contrast-light {
    color: #F8FAFC !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Ensure proper contrast for text on various backgrounds */
.bg-dark .text-auto,
.bg-dark-light .text-auto,
.bg-primary-dark .text-auto,
.bg-secondary-dark .text-auto,
.bg-gradient-to-r.from-dark .text-auto {
    color: #F1F5F9 !important;
}

.bg-light .text-auto,
.bg-white .text-auto,
.bg-gray-50 .text-auto,
.bg-gray-100 .text-auto {
    color: #1E293B !important;
}

/* Improved text contrast for different backgrounds */
.bg-dark text-auto,
.bg-dark-light text-auto,
.bg-primary-dark text-auto,
.bg-secondary-dark text-auto,
.bg-gradient-to-r.from-dark text-auto {
    color: #FFFFFF !important;
}

.bg-light text-auto,
.bg-white text-auto,
.bg-gray-50 text-auto,
.bg-gray-100 text-auto {
    color: #1E293B !important;
}

/* Enhanced heading contrast */
.bg-dark .text-gray-700,
.bg-dark .text-gray-800,
.bg-dark .text-gray-900,
.bg-primary-dark .text-gray-700,
.bg-primary-dark .text-gray-800,
.bg-primary-dark .text-gray-900,
.bg-secondary-dark .text-gray-700,
.bg-secondary-dark .text-gray-800,
.bg-secondary-dark .text-gray-900 {
    color: #F1F5F9 !important;
}

/* Improved background colors with better contrast */
.bg-light-contrast {
    background-color: #F8FAFC;
}

.bg-dark-contrast {
    background-color: #0F172A;
}

.bg-primary-soft {
    background-color: rgba(15, 118, 110, 0.08);
}

.bg-secondary-soft {
    background-color: rgba(30, 64, 175, 0.08);
}

/* Enhanced section backgrounds for better contrast */
.section-bg-dark {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #F8FAFC;
}

.section-bg-light {
    background: linear-gradient(135deg, #F8FAFC, #F1F5F9);
    color: #0F172A;
}

/* Before and After image comparison slider */
.image-comparison {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-comparison img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-image {
    z-index: 1;
}

.after-image {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.comparison-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: white;
    z-index: 3;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.comparison-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-slider::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #0F766E;
    font-weight: bold;
}

/* Animation adjustments */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

/* Reduced animation speed */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 15s linear infinite;
}

/* Subtle pulse animation */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
}

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

/* Enhanced wave animation for blob shapes */
@keyframes wave {
    0%, 100% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }
    25% {
        border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
    }
    50% {
        border-radius: 40% 60% 50% 50%/40% 40% 60% 60%;
    }
    75% {
        border-radius: 60% 40% 30% 70%/40% 70% 40% 50%;
    }
}

.animate-wave {
    animation: wave 15s infinite linear;
}

/* Enhanced button hover effects */
.btn-hover-effect {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(15, 118, 110, 0.3);
}

/* Glass morphism effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navbar active link styles */
.nav-link.active {
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.8), rgba(30, 64, 175, 0.8));
    color: white !important;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.5);
}

/* For navbar transparency on scroll - more subtle */
.navbar-scrolled {
    background-color: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Custom card hover effects - more subtle */
.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(15, 118, 110, 0.12);
    border-color: rgba(15, 118, 110, 0.4);
}

/* 3D card effect */
.card-3d {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) translateY(-10px);
}

/* Reveal animation for scroll effects */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient text effect */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, #6D28D9, #2563EB);
}

/* Enhanced background gradients */
.bg-gradient {
    background-image: linear-gradient(to right, #6D28D9, #2563EB);
}

/* Glow effect for elements */
.glow {
    box-shadow: 0 0 15px rgba(109, 40, 217, 0.5);
    transition: box-shadow 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 30px rgba(109, 40, 217, 0.8);
}

/* Modern blob shapes */
.blob {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    transition: border-radius 1s ease;
}

.blob:hover {
    border-radius: 40% 60% 70% 30%/50% 60% 30% 60%;
}

/* Custom highlight styles */
.highlight {
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    background-color: rgba(109, 40, 217, 0.2);
    bottom: 0;
    left: 0;
    z-index: -1;
    border-radius: 5px;
}

/* Enhanced section padding */
.section-py {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    .section-py {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Enhanced container padding */
.container-px {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Enhanced hero section */
.hero-height {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Improved hero gradient overlay */
.hero-overlay {
    background: linear-gradient(135deg, 
        rgba(109, 40, 217, 0.2), 
        rgba(37, 99, 235, 0.2)
    );
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    z-index: 0;
}

/* Enhanced image styles */
.img-hover-scale {
    transition: transform 0.6s ease;
    overflow: hidden;
}

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

/* Hero gradient overlay */
.hero-overlay {
    background: linear-gradient(rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.95));
}

/* Enhanced testimonial styles */
.testimonial-card {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-7px);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Social icon hover effects */
.social-icon-hover {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.social-icon-hover:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #6D28D9, #2563EB) !important;
    color: white !important;
    box-shadow: 0 8px 15px rgba(109, 40, 217, 0.3);
}

/* Improved footer styling for social icons */
.footer .social-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    transition: all 0.3s ease !important;
    margin-right: 10px !important;
}

.footer .social-icon:hover {
    background: linear-gradient(135deg, #6D28D9, #4F46E5) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.3) !important;
}

/* Image border effect */
.img-border-effect {
    border: 3px solid transparent;
    transition: all 0.4s ease;
}

.img-border-effect:hover {
    border-color: #6D28D9;
    transform: rotate(5deg);
}

/* Custom switch animation */
@keyframes switch {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.animate-switch {
    animation: switch 3s infinite;
}

/* Project card enhancements */
.project-card {
    transition: all 0.4s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(15, 118, 110, 0.12);
}

/* Enhanced background shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.3), transparent 70%);
    animation: float 15s infinite alternate-reverse ease-in-out;
    z-index: 0;
}

/* Custom utility for contact form */
.contact-input {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-input:focus {
    border-color: #6D28D9;
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.1);
    outline: none;
}

/* New glass effect components */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

/* Hero image animations */
.hero-image-float {
    animation: float 6s ease-in-out infinite;
}

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

/* Gradient text enhancement */
.gradient-text {
    background: linear-gradient(135deg, #0F766E, #3B82F6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Enhanced button styles */
.btn-gradient {
    background: linear-gradient(135deg, #6D28D9, #2563EB);
    color: white !important;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(109, 40, 217, 0.3);
}

.btn-gradient:hover {
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.4);
    transform: translateY(-3px);
}

/* Form input colors with better contrast */
.form-input-dark {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

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

.form-input-light {
    background-color: white;
    border: 1px solid rgba(15, 23, 42, 0.2);
    color: #0F172A;
}

.form-input-light::placeholder {
    color: rgba(15, 23, 42, 0.5);
}

/* Enhanced navbar with improved contrast */
.navbar-improved {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.navbar-improved .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

.navbar-improved .nav-link:hover,
.navbar-improved .nav-link.active {
    color: white !important;
    background-color: rgba(109, 40, 217, 0.5);
}

/* Button with improved visibility */
.btn-visible-light {
    background-color: white;
    color: #6D28D9;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-visible-light:hover {
    background-color: #F8FAFC;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-visible-dark {
    background-color: #0F172A;
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-visible-dark:hover {
    background-color: #1E293B;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Enhanced button visibility for dark backgrounds */
.hero-btn-text {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-primary-btn {
    background: linear-gradient(135deg, #6D28D9, #5B21B6);
    color: white;
    box-shadow: 0 6px 15px rgba(109, 40, 217, 0.5);
    border: none;
}

.hero-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.7);
}

.hero-secondary-btn {
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.hero-secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Enhanced social icon visibility */
.social-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.25) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.social-icon i {
    color: white !important;
    font-size: 1.1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.social-icon:hover {
    background: linear-gradient(135deg, #6D28D9, #2563EB) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 16px rgba(109, 40, 217, 0.4) !important;
    border-color: #8B5CF6 !important;
}

/* Enhanced blog section */
.blog-card {
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.08);
}

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 10px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.blog-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6D28D9;
    line-height: 1;
    margin-bottom: 2px;
}

.blog-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748B;
    font-weight: 500;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    color: #64748B;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-meta i {
    color: #6D28D9;
    margin-right: 0.5rem;
}

.blog-meta span {
    margin-right: 1rem;
}

/* Ensure FontAwesome icons are always visible */
.fab, .fas, .far, .fal, .fad {
    color: inherit !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ensure better contrast for buttons */
.bg-gradient-to-r.from-indigo-600.to-indigo-400 {
    color: white !important;
    font-weight: 600 !important;
}

/* Footer glow effects */
.footer-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.1;
}

.footer-glow-1 {
    width: 300px;
    height: 300px;
    background: #6D28D9;
    top: -100px;
    right: -50px;
}

.footer-glow-2 {
    width: 350px;
    height: 350px;
    background: #4F46E5;
    bottom: -150px;
    left: -100px;
}
