/* Custom Styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Button Hover Lift Effect */
.btn-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.25);
}

/* Horizontal Scroll Container for Workflow */
.horizontal-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #D4AF37 #0A1F44; /* Firefox */
}
/* Webkit scrollbar styles */
.horizontal-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}
.horizontal-scroll-wrapper::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 10px;
}
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 10px;
}
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #b89b31;
}

/* Client Logo Carousel */
.logo-carousel .logos-slide {
    animation: 30s slide infinite linear;
}
@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Animated form fields */
.form-group {
    position: relative;
}
.form-input {
    transition: border-color 0.3s ease;
}
.form-label {
    position: absolute;
    left: 1rem;
    top: 0.85rem;
    color: #6b7280;
    transition: all 0.2s ease;
    pointer-events: none;
    background-color: white;
    padding: 0 0.25rem;
}
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: #0A1F44;
}
.form-input:focus {
    border-color: #D4AF37 !important; /* Use important to override tailwind */
    outline: none;
}

/* Animated Connectors for Workflow */
.connector {
    position: relative;
    flex-grow: 1;
    height: 2px;
    background-color: #e5e7eb;
    margin: 0 1rem;
    transform: scaleX(0);
    transform-origin: left;
}
.connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #e5e7eb;
}

/* For GSAP animations, hide elements initially */
.anim-fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.timeline-list li {
    opacity: 0;
    transform: translateX(-20px);
}

/* Lightbox transition */
#lightbox-content {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

/* Expertise Cards with Slide-in Hover Effect */
.expertise-card {
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white */
    border-radius: 0.75rem;
    border: 1px solid #4b5563; /* gray-600 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden; /* Important for the effect */
    z-index: 1;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #009688; /* inz-teal */
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
}

.expertise-card:hover {
    transform: translateY(-8px);
}

.expertise-card:hover::before {
    transform: translateX(0);
}

.expertise-card h4, .expertise-card p {
    position: relative;
    z-index: 2; /* Ensure text is above the overlay */
    transition: color 0.3s ease;
}

.expertise-card:hover h4 {
    color: white;
}
.expertise-card:hover p {
    color: #e5e7eb; /* A lighter gray for the subtext */
}


/* Interactive Services Section Stepper */
#service-list-container {
    position: relative;
}

#service-list-line {
    position: absolute;
    left: 32px; /* (Icon container width 64px / 2) */
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #374151; /* gray-700 */
    z-index: 0;
}

.service-list-item {
    position: relative;
    padding-left: 88px; /* Space for the icon */
    min-height: 80px; /* Give items height */
    display: flex;
    align-items: center;
    cursor: pointer;
}

.service-list-item .icon-wrapper {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background-color: #374151; /* gray-700 */
    border: 2px solid #4b5563; /* gray-600 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.service-list-item:hover .icon-wrapper {
    border-color: #009688; /* inz-teal */
}

.service-list-item.active .icon-wrapper {
    background-color: #009688; /* inz-teal */
    border-color: #D4AF37; /* inz-gold */
    transform: translateY(-50%) scale(1.15);
}

.service-list-item.active .service-title {
    color: #D4AF37; /* inz-gold */
}

/* Adding the scroll functionality to the services seciton */
#service-description {
    max-height: 400px; /* Adjust this value as needed */
    overflow-y: auto;
    padding-right: 1rem; /* Add some padding so the scrollbar doesn't overlap text */
}

/* Workflow Card Slide-up Hover Effect */
.workflow-card {
    position: relative;
    overflow: hidden;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.workflow-card:hover {
    transform: translateY(-10px);
}

.workflow-card-content {
    padding: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.workflow-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0A1F44; /* inz-navy */
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: translateY(101%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.workflow-card:hover .workflow-card-overlay {
    transform: translateY(0);
}

.workflow-card:hover .workflow-card-content {
    transform: translateY(-20%);
    opacity: 0.5;
}