/* Custom CSS for Arise Global Recruitment */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navigation */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.text-main {
    color: #6b7280;          
    font-size: 0.875rem;     
    font-weight: 300;  
    max-width: 32rem;       
}

.heading-primary {
    font-size: 2.2rem; 
    line-height: 1.1;
    font-weight: 600;        
    color: #1f2937;          
    margin-bottom: 1rem;
}
.section-header-main {
    font-weight: 300;
    color: #18181b;
    line-height: 1.25;
    font-size: 2.25rem;
}

@media (min-width: 768px) {
    .section-header-main {
        font-size: 3rem;
    }
}

/* Small screens (≥640px) */
@media (min-width: 640px) {
    .heading-primary {
        font-size: 3rem;     
    }
}

/* Large screens (≥1024px) */
@media (min-width: 1024px) {
    .heading-primary {
        font-size: 3rem;     
    }
}



/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Button Styles */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1e40af;
    z-index: -2;
}

.btn-primary:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #1e3a8a;
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-primary:hover:before {
    width: 100%;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-card:before {
    content: '\201C';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 80px;
    color: rgba(37, 99, 235, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Form Styles */
.form-control {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

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

.slide-up {
    animation: slideUp 0.8s ease-out;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.img{
    height: 500px;
    overflow: hidden;
    margin-top: 2rem;
}

.img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    transform: translate3d(0px, 0%, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg); 
    filter: blur(0px); 
    transform-style: preserve-3d;
    border-radius: 10px;
}

/* Job Categories Section */
.job-category {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.job-category.active {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.job-category.active button {
    padding-bottom: 1rem;
}

.job-category.active .text-gray-400 {
    transform: rotate(180deg);
    color: #3b82f6;
}

.job-category .hidden {
    display: none;
}

.job-category.active .hidden {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .job-category button {
        padding: 1rem;
    }
    
    .job-category h3 {
        font-size: 1rem;
    }
}

/* Process Section Styles */
.process-step {
    position: relative;
    padding: 0 20px;
    text-align: center;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    right: -10%;
    width: 20%;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    z-index: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    font-weight: 300;
    color: #4b5563;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.step-content h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.step-content p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .process-step {
        margin-bottom: 2rem;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    .step-number {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
}

/* Hover effects */
.group:hover .step-number {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Animation for step numbers */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.group:hover .step-number {
    animation: float 2s ease-in-out infinite;
}

.swiper-slide {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.swiper-button-next, .swiper-button-prev {
    position: static !important;
    width: 50px !important;
    height: 50px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 50%;
    color: #3b82f6 !important;
    transition: all 0.2s ease;
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 16px !important;
    font-weight: bold;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    border-color: #3b82f6 !important;
    background-color: #f0f7ff;
}

/* Hide default Swiper icons */
.swiper-button-next::after, 
.swiper-button-prev::after {
    display: none !important;
}

.custom-swiper-btn {
    position: static !important;
    width: 56px !important;
    height: 56px !important;
    margin: 0 !important;
    background: #ffffff;
    border: 1px solid #3b82f6;
    border-radius: 50px;
    color: #3b82f6 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 26px;
    line-height: 1;
}

/* Ensure the span inside is treated as a block for the flip to work */
.custom-swiper-btn span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.custom-swiper-btn:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

/* Subtle nudge animation on hover */
.swiper-button-next:hover span {
    transform: translateX(3px);
}

.swiper-button-prev:hover span {
    /* Keeps the flip while nudging left */
    transform: scaleX(-1) translateX(3px);
}

.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f4f4f5 !important;
    transform: none !important;
}