/* Body and Base Styles */
body {
    padding-top: 64px; /* Add padding for fixed navbar (h-16 = 64px) */
    color: #1f2937;
    overflow-x: hidden;
}

/* Section Badge Typography */
.section-badge {
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Special handling for homepage hero section */
.homepage-main {
    padding-top: 0 !important;
}

.homepage-main .hero-section {
    height: 100vh !important;
    margin-top: -64px !important;
    padding-top: 64px !important;
    display: flex !important;
    align-items: center !important;
}

/* Service Icon Hover Effect */
.service-icon-container {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.service-icon-container:hover {
    background-color: #3b82f6 !important;
    transform: scale(1.1);
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.4),
        0 0 40px rgba(59, 130, 246, 0.2),
        0 4px 8px rgba(59, 130, 246, 0.3);
}

.service-icon-container:hover img {
    filter: brightness(0) invert(1);
    transform: scale(1.05);
}

/* Universal Icon Container Hover Effects */
.alphacode-icon-container,
.service-icon,
.industry-icon,
.contact-icon {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 12px;
}

/* Consultation services icons should be round */
.strategic-guidance-card .service-icon {
    border-radius: 50% !important;
}

/* Product icons specifically should remain circular */
.product-icon-wrapper {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 50% !important;
}

/* Enhanced Icon Hover Effects - Blue Glow Like in Image */
.card:hover .alphacode-icon-container,
.product-card:hover .product-icon-wrapper,
.service-card:hover .service-icon,
.industry-card:hover .industry-icon,
.alphacode-section-card:hover .alphacode-icon-container,
.contact-card:hover .contact-icon {
    background-color: #3b82f6 !important;
    transform: scale(1.1);
    box-shadow: 
        0 0 25px rgba(59, 130, 246, 0.5),
        0 0 50px rgba(59, 130, 246, 0.3),
        0 8px 16px rgba(59, 130, 246, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.6);
}

/* Icon Content Hover Effects */
.card:hover .alphacode-icon-container svg,
.card:hover .alphacode-icon-container i,
.product-card:hover .product-icon-wrapper svg,
.product-card:hover .product-icon-wrapper i,
.service-card:hover .service-icon svg,
.service-card:hover .service-icon i,
.industry-card:hover .industry-icon svg,
.industry-card:hover .industry-icon i,
.alphacode-section-card:hover .alphacode-icon-container svg,
.alphacode-section-card:hover .alphacode-icon-container i,
.contact-card:hover .contact-icon svg,
.contact-card:hover .contact-icon i {
    color: white !important;
    filter: brightness(0) invert(1);
    transform: scale(1.05);
}

/* Icon Images Hover Effects */
.card:hover .alphacode-icon-container img,
.product-card:hover .product-icon-wrapper img,
.service-card:hover .service-icon img,
.industry-card:hover .industry-icon img,
.alphacode-section-card:hover .alphacode-icon-container img,
.contact-card:hover .contact-icon img {
    filter: brightness(0) invert(1);
    transform: scale(1.05);
}

/* Mobile Menu Animation */
.nav-menu-enter {
    opacity: 0;
    transform: translateY(-20px);
}

.nav-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms, transform 300ms;
}

.nav-menu-exit {
    opacity: 1;
}

.nav-menu-exit-active {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 300ms, transform 300ms;
}

/* Hamburger Menu Animation */
.hamburger-line {
    width: 1.5rem;
    height: 2px;
    background-color: #1f2937;
    display: block;
    transition: all 0.3s ease-in-out;
}

.menu-open .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-open .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Logo Animation */
.nav-logo {
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

/* Nav Link Hover Effect */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #3b82f6;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .nav-link {
        display: block;
        border-radius: 0.25rem;
    }
    
    .nav-link::after {
        bottom: 0;
        height: 2px;
    }
    
    .active-link {
        background-color: rgba(59, 130, 246, 0.1);
        border-radius: 0.25rem;
    }
    
    .active-link::after {
        width: 100%;
        height: 2px;
        bottom: 0;
    }
}

/* Animations for the Homepage */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale3d(0.95, 0.95, 1);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-scale-up {
    animation: scaleUp 1s ease-out forwards;
}

.animate-delay-100 {
    animation-delay: 100ms;
}

.animate-delay-200 {
    animation-delay: 200ms;
}

.animate-delay-300 {
    animation-delay: 300ms;
}

.animate-delay-400 {
    animation-delay: 400ms;
}

.animate-delay-500 {
    animation-delay: 500ms;
}

