/* Custom CSS for Recruitment Website */

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ff4444, #ff8844, #ffaa44);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background: linear-gradient(135deg, #ff4444, #ff8844, #ffaa44);
        -webkit-background-clip: text;
        background-clip: text;
    }
    50% {
        background: linear-gradient(135deg, #ff8844, #ffaa44, #ff4444);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-shapes::before,
.floating-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1), rgba(255, 136, 68, 0.1));
    animation: float 6s ease-in-out infinite;
}

.floating-shapes::before {
    width: 300px;
    height: 300px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shapes::after {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* CTA Button Effects */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 68, 68, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

/* Job Card Styles */
.job-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.8));
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4444, #ff8844, #ffaa44);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 68, 68, 0.5);
}

/* Culture Item Animation */
.culture-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.culture-item.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Stats Animation */
.stat-item {
    opacity: 1 !important;
    transition: opacity 0.6s ease;
}

.stat-item.animate {
    opacity: 1;
    transition: opacity 0.6s ease;
}

.stat-item .bg-gradient-to-r {
    width: 0;
    transition: width 1.5s ease-in-out;
}

.stat-item.animate .bg-gradient-to-r {
    width: var(--progress-width);
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid #ff4444;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

.typewriter-subtitle {
    overflow: hidden;
    border-right: 2px solid #ff8844;
    white-space: nowrap;
    animation: typing-subtitle 2s steps(30, end) 1s both, blink-caret-subtitle 0.75s step-end infinite 1s;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes typing-subtitle {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #ff4444;
    }
}

@keyframes blink-caret-subtitle {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #ff8844;
    }
}

/* Particles */
.particle {
    position: absolute;
    background: #ff4444;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
    animation: particle-float 8s linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Modal Animation */
.modal-enter {
    animation: modal-fade-in 0.3s ease-out;
}

.modal-content-enter {
    animation: modal-scale-in 0.3s ease-out;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modal-scale-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff4444, #ff8844);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff8844, #ffaa44);
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-shapes::before,
    .floating-shapes::after {
        display: none;
    }
    
    .typewriter,
    .typewriter-subtitle {
        font-size: 1.5rem;
    }
    
    .job-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff4444;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Focus Effects */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

/* Success/Error Messages */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 500;
}

.message.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