.animate-delay-600 {
    animation-delay: 600ms;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button animations */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Image hover effects - OPTIMIZED */
.img-hover {
    transition: transform 0.3s ease-out;
    overflow: hidden;
}

.img-hover img {
    transition: transform 0.3s ease-out;
}

.img-hover:hover img {
    transform: scale(1.05);
}

/* Section animations */
.section-animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a3a3a3;
}

/* Complete outline removal system - consolidated from remove-outlines.css */
/* Apply to all elements to ensure no outlines anywhere */
* {
    outline: none !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}

/* Force-remove outlines on all interactive states */
*:active, *:focus, *:hover,
a, a:link, a:visited, a:hover, a:active, a:focus,
button, button:focus, button:active, button:hover,
input, input:focus, input:active, input:hover,
textarea, textarea:focus, textarea:active, textarea:hover,
select, select:focus, select:active, select:hover,
[role="button"], [role="button"]:focus, [role="button"]:active, [role="button"]:hover,
.social-icon, .social-icon:focus, .social-icon:active, .social-icon:hover,
.btn, .btn:focus, .btn:active, .btn:hover,
.nav-link, .nav-link:focus, .nav-link:active, .nav-link:hover,
.footer-link, .footer-link:focus, .footer-link:active, .footer-link:hover,
[tabindex]:not([tabindex="-1"]) {
    outline: 0 !important;
    outline-style: none !important;
    outline-width: 0 !important;
    outline-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    border-color: transparent !important;
}

/* Target Firefox specifically */
::-moz-focus-inner {
    border: 0 !important;
}

/* Additional Carousel Animation Styles */
.carousel-slide {
    transition: transform 700ms ease-in-out, opacity 700ms ease-in-out;
    visibility: visible;
    z-index: 0;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 5rem 1.5rem;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
    visibility: visible;
}

.carousel-slide.transition-slide {
    visibility: visible;
    display: flex !important;
    z-index: 5;
}

.carousel-slide.hidden-slide {
    visibility: hidden;
    z-index: -1;
}

/* Ensure proper initial state without flicker */
.carousel-slide:first-child {
    opacity: 1;
    z-index: 10;
}

/* Remove the force-visible class as we don't need it anymore */

/* Carousel height styles */
.h-screen {
    height: 100vh;
}

/* Adjust navbar for full-height carousel */
header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

main {
    padding-top: 0 !important;
}

/* Carousel slide text enhancement */
.carousel-slide .text-white h1,
.carousel-slide .text-white p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-slide .text-white h1 {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* Improved image preloading and transition */
.carousel-slide img {
    opacity: 1; /* Always show images - we control visibility via the slide */
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}
.carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.carousel-slide .container {
    z-index: 11 !important; /* Ensure text is above the new overlay */
}

/* Alpine.js x-cloak to prevent flashing of uninitialized elements */
[x-cloak] {
    display: none !important;
}

/* Add preloading enhancements for carousel images */
@keyframes fadeInImage {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-slide.active img {
    animation: fadeInImage 0.3s ease-in-out forwards;
}

/* Unified Small Title/Badge Styling */
.section-badge,
.category-badge,
.industry-badge,
.service-category {
    display: inline-block;
    background: #dbeafe; /* bg-blue-100 */
    color: #1d4ed8; /* text-blue-700 */
    font-weight: 500;
    border-radius: 9999px; /* rounded-full */
    transition: all 0.3s ease;
    font-size: 0.875rem; /* text-sm */
    line-height: 1.25rem;
    white-space: nowrap;
}

/* Main section badges (larger) */
.section-badge {
    padding: 0.25rem 1rem; /* px-4 py-1 */
    margin-bottom: 1rem; /* mb-4 */
    font-size: 0.875rem; /* Default font-size */
}

/* Service category badges (custom styling preserved) */
.service-category {
    background: white;
    color: #2563eb;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0.25rem; /* Less rounded for service cards */
}

/* Industry and small category badges */
.category-badge,
.industry-badge {
    padding: 0.25rem 0.75rem; /* px-3 py-1 */
    margin-bottom: 0.5rem; /* mb-2 */
    font-size: 0.75rem; /* text-xs */
}

/* Hover effects for all badges */
.section-badge:hover,
.category-badge:hover,
.industry-badge:hover {
    background: #2563eb; /* bg-blue-600 */
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Service category hover (preserve existing functionality) */
.service-card:hover .service-category {
    background-color: rgba(59, 130, 246, 0.9);
    color: white;
}

/* Blue Shadow System for All Cards - Enhanced for Better Visibility */
/* Base card classes with stronger blue shadows */
.bg-white.rounded-lg,
.bg-white.rounded-xl,
.product-card,
.service-card,
.industry-card,
.process-step,
.alphacode-section-card {
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2), 
                0 4px 6px -2px rgba(59, 130, 246, 0.15),
                0 2px 4px 0 rgba(59, 130, 246, 0.1) !important;
    transition: all 0.3s ease !important;
}

/* Enhanced blue shadows on hover - Stronger for better visibility */
.bg-white.rounded-lg:hover,
.bg-white.rounded-xl:hover,
.product-card:hover,
.service-card:hover,
.industry-card:hover,
.process-step:hover,
.alphacode-section-card:hover {
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.3), 
                0 10px 15px -3px rgba(59, 130, 246, 0.2),
                0 4px 8px -2px rgba(59, 130, 246, 0.15) !important;
    transform: translateY(-4px) !important;
}

/* Special handling for cards that already have transform classes */
.transform.transition-all:hover {
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.3), 
                0 10px 15px -3px rgba(59, 130, 246, 0.2),
                0 4px 8px -2px rgba(59, 130, 246, 0.15) !important;
}

/* Override any existing shadow classes with stronger shadows */
.shadow-sm,
.shadow,
.shadow-md,
.shadow-lg,
.shadow-xl {
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2), 
                0 4px 6px -2px rgba(59, 130, 246, 0.15),
                0 2px 4px 0 rgba(59, 130, 246, 0.1) !important;
}

/* Enhanced shadows for hover states */
.hover\\:shadow-lg:hover,
.hover\\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.3), 
                0 10px 15px -3px rgba(59, 130, 246, 0.2),
                0 4px 8px -2px rgba(59, 130, 246, 0.15) !important;
}

/* ===== ALPHACODE SECTION CARDS STYLES ===== */
/* Base Card Styling for Why Choose AlphaCode sections - High Specificity */
.alphacode-section-card.variant-1,
.alphacode-section-card.variant-2,
.alphacode-section-card.variant-3,
.alphacode-section-card.variant-4,
.alphacode-section-card {
    background: #ffffff !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    /* Enhanced shadows matching shadow-lg strength */
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2), 
                0 4px 6px -2px rgba(59, 130, 246, 0.15),
                0 2px 4px 0 rgba(59, 130, 246, 0.1) !important;
}

/* Icon Container Styling */
.alphacode-icon-container {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    background-color: #dbeafe;
    box-shadow: none;
}

/* Icon Styling */
.alphacode-icon-container svg,
.alphacode-icon-container i,
.alphacode-icon-container img {
    width: 1.5rem;
    height: 1.5rem;
    color: #3b82f6;
    transition: all 0.3s ease;
}

/* Card Title Styling */
.alphacode-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

/* Card Description Styling */
.alphacode-card-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    flex-grow: 1;
    transition: all 0.3s ease;
}

/* Enhanced Hover Effects for AlphaCode Section Cards */
.alphacode-section-card.variant-1:hover,
.alphacode-section-card.variant-2:hover,
.alphacode-section-card.variant-3:hover,
.alphacode-section-card.variant-4:hover,
.alphacode-section-card:hover {
    /* Enhanced shadows matching shadow-xl strength */
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.3), 
                0 10px 15px -3px rgba(59, 130, 246, 0.2),
                0 4px 8px -2px rgba(59, 130, 246, 0.15) !important;
    transform: translateY(-4px) !important;
}

/* Additional Card Background Styling */
.alphacode-section-card.variant-1,
.alphacode-section-card.variant-2,
.alphacode-section-card.variant-3,
.alphacode-section-card.variant-4 {
    border-color: #e5e7eb !important;
}

/* Icon Hover Effects */
.alphacode-section-card:hover .alphacode-icon-container {
    background-color: #3b82f6 !important;
    transform: scale(1.1);
    box-shadow: 
        0 0 25px rgba(59, 130, 246, 0.5),
        0 0 50px rgba(59, 130, 246, 0.3),
        0 8px 16px rgba(59, 130, 246, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.6);
}

.alphacode-section-card:hover .alphacode-icon-container svg,
.alphacode-section-card:hover .alphacode-icon-container i {
    color: white !important;
    filter: brightness(0) invert(1);
    transform: scale(1.05);
}

.alphacode-section-card:hover .alphacode-icon-container img {
    filter: brightness(0) invert(1);
    transform: scale(1.05);
}
